March 10, 2005

Growing Pains and LVM.

Resizing 'home' partition with logical Volume management, a small HOWTO.

Im running LVM on a debian system. File system type is ext3.

Part 1
To display your logical partitions managed by lvm, run the following command: /sbin/lvn lvdisplay

To resize a particular device (in this case my home partition). Here we add 500 Meg to a partition.
/sbin/lvm lvresize --size +500m /dev/develpoment/home

Part 2.
sudo init 1 (to go down to run level one)

Now unmount the device
umount /dev/development/home

perform following
/sbin/e2fsck -f " /dev/development/home"

This is the actual command to increase the fs size to 7Gig
/sbin/resize2fs /dev/development/home 7G

remount the device

control-D to bounce back from run level one and your done.

Posted by michaelm at March 10, 2005 08:21 AM | TrackBack