|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Using lvm for domUs
On 4/30/07, john maclean <jayeola@xxxxxxxxx> wrote:
Hey chaps. What's the best way to populate an lvm to get it ready for xen?
If you can live with not having the root partition of the guest as a
LVM then it is easy to get full LVM in the guest. Just install the
guest as usual then do somthing like this in dom0:
--
dd if=/dev/zero of=/var/xen/domains/guest/sdd.img bs=1M count=5120
--
add the disk image to the guests xen config file
--
disk = [...,'file:/var/xen/domains/guest/sdd.img,sdd,w' ]
--
shutdown and start the guest, so it uses the new disk image
--
xm shutdown guest
xm create guest
--
Finally create volume group "vg" and logical volume "data", by
executing the following in the guest:
--
cfdisk /dev/sdd # create sdd1 and set its type to: "Linux LVM"
reboot
pvcreate /dev/sdd1
vgcreate vg /dev/sdd1
lvcreate -L 1G -n data vg
mkfs.xfs /dev/vg/data
mount /dev/mapper/vg-data /mnt/data
--
That should be it
--
Lars Roland
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- Re: [Xen-users] Using lvm for domUs, (continued)
Re: [Xen-users] Using lvm for domUs,
Lars Roland <=
|
|
|
|
|