[libvirt-users] Creating external snapshots with logical volumes.
Dominique Ramaekers
dominique.ramaekers at cometal.be
Mon Jun 27 14:03:07 UTC 2016
Hi,
Quick question regarding external snapshots.
Currently, for making backups of my guests, I use external snapshots like this:
virsh snapshot-create-as --domain PCVIRTdra --disk-only --atomic --quiesce --no-metadata --diskspec vda,file=/srv/poolVMS/PCVIRTdra-ONDERHOUD
If I wanted to use a logical volume as destination behind the '--diskspec' option, can I do this like this?
virsh snapshot-create-as --domain PCVIRTdra --disk-only --atomic --quiesce --no-metadata --diskspec vda,file=/dev/CmsrvVH3-vg/PCVIRTdra-ONDERHOUD
It seems to work, but if this is never intended to be used like this, I would rather not...
I ask this question because it seems libvirt is actually recognizing the logical volume as a file:
root at CmsrvVH3:~# virsh domblklist PCVIRTdra --details
Type Device Target Source
------------------------------------------------
file disk vda /dev/CmsrvVH3-vg/PCVIRTdra-ONDERHOUD
file cdrom hdb /srv/poolVMS/Windows10_x64.iso
file cdrom hdc /srv/poolVMS/virtiodrivers.iso
Is there a better way of doing this?
Thanks in advance,
Dominique.
More information about the libvirt-users
mailing list