<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 10pt; color: #000000'><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; background-color: rgb(255, 255, 255); ">>>Can we delete such snapshot without problems, or do we need</span><br style="font-family: monospace; font-size: medium; "><span style="color: rgb(0, 0, 0); font-family: monospace; font-size: medium; background-color: rgb(255, 255, 255); ">>>some kind of snapshot merging (I guess we want to avoid that if possible)?</span><div style="color: rgb(0, 0, 0); "><font face="monospace"><br></font></div><div style="color: rgb(0, 0, 0); "><font face="monospace">Yes, I think we can simply delete snapshot without need to merge, as they use copy on write (maybe not lvm?)</font></div><div style="color: rgb(0, 0, 0); "><br></div><div style="color: rgb(0, 0, 0); "><br></div><div style="color: rgb(0, 0, 0); "><font face="monospace">some tests</font></div><div style="color: rgb(0, 0, 0); "><font face="monospace"><br></font></div><div style="color: rgb(0, 0, 0); "><font face="monospace">qcow2</font></div><div style="color: rgb(0, 0, 0); "><font face="monospace">----</font></div><div><span style="font-family: monospace; ">qemu-img snapshot -c snap1 image1</span></div><div><font face="monospace">qemu-img snapshot -c snap2 image1</font></div><div><font face="monospace">qemu-img snapshot -d snap1 image1</font></div><div><font face="monospace"><div>root@kvmtest1:~# qemu-img snapshot -l image1</div><div>Snapshot list:</div><div>ID TAG VM SIZE DATE VM CLOCK</div><div>2 snap2 0 2012-08-23 12:34:45 00:00:00.000</div><div><br></div></font></div><div style="color: rgb(0, 0, 0); "><div>rados</div><div>------</div><div>#rbd snap create --snap snap1 image1</div><div>#rbd snap create --snap snap2 image1</div><div>#rbd snap rm --snap snap1 image1</div></div><div><div># rbd snap ls image1</div><div>ID<span class="Apple-tab-span" style="white-space:pre"> </span>NAME<span class="Apple-tab-span" style="white-space:pre"> </span>SIZE</div><div>5<span class="Apple-tab-span" style="white-space:pre"> </span>snap2<span class="Apple-tab-span" style="white-space:pre"> </span>1048576000</div><div style="color: rgb(0, 0, 0); "><br></div></div><div style="color: rgb(0, 0, 0); "><font face="monospace">sheepdog</font></div><div style="color: rgb(0, 0, 0); "><font face="monospace">---------</font></div><div><font face="monospace"><div>#collie vdi snapshot -s snap1 image1</div><div>#collie vdi snapshot -s snap2 image1</div><div style="color: rgb(0, 0, 0); "># collie vdi delete image1 -s snap1</div><div><div># collie vdi list</div><div> Name Id Size Used Shared Creation time VDI id Tag</div><div>s image1 2 1.0 GB 0.0 MB 0.0 MB 2012-08-23 11:56 737a92 snap2</div><div> image1 3 1.0 GB 0.0 MB 0.0 MB 2012-08-23 12:38 737a93 </div></div></font></div><div style="color: rgb(0, 0, 0); "><font face="monospace"><br></font><br><hr id="zwchr" style="font-family: Verdana; font-size: 10pt; "><div style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; "><b>De: </b>"Dietmar Maurer" <dietmar@proxmox.com><br><b>À: </b>"Alexandre DERUMIER" <aderumier@odiso.com><br><b>Cc: </b>pve-devel@pve.proxmox.com<br><b>Envoyé: </b>Jeudi 23 Août 2012 12:23:50<br><b>Objet: </b>RE: [pve-devel] kvm disk template implementation ideas<br><br><br><br>> -----Original Message-----<br>> From: Alexandre DERUMIER [mailto:aderumier@odiso.com]<br>> Sent: Donnerstag, 23. August 2012 12:11<br>> To: Dietmar Maurer<br>> Cc: pve-devel@pve.proxmox.com<br>> Subject: Re: [pve-devel] kvm disk template implementation ideas<br>> <br>> - either explicit: by using different volume names<br>> - or implicit: we generate the real snapshot volume names as F(volid,<br>> snapshotname)<br>> <br>> I think we need implicit,<br>> I don't see how explicit can work.<br>> Volume name is always the same, snapshot should just be a reference name<br>> of a point in time<br><br>Maybe. Can we delete such snapshot without problems, or do we need<br>some kind of snapshot merging (I guess we want to avoid that if possible)?<br><br>- Dietmar<br></div><br><br><br><font face="Verdana" size="2">-- </font><br><div style="font-family: Verdana; font-size: 10pt; "><span name="x"></span><br class="Apple-interchange-newline"><table cellspacing="3" cellpadding="0" border="0" style="background-color: rgb(255, 255, 255); font-family: Calibri; height: 150px; "><tbody><tr><td class="style2"><p><span style="font-size: 12pt; "><img width="248" height="150" src="http://www.odiso.com/library/img/signature/logo_blanc.png" src="http://www.odiso.com/library/img/signature/logo_blanc.png"></span></p></td><td width="100%" class="style3" style="padding-left: 10px; "><table cellspacing="5" cellpadding="5" border="0" class="MsoNormalTable"><tbody><tr><td><p><b><span style="font-size: 12.5pt; "><font color="#198ea3">Alexandre </font></span></b><b><span style="font-size: 12.5pt; color: rgb(66, 66, 66); ">D</span></b><b style="font-size: 10pt; "><span style="font-size: 12.5pt; color: rgb(66, 66, 66); ">e</span></b><b style="font-size: 10pt; "><span style="font-size: 12.5pt; color: rgb(66, 66, 66); ">rumier</span></b><span style="font-size: 10pt; "> </span></p><p><b><span style="color: rgb(66, 66, 66); "><font size="2">Ingénieur Systèmes et Réseaux</font></span></b></p></td></tr><tr><td><p><font size="2"><b><span style="color: rgb(66, 66, 66); ">Fixe </span><span style="color: rgb(66, 66, 66); ">: </span></b><span style="color: rgb(99, 100, 102); ">03 20 68 88 85</span> <br> <br><b><span style="color: rgb(66, 66, 66); ">Fax : </span></b><span style="color: rgb(99, 100, 102); ">03 20 68 90 88</span></font></p></td></tr><tr><td class="style1"><p><font size="2"><span style="color: gray; ">45 Bvd du Général Leclerc 59100 Roubaix </span><br><span style="color: gray; ">12 rue Marivaux 75002 Paris</span></font><span style="font-size: 12pt; "></span></p></td></tr></tbody></table></td></tr></tbody></table><span style="font-family: Arial; background-color: rgb(255, 255, 255); "></span><br style="font-family: Arial; background-color: rgb(255, 255, 255); "><span name="x"></span><br></div></div></div></body></html>