From: David C. <da...@da...> - 2002-07-21 02:08:53
|
I've been looking at doing live filesystem resizes on UML, using LVM on the host - It works fine using ReiserFS on a filesystem on the host, but will the ubd driver have any issues with a device being resized while the UML process is still running? From a syncronisation point of view, will reiserfs_resize (the prog which resizes the filesystem on the LV) need to be run on the UML, or can I run it on the host and assume that the UML work happily? Ideally, I'd like to be able to resize a running UML's / filesystem without restarting it or having to run anything on the UML itself - Tall order I know, but I think it can be done. David -- David Coulson http://davidcoulson.net/ d...@vi... http://journal.davidcoulson.net/ |
From: Adrian P. <a.p...@me...> - 2002-07-21 10:44:40
|
>>>>> "David" == David Coulson <da...@da...> writes: David> I've been looking at doing live filesystem resizes on UML, David> using LVM on the host - It works fine using ReiserFS on a David> filesystem on the host, but will the ubd driver have any David> issues with a device being resized while the UML process is David> still running? From a syncronisation point of view, will David> reiserfs_resize (the prog which resizes the filesystem on David> the LV) need to be run on the UML, or can I run it on the David> host and assume that the UML work happily? Ideally, I'd David> like to be able to resize a running UML's / filesystem David> without restarting it or having to run anything on the UML David> itself - Tall order I know, but I think it can be done. Sorry if I misunderstand but isn't it just a :- - [host] lvmextend -L+xxM /dev/vg/lv - [uml] resize_reiserfs /dev/ubdx you'll soon find out whether it worked or not :-) I can't see how you can resize a filesystem from the host that the UML is "controlling", Sincerely, Adrian Phillips -- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK] |
From: Andreas D. <ad...@cl...> - 2002-07-22 05:20:54
|
On Jul 21, 2002 03:08 +0100, David Coulson wrote: > I've been looking at doing live filesystem resizes on UML, using LVM on > the host - It works fine using ReiserFS on a filesystem on the host, but > will the ubd driver have any issues with a device being resized while > the UML process is still running? From a syncronisation point of view, > will reiserfs_resize (the prog which resizes the filesystem on the LV) > need to be run on the UML, or can I run it on the host and assume that > the UML work happily? Ideally, I'd like to be able to resize a running > UML's / filesystem without restarting it or having to run anything on > the UML itself - Tall order I know, but I think it can be done. It depends on how you are mounting the filesystem. If you are just using a UML block device (ubdX) then the reiserfs resize should work as normal. If you are using hostfs, then I'm not totally sure. If the hostfs driver just passes everything through to the host (e.g. statfs and such) and doesn't cache any values locally, then that should be OK also, but I'm not sure. Cheers, Andreas -- Andreas Dilger http://www-mddsp.enel.ucalgary.ca/People/adilger/ http://sourceforge.net/projects/ext2resize/ |