On Mon, Oct 25, 2010 at 2:18 PM, Gordon Messmer <span dir="ltr"><<a href="mailto:yinyang@eburg.com">yinyang@eburg.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
</div>Which block devices are you exporting to your guest?  Post the libvirt<br>
configuration file for it.</blockquote><div><br></div><div>See below.  It's specifically the second volume group that collides between virtual and physical systems.  Both dom0 and U have identical VolGroup00 VGs, but these do not collide.</div>
<div><br></div><div>Renaming the VG used by the domU within the domU removes the collision, but the newly-renamed VG still shows up in dom0 as a useable VG with space to be allocated.   </div><div><br></div><div>Here is the pvdisplay output from dom0.  Interestingly, it shows /dev/VolGroup01/lv-sys1-data as "physical volume"  when it's obviously just an LV in the original VolGroup01 VG.  And this only happens with the _second_ Volume Group created.  VolGroup00 is not an issue on this or any other systems I've used:</div>
<div><br></div><div><div>[root@iain2 qemu]# pvdisplay</div><div>  --- Physical volume ---</div><div>  PV Name               /dev/VolGroup01/lv-sys1-data</div><div>  VG Name               vg-sys1</div><div>  PV Size               40.00 GB / not usable 4.00 MB</div>
<div>  Allocatable           yes (but full)</div><div>  PE Size (KByte)       4096</div><div>  Total PE              10239</div><div>  Free PE               0</div><div>  Allocated PE          10239</div><div>  PV UUID               FTA4QU-ydZ7-e2Yy-nBsi-t4st-3jj7-IAkQH8</div>
<div>   </div><div>  --- Physical volume ---</div><div>  PV Name               /dev/sda3</div><div>  VG Name               VolGroup00</div><div>  PV Size               39.06 GB / not usable 29.77 MB</div><div>  Allocatable           yes (but full)</div>
<div>  PE Size (KByte)       32768</div><div>  Total PE              1249</div><div>  Free PE               0</div><div>  Allocated PE          1249</div><div>  PV UUID               tTViks-3lBM-HGzV-mnN9-zRsT-fFT0-ZsJRse</div>
<div>   </div><div>  --- Physical volume ---</div><div>  PV Name               /dev/sda2</div><div>  VG Name               VolGroup01</div><div>  PV Size               240.31 GB / not usable 25.75 MB</div><div>  Allocatable           yes </div>
<div>  PE Size (KByte)       32768</div><div>  Total PE              7689</div><div>  Free PE               5129</div><div>  Allocated PE          2560</div><div>  PV UUID               ZE5Io3-WYIO-EfOQ-h03q-zGdF-Frpa-tm63fX</div>
</div><div><br></div><div><br></div><div><br></div><div><div>[root@iain2 qemu]# cat sys1.xml </div><div><domain type='kvm'></div><div>  <name>sys1</name></div><div>  <uuid>37f34394-d380-d2c4-ac37-3263c16028ff</uuid></div>
<div>  <memory>524288</memory></div><div>  <currentMemory>524288</currentMemory></div><div>  <vcpu>1</vcpu></div><div>  <os></div><div>    <type arch='x86_64' machine='rhel5.4.0'>hvm</type></div>
<div>    <boot dev='hd'/></div><div>  </os></div><div>  <features></div><div>    <acpi/></div><div>    <apic/></div><div>    <pae/></div><div>  </features></div><div>  <clock offset='utc'/></div>
<div>  <on_poweroff>destroy</on_poweroff></div><div>  <on_reboot>restart</on_reboot></div><div>  <on_crash>restart</on_crash></div><div>  <devices></div><div>    <emulator>/usr/libexec/qemu-kvm</emulator></div>
<div>    <disk type='block' device='disk'></div><div>      <driver name='qemu' cache='none'/></div><div>      <source dev='/dev/VolGroup01/lv-sys1'/></div><div>      <target dev='vda' bus='virtio'/></div>
<div>    </disk></div><div>    <disk type='block' device='cdrom'></div><div>      <target dev='hdc' bus='ide'/></div><div>      <readonly/></div><div>    </disk></div>
<div>    <disk type='block' device='disk'></div><div>      <source dev='/dev/VolGroup01/lv-sys1-data'/></div><div>      <target dev='vdb' bus='virtio'/></div><div>
    </disk></div><div>    <interface type='network'></div><div>      <mac address='54:52:00:3b:4a:f5'/></div><div>      <source network='default'/></div><div>      <model type='virtio'/></div>
<div>    </interface></div><div>    <serial type='pty'></div><div>      <source path='/dev/pts/3'/></div><div>      <target port='0'/></div><div>    </serial></div><div>
    <console type='pty' tty='/dev/pts/3'></div><div>      <source path='/dev/pts/3'/></div><div>      <target port='0'/></div><div>    </console></div><div>    <input type='mouse' bus='ps2'/></div>
<div>    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/></div><div>  </devices></div><div></domain></div></div><div><br></div><div><br></div><div> </div></div>
-- <br>-- -<br>Iain Morris<br><a href="mailto:iain.t.morris@gmail.com">iain.t.morris@gmail.com</a><br>