How to extend logical volume assigned to para virtualized guest OS ?
Posted May 11th, 2009 by gnulinux
You can follow steps listed below to extend logical volume assigned to para virtualized OS. You can also extend logical volume on which para virtualized OS is installed.
- Login to Dom-0. become super user OR login as root to Dom-0.
- Identify the logical volume you want to extend. e.g it is /dev/vg0/virtual00
- execute following command to extend that logical volume.
- run lvscan from command prompt and see whether you can see increased /dev/vg0/virtual00.
- Now restart guestOS xm reboot virtual00
- Login to virtual system and check disk space using fdisk -l . you should see 20 GB added to disk as per this example.
- Now use fdisk to create a new partition fdisk /dev/device then partprobe
- Create a physical volume for new partition pvcreate /dev/new-partition
- Now you need to extend the volume group which is already in use by para virtualized OS vgextend volume-group-name /dev/newly-added-partition
- use vgdisplay to check the extended volume group
- Now you can extend the logical volume within your para virtualized guest os using standard lvextend command
lvextend -L+20G /dev/vg0/virtual00