Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Dec 03, 2007 6:17 pm 
Offline
Senior Newbie

Joined: Sun Oct 28, 2007 7:50 pm
Posts: 13
Is there any way to support resizing of ext3 images on a running Linode, as long as the filesystem is not mounted. I guess the web tool wouldn't know if the filesystem was mounted, but perhaps a "Trust me" button could be added with an appropriate warning:

If your filesystem is mounted, you will lose all of your data. Are you sure you want to resize?


Top
   
 Post subject:
PostPosted: Wed Dec 05, 2007 12:14 am 
Offline
Senior Newbie

Joined: Sun Aug 26, 2007 3:47 am
Posts: 7
Well, this is what I do which has the shortcoming of needing to reboot to access any space thats been added to my linode:

Assign 50-200MB to /, a bit to some swap and the rest of the space to a LVM physical volume. Then make logical volumes for /usr, /var/, /home and /tmp of appropriate sizes, leaving a large amount of the PV space unallocated.

Then later on when /var turns out to be too small I can lvextend / xfs_grow it all without unmounting or rebooting.

One can do the same with ext3 using resize2fs.

Shrinking filesystems online seems undoable AFAIK though.


Would be neat to not need to reboot to access more space linode space, though thats relatively rare occurance.


Top
   
 Post subject:
PostPosted: Wed Dec 05, 2007 12:38 pm 
Offline
Senior Newbie

Joined: Sun Oct 28, 2007 7:50 pm
Posts: 13
So with LV, you would:
1. add a disk image via the web controls
2. assign it to a linux device
3. reboot the linode, keeping the filesystem unmounted
4. format the disk images as a PV
5. add the new PV to a VG (volume group)
6. resize
7. mount

The reason for the reboot is so that the new disk image has to be assigned to a linux device. (like /dev/XXXX) If we could assign a disk image to a device while a linode is running, it would solve the problem. Alternatively, if we could force a resize of an image while the linode is up, that would work as well.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group