Here’s one way to add and mount additional LVM partition in xen guest machines.
1.) Create logical partition and format it. Example below creates “40GB” partition and “ext3” format in “vg0” volume group.
1 2 |
|
2.) Update xen config to add new partition to guest os. Assign device name to it, example “xvda3”. Then re-create the VM to recognize the new partition/device. Note: reboot doesn’t read the new xen configuration.
1 2 |
|
3.) After you reboot, login to VM and mount the new partition. New drive or partition shoud be in “/dev/xvda3.”
1
|
|
Add it to “/etc/fstab” to automount on reboot.
1
|
|