[pve-devel] kvm disk template implementation ideas

Alexandre DERUMIER aderumier at odiso.com
Thu Aug 23 12:51:04 CEST 2012


>>Can we delete such snapshot without problems, or do we need 
>>some kind of snapshot merging (I guess we want to avoid that if possible)? 


Yes, I think we can simply delete snapshot without need to merge, as they use copy on write (maybe not lvm?) 




some tests 


qcow2 
---- 
qemu-img snapshot -c snap1 image1 
qemu-img snapshot -c snap2 image1 
qemu-img snapshot -d snap1 image1 

root at kvmtest1:~# qemu-img snapshot -l image1 
Snapshot list: 
ID TAG VM SIZE DATE VM CLOCK 
2 snap2 0 2012-08-23 12:34:45 00:00:00.000 



rados 
------ 
#rbd snap create --snap snap1 image1 
#rbd snap create --snap snap2 image1 
#rbd snap rm --snap snap1 image1 

# rbd snap ls image1 
ID NAME SIZE 
5 snap2 1048576000 


sheepdog 
--------- 

#collie vdi snapshot -s snap1 image1 
#collie vdi snapshot -s snap2 image1 
# collie vdi delete image1 -s snap1 

# collie vdi list 
Name Id Size Used Shared Creation time VDI id Tag 
s image1 2 1.0 GB 0.0 MB 0.0 MB 2012-08-23 11:56 737a92 snap2 
image1 3 1.0 GB 0.0 MB 0.0 MB 2012-08-23 12:38 737a93 


----- Mail original -----

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Jeudi 23 Août 2012 12:23:50 
Objet: RE: [pve-devel] kvm disk template implementation ideas 



> -----Original Message----- 
> From: Alexandre DERUMIER [mailto:aderumier at odiso.com] 
> Sent: Donnerstag, 23. August 2012 12:11 
> To: Dietmar Maurer 
> Cc: pve-devel at pve.proxmox.com 
> Subject: Re: [pve-devel] kvm disk template implementation ideas 
> 
> - either explicit: by using different volume names 
> - or implicit: we generate the real snapshot volume names as F(volid, 
> snapshotname) 
> 
> I think we need implicit, 
> I don't see how explicit can work. 
> Volume name is always the same, snapshot should just be a reference name 
> of a point in time 

Maybe. Can we delete such snapshot without problems, or do we need 
some kind of snapshot merging (I guess we want to avoid that if possible)? 

- Dietmar 



-- 



	
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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20120823/853a0bcd/attachment.htm>


More information about the pve-devel mailing list