Re: Guest os running with lvm under xen (lvm-backed vbd)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 23 Aug 2007, Achievement wrote:

> 4. the guest domain also use lvm, vg 'Xen1Vbd1VG00' created within the guest
> domain.
> 
> Then, i have several guest domain with same data.
...
> I got the following error:
> 
> [root@xen2 ~]# pvs
> 
>   Couldn't find device with uuid '0gmklZ-HcGJ-Asv1-pkQz-guhK-bbY4-MJ24nq'.
>   Couldn't find device with uuid '0gmklZ-HcGJ-Asv1-pkQz-guhK-bbY4-MJ24nq'.
> Segmentation fault
...
> Any one face the similar error? and why lvm see the logical volume as a
> physical volumes?  or I should not use lvm in guest domain if i use
> lvm-backed vbd for xen?

It sees the lv as a pv because you made it a pv with the guest domain.
The device scanning logic *should* skip logical volumes, and perhaps you
can add a pattern to /etc/lvm/lvm.conf to make it do so.

I would not recommend running lvm in both host and guest, if only because
of the redundancy.  Either map LVs to partitions on guest, or give the
guest a PV and run LVM there.  I prefer mapping LVs to partitions on guest,
because then the guest has simpler initrd and doesn't load lvm stuff.
Plus, you don't have to keep track of multiple VGs (one for each guest).
The only drawback is that it doesn't seem to be possible to resize
the LV and have the guest see it without rebooting the guest.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux