[libvirt-users] libvirtd doesn't attach Sheepdog storage VDI disk correctly

Adolf Augustin adolf.augustin at zettamail.de
Mon Nov 30 10:30:11 UTC 2015


Hi,

I tried two different approaches.

1.) Convert an existing Image with qemu-img

================================================
qemu-img convert -t directsync lubuntu-14.04.3-desktop-i386.iso
sheepdog:lubuntu1404.iso
=================================================

results in

====================================================
root at orion2:/var/lib/libvirt/xml# virsh vol-dumpxml --pool herd
lubuntu1404.iso
<volume type='network'>
  <name>lubuntu1404.iso</name>
  <key>herd/lubuntu1404.iso</key>
  <source>
  </source>
  <capacity unit='bytes'>750780416</capacity>
  <allocation unit='bytes'>750780416</allocation>
  <target>
    <path>lubuntu1404.iso</path>
    <format type='unknown'/>
  </target>
</volume>

======================================================


2.) creating a new volum using an xml-file (myvol.xml)

====================================================
<volume>
         <name>myvol</name>
         <key>sheep/myvol</key>
         <source>
         </source>
         <capacity unit='bytes'>53687091200</capacity>
         <allocation unit='bytes'>53687091200</allocation>
         <target>
           <path>sheepdog:myvol</path>
           <format type='unknown'/>
           <permissions>
             <mode>00</mode>
             <owner>0</owner>
             <group>0</group>
           </permissions>
         </target>
       </volume>
=====================================================



now creating the volume

========================================================
virsh vol-create herd  myvol.xml
=========================================================

and now you see:

==========================================================
root at orion2:/var/lib/libvirt/xml# virsh vol-dumpxml --pool herd myvol
<volume type='network'>
  <name>myvol</name>
  <key>herd/myvol</key>
  <source>
  </source>
  <capacity unit='bytes'>53687091200</capacity>
  <allocation unit='bytes'>0</allocation>
  <target>
    <path>myvol</path>
    <format type='unknown'/>
    <permissions>
      <mode>00</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</volume>

===========================================================


Is it possible to modify the path-variable manually ?






Am 30.11.2015 um 08:57 schrieb Vasiliy Tolstov:
> 2015-11-24 15:33 GMT+03:00 Adolf Augustin <adolf.augustin at zettamail.de>:
>> t should have been solved in libvirt 1.2.17
>>
>> See here: https://libvirt.org/news.html
>>
>> =====================================================
>> ....
>> update sheepdog client] update sheepdog client path (Vasiliy Tolstov),
>> .....
>> =====================================================
>>
>> Nevertheless it doesn't work in Debian 8 testing (libvirt 1.2.21).
> 
> 
> This commit does not related to you issue. Also how you define the volume ?
> 

-- 
 Best regards

Adolf Augustin

E-mail: adolf.augustin at zettamail.de
PGP-Key: 0xC4709AFE
Fingerprint: 1806 35FA CAE8 0202 B7AF 12B9 5956 5BC0 C470 9AFE





More information about the libvirt-users mailing list