How to extend the size of an LVM volume RHEL5?
Marcos Trazzini
mstrazzini at gmail.com
Wed Jun 11 21:30:49 UTC 2008
In fact, there's no need to stop the volume group, since it's a
"logical volume extension"... so, the command below should take care
of this (umount the file system before):
# lvchange -an /dev/appsdata/apps1
Now run lvextend and then run lvchange again to re-activate the logical volume:
# lvextend -ay /dev/appsdata/apps1
Don't forget to extend the filesystem itself before trying to remount
it! If it's an Ext3 filesystem, the following command should resize
the filesystem automatically according the new volume size:
# resize2fs /dev/appsdada/apps1
And now finally mount the filesystem /dev/appsdata/apps1 and enjoy!
Regards
--
Marcos S. Trazzini => mstrazzini at gmail.com
More information about the redhat-list
mailing list