- Unmount the volume
- Check if there is free space on physical volume (if no, need to add physical volume and extend group first)
- Extend logical volume using
$> sudo lvextend -L+10G /dev/gp02/virtual
- Run fsck on logical volume:
$> sudo e2fsck -f /dev/gp02/virtual
- Extend the file system on the logical volume:
$> sudo resize2fs /dev/gp02/virtual
- Mount the logical volume:
$> sudo mount -t auto /dev/gp02/virtual /virtual
/dev/gp02/virtual
- is the logical volume-L+10G - adds 10 GiB to the logical volume
In case there is no free space left on the physical volume, one needs to add a new physical volume to the group and then extend the logical volume.
References:
LVM HowTo [tldp.org]
Debian LVM [debian.org]
Working with LVM [debian-administration.org]
No comments:
Post a Comment