Re: virsh create snapshot not honoring diskspec?

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

 



On 08/07/2015 09:53 AM, Silver Sky Soft Services, Inc. wrote:
> Hi,
> I'm trying to create a snapshot on a specific disk by using diskspec
> option. However, libvirt/virsh seems to ignore it and takes a snapshot of
> all disks. Am I using this option incorrectly?
> 
> In below examples, I'm trying to snapshot only vdb. However even vda is
> getting snapshotted regardless of diskspec. Is this a known issue?
> 
> I'm on CentOS 7.1, libvirtd (libvirt) 1.2.8, virsh 1.2.8
> 
> [root@localhost scripts]# virsh domblklist centos_nfs
> Target     Source
> ------------------------------------------------
> vda        /var/lib/libvirt/images/centos_nfs.SNAP_2015-08-07-081800
> vdb        /var/lib/libvirt/images/centos_nfs_storage.SNAP_2015-08-07-081800
> hdc        -
> 
> [root@localhost scripts]# virsh snapshot-create-as --domain centos_nfs
> --name SNAP_2015-08-07-090909 --no-metadata --disk-only --atomic --diskspec
> vdb,snapshot=external

This command line did not give a diskspec for vda, so the action for vda
defaults to whatever the <domain> XML says is default for that disk .

Try giving:
 --diskspec vdb,snapshot=external --diskspec vda,snapshot=none
to explicitly override the <domain> defaults for both disks at once.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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