[sheepdog] snapshot rollback ?

Alexandre DERUMIER aderumier at odiso.com
Mon Aug 27 09:24:57 CEST 2012


Ok, I have upgrade to last sheepdog git,seem to work better but

now:

#collie vdi create image1 1G 
start qemu with file=sheepdog:image1 
#collie vdi tree 
image1---(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 
image1---[2012-08-27 09:07]---(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-27 09:07]---(you are here)

#ls -l 
/beforesnap1 
/aftersnap1 

????? I expected to have only /beforesnap1


#collie vdi tree  (after ls a new snapshot is created?)
image1---[2012-08-27 09:07]-+-[2012-08-27 09:09]
                            `-(you are here)
#collie vdi list
s image1     1  1.0 GB   60 MB  0.0 MB 2012-08-27 09:07   117819     3         snap1
s image1     2  1.0 GB  0.0 MB   60 MB 2012-08-27 09:09   11781a     3              
  image1     3  1.0 GB  8.0 MB   52 MB 2012-08-27 09:11   11781b     3        


Is it the normal behaviour ? 
 



----- 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é: Lundi 27 Août 2012 07:55:02 
Objet: Re: [sheepdog] snapshot rollback ? 

>>The way you tried is correct, but I've never seen such results... 

Just to be sure, I can make snapshot when the vm is online ? 

>>What are the revisions of your qemu and sheepdog? 

qemu-kvm 1.2 rc1 and sheepdog 0.4. 

I'll retry today with qemu-kvm 1.1 stable, and also sheepdog 0.4 and sheepdog git. 


----- 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é: Dimanche 26 Août 2012 12:56:43 
Objet: Re: [sheepdog] snapshot rollback ? 

At Sun, 26 Aug 2012 11:17:05 +0200 (CEST), 
Alexandre DERUMIER wrote: 
> 
> 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 ? 

The way you tried is correct, but I've never seen such results... 
What are the revisions of your qemu and sheepdog? 

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