[sheepdog] snapshot rollback ?

Alexandre DERUMIER aderumier at odiso.com
Fri Aug 24 09:30:46 CEST 2012


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 




More information about the sheepdog mailing list