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

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

 



Dear All,
I've installed CentOS5 and configured the system with Xen+LVM

All guest domain are installed in logical volume, lvm-backed vbd.
and the guest domain will also use lvm too.

My example.
1. Install centos5 with software raid (raid 1)
2. create pv, vg, lv on the md device
3. install guest domain (centos5) in one of the lv '/dev/VolGroup00/xen2vbd1'
4. the guest domain also use lvm, vg 'Xen1Vbd1VG00' created within the guest domain.

I can get the guest domain up and run correctly. 

and able to clone the guest domain by adding new lv and using dd

dd if=/dev/VolGroup00/xen2vbd1  of=/dev/VolGroup00/xen2vbd2

Then, i have several guest domain with same data.

After several add/delete action of the lv under domain-0 for testing and cloning guest domain.

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

[root@xen2 ~]# lvs


  Couldn't find device with uuid '0gmklZ-HcGJ-Asv1-pkQz-guhK-bbY4-MJ24nq'.
  Couldn't find all physical volumes for volume group Xen1Vbd1VG00.
  Couldn't find device with uuid '0gmklZ-HcGJ-Asv1-pkQz-guhK-bbY4-MJ24nq'.
  Couldn't find all physical volumes for volume group Xen1Vbd1VG00.
  Volume group "Xen1Vbd1VG00" not found
  LV        VG         Attr   LSize  Origin Snap%  Move Log Copy%
  LogVol00  VolGroup00 -wi-ao 14.62G
  xen2vbd1  VolGroup00 -wi-a-  8.00G
  xen2vbd2  VolGroup00 -wi-a-  8.00G

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?

Thanks.

Achievement




_________________________________________________________________
Messenger 的 PC - to - PC 直接對話功能,跟海外親友免費講長途電話,慳錢方便 — Messenger PC - to - PC 直接對話 
http://get.live.com/messenger/features 

_______________________________________________
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