The LVM module does not allow the resizing of an in use volume, but it should. lvextend happily works with a online lvm volume.
So, can do from command line, and did so as so:
lvextend -L+100G /dev/mapper/VGMain-LVVar Extending logical volume LVVar to 197.66 GB Logical volume LVVar successfully resized
Why not allow the LVM module to resize?
Of course, that needed to be followed by a resize of the ext3 filesystem to match the new volume size, which is easily done with:
resize2fs /dev/mapper/VGMain-LVVar resize2fs 1.39 (29-May-2006) Filesystem at /dev/mapper/VGMain-LVVar is mounted on /var; on-line resizing required Performing an on-line resize of /dev/mapper/VGMain-LVVar to 51814400 (4k) blocks. The filesystem on /dev/mapper/VGMain-LVVar is now 51814400 blocks long.
All while the filesystem was mounted
Why not allow the user to do this through Virtualmin?
Comments
Submitted by JamieCameron on Tue, 03/16/2010 - 12:34 Comment #1
Wow, I didn't actually know that it was possible to expand an in-use filesystem.
Does this still work even if the filesystem cannot be un-mounted, perhaps because you have a shell whose current directory is on that filesystem?
Submitted by sfatula on Tue, 03/16/2010 - 12:44 Comment #2
Yes, there is no un-mounting involved. This was the var partition I just did in my example, mysql running, etc.
I believe (have to read resize2fs) you cannot resize / while online.
For LVM, is always possible as far as I know.
Submitted by JamieCameron on Tue, 03/16/2010 - 16:13 Comment #3
Cool, thanks .. I have just implemented support for resizing up mounted ext filesystems, for inclusion in Webmin 1.520.
Submitted by Issues on Tue, 03/30/2010 - 17:20 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.