[linux-lvm] extending a logical volume

Andreas Dilger adilger at turbolabs.com
Wed Jan 23 11:40:02 UTC 2002


On Jan 23, 2002  16:08 +0100, Pierrick PONS wrote:
> To conclude on this subject, here is what I've done.
> I've extended my ext3 partition offline and not online.
> These commands are easy but maybe they will help some persons.
> They would have helped me ...
> 
> 
> lvextend -L+200 /dev/testlvm/testlv
> lvscan
> umount /dev/testlvm/testlv 
> 
> e2fsck -f /dev/testlvm/testlv 
> resize2fs -d -p /dev/testlvm/testlv
> mount /dev/testlvm/testlv /mnt/lvm  
> df -k

This is all done for you with the "e2fsadm" command included with the
LVM user tools (including e2fsck):

umount /dev/testlvm/testlv
e2fsadm -L+200 /dev/testlvm/testlv
mount /dev/testlvm/testlv

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/





More information about the linux-lvm mailing list