Scenario: In the Dom0 (Host) you have an LVM Logical Volume that you export to the DomU (Guest) and it appears as an entire hard drive which you want to make larger.
Example- Dom0: /dev/VolGroup00/LogVol00 -> DomU: /dev/xvda
Resizing an LVM Logical Volume used as a DomU drive
A Logical Volume used as a DomU drive will appear in the DomU as /dev/xvda. A Logical Volume used as a DomU partition will appear in the DomU as /dev/xvda1. Please note the difference.
The disk line in the Xen Domain config file stored in /etc/xen on the Dom0 will look something like this.
disk = ['phy:vgsys/lvvirt,xvda,w']
Get the Logical Volume name and path in Dom0
On the Dom0 we need to expand the Logical Volume. We start by using the lvdisplay command to get the path to the Logical Volume
[ root@vs /srv/xen ] lvdisplay
--- Logical volume ---
LV Name /dev/vgsys/lvvirt
VG Name vgsys
LV UUID XMWzWW-oZih-A5uH-91Sa-7l1y-8cqf-18KcNB
LV Write Access read/write
LV Status available
# open 1
LV Size 60.00 GB
Current LE 1920
Read ahead sectors auto
- currently set to 256
Block device 253:2