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

[libvirt] How to start a snapshot of Sheepdog volume in Libvirt



Hi all,

I wanna test start a snapshot of Sheepdog volume in Libvirt. However, i
cannot find a test description from
https://github.com/collie/sheepdog/wiki/Libvirt.
>From http://libvirt.org/formatsnapshot.html, i can find some snapshot operations
in Libvirt, which may be different from Sheepdog volume snapshot, right? Now,
i have some questions like following.

1, What are the differences between Libvirt snapshot operations and Sheepdog
Volume snapshot operations?  The object of Libvirt snapshot is a file
and Sheepdog
volume is a block device, right?

2, Can we use Libvirt XML layout from http://libvirt.org/formatsnapshot.html
to create a Sheepdog volume snapshot and start from it? If not, which
Libvirt XML
form should we use to create&start from this snapshot?

3, Is following XML layout right?

<domain type='qemu'>
<name>testvm</name>
<memory>1048576</memory>
<os>
<type arch='x86_64'>hvm</type>
</os>
<devices>
<disk type='network'>
<source protocol="sheepdog" name="Alice:1"/>
<target dev='hda' bus='ide'/>
</disk>
<graphics type='vnc' port='-1' autoport='yes'/>
</devices>
</domain>

NOTE: Alice:1 is a snapshot of Alice.
$ collie vdi list
  name        id    size    used  shared    creation time  object id
--------------------------------------------------------------------
  Bob          0  2.0 GB  1.6 GB  0.0 MB 2010-03-23 16:16      80000
  Alice        0  256 GB  0.0 MB  0.0 MB 2010-03-23 16:21      c0000
s Alice        1  256 GB  0.0 MB  0.0 MB 2010-03-23 16:16      40000



Could anyone please give me some suggestions? Thanks in advance ;-)

-- 
Thanks
Harry Wei


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