[libvirt] sheepdog volume and number of copies

Vasiliy Tolstov v.tolstov at selfip.ru
Wed Jul 1 08:24:00 UTC 2015


Hi libvirt devs!
Sheepdog have ability to specify number of copies (full replica or
erasure) for each vdi when it created,
Now xml looks like:
<volume>
  <name>{VDI_NAME}</name>
  <key>sheep/{VDI_NAME}</key>
  <source></source>
  <allocation unit="G">{VDI_SIZE}</allocation>
  <capacity unit="G">{VDI_SIZE}</capacity>
  <target>
    <path>sheepdog:{VDI_NAME}</path>
    <format type='unknown'/>
    <permissions>
      <mode>00</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</volume>

in case of erasure we need to specify number of strips and number of
parity strips. In case of copies - number of copies. How the best
encode this in xml?
P.S. I van to create patch for libvirt to allow this, but stuck at xml
definition.

-- 
Vasiliy Tolstov,
e-mail: v.tolstov at selfip.ru




More information about the libvir-list mailing list