creating snapshots for sheepdog with libvirt API

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

 



Hello!

I am trying to create snapshots for sheepdog disks using libvirt API or virsh. The disk is defined in domain as follows:

<disk type='network' device='disk'>
      <driver name='qemu' cache='none'/>
      <source protocol='sheepdog' name='sheepvol1'/>
      <target dev='vdb' bus='virtio'/>
</disk>

I have tried both options "external" and "internal". If I try to create external snapshot with virsh command:

snapshot-create-as vps vpssnap --disk-only --diskspec vda,snapshot=no --diskspec vdb,snapshot=external

I get an error: source for disk 'vdb' is not a regular file; refusing to generate external snapshot name.

If I try the same command but with "internal" mode:

snapshot-create-as vps vpssnap --disk-only --diskspec vda,snapshot=no --diskspec vdb,snapshot=internal

virsh creates a snapshot, but this snapshot is useless. If i try to revert to this snapshot i get an error: "qemu-img: Could not open 'sheepvol1': No such file or directory", plus if I list all VDIs with "collie vdi list" I do not see any snapshots there. So i guess virsh does not create an appropriate sheepdog snapshot at all.

Can someone please tell me how to create snapshots for sheepdog disks?

Thank you.

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux