[libvirt-users] some problem with snapshot by libvirt

xingxing gao itxx00 at gmail.com
Tue May 29 16:22:10 UTC 2012


to create snapshot ,I did   step below:
virsh snapshot-create-as centos snap1 --disk-only --atomic --no-metadata
virsh snapshot-create-as centos snap2 --disk-only ......
........................
virsh snapshot-creates-as centos snap10 .....
then i got 10 snapshot of a vm,
to revert, i just did the follow step:
1 destroy centos
2 editor="sed -i 's/centosdisk.snap10/centosdisk.snap1/g'" virsh edit centos
3 rm -f centos.snap{2,3,4,5,6.....}
4 start centos
is these steps correct?
and another question is ,when i revert to a snapshot,some files of the
vm's system  missing,does this have any relation with the disk cache
mode (writeback,writethrough,none,etc.)???how could i avoid that
happen??
thanks.




More information about the libvirt-users mailing list