[sheepdog] snapshot rollback ?
Alexandre DERUMIER
aderumier at odiso.com
Sun Aug 26 11:17:05 CEST 2012
Hi,
Sorry to disturb you again,
But I really don't understand how it's works.
#collie vdi create image1 1G
start qemu with file=sheepdog:image1
#collie vdi tree
image---(you are here)
content of image1:
#touch beforesnap1 /
#ls -l
/beforesnap1
now I take a snapshot snap1:
#collie vdi snapshot -s snap1 image
#collie vdi tree
vm-115-disk-1---[2012-08-26 10:38]---(you are here)
content of image1:
#touch aftersnap1
#ls -l
/beforesnap1
/aftersnap1
Now, I stop the qemu guest.
and start it with file=sheepdog:image1:snap1
#collie vdi tree
image1---[2012-08-26 10:38]---(you are here)
#ls -l
/aftersnap1
?????????
I expected to have
ls -l
/beforesnap1
I's like I see only datas writen after snap1
So how can I rollback to time when snap1 was taken ?
----- Mail original -----
De: "Alexandre DERUMIER" <aderumier at odiso.com>
À: "MORITA Kazutaka" <morita.kazutaka at lab.ntt.co.jp>
Cc: sheepdog at lists.wpkg.org
Envoyé: Vendredi 24 Août 2012 09:30:46
Objet: Re: [sheepdog] snapshot rollback ?
Thanks for the explain, I'll do tests this week.
Regards,
Alexandre
----- Mail original -----
De: "MORITA Kazutaka" <morita.kazutaka at lab.ntt.co.jp>
À: "Alexandre DERUMIER" <aderumier at odiso.com>
Cc: "MORITA Kazutaka" <morita.kazutaka at lab.ntt.co.jp>, sheepdog at lists.wpkg.org
Envoyé: Vendredi 24 Août 2012 09:08:51
Objet: Re: [sheepdog] snapshot rollback ?
At Fri, 24 Aug 2012 08:35:25 +0200 (CEST),
Alexandre DERUMIER wrote:
>
> >>If you run the following command, you can rollback the snapshot again.
> >>
> >>$ qemu sheepdog:image1:snap1
> >>
> >>I think the 'collie vdi tree' command would help you.
>
> Thanks, But I don't understand how It can work.
>
> If I
> "I create a base vdi : image1
$ collie vdi tree
image1---(you are here)
> create a snapshot: snap1
$ collie vdi tree
image1---[2012-08-24 15:44]---(you are here)
> create a snapshot: snap2
$ collie vdi tree
image1---[2012-08-24 15:44]---[2012-08-24 15:44]---(you are here)
> now I boot on snap1
> qemu sheepdog:image1:snap1
> I write datas
$ collie vdi tree
image1---[2012-08-24 15:44]-+-[2012-08-24 15:44]---[2012-08-24 15:45]
`-(you are here)
> and now I restart the vm (so with qemu sheepdog:image1:snap1).
Even if you restart the vm, sheepdog doesn't reopen the image and the
rollback doesn't happen. If you completely shutdown the vm, please
use "qemu sheepdog:image1" to restart the vm from the previous
shutdown point. The command will start from '(you are here)'.
> "
> It will rollback ? But in this case It will destroy my new datas ?
> In this case I don't want rollback, I just want restart the vm.
Even if you wrongly rollback to a snapshot, you don't lose any data
because the previous image is kept as a snapshot.
$ ./collie/collie vdi tree
image1---[2012-08-24 15:44]-+-[2012-08-24 15:44]---[2012-08-24 15:45]
|-[2012-08-24 15:46]
`-(you are here)
Thanks,
Kazutaka
--
--
Alexandre D e rumier
Ingénieur Systèmes et Réseaux
Fixe : 03 20 68 88 85
Fax : 03 20 68 90 88
45 Bvd du Général Leclerc 59100 Roubaix
12 rue Marivaux 75002 Paris
--
sheepdog mailing list
sheepdog at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/sheepdog
--
--
Alexandre D e rumier
Ingénieur Systèmes et Réseaux
Fixe : 03 20 68 88 85
Fax : 03 20 68 90 88
45 Bvd du Général Leclerc 59100 Roubaix
12 rue Marivaux 75002 Paris
More information about the sheepdog
mailing list