<br><br><div class="gmail_quote">On Fri, Mar 8, 2013 at 2:23 AM, MORITA Kazutaka <span dir="ltr"><<a href="mailto:morita.kazutaka@gmail.com" target="_blank">morita.kazutaka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
At Fri, 8 Mar 2013 00:04:00 +0800,<br>
<div><div class="h5">Wenhao Xu wrote:<br>
><br>
> On Fri, Mar 8, 2013 at 12:01 AM, MORITA Kazutaka<br>
> <<a href="mailto:morita.kazutaka@gmail.com">morita.kazutaka@gmail.com</a>>wrote:<br>
><br>
> > At Wed, 6 Mar 2013 21:57:56 +0800,<br>
> > Wenhao Xu wrote:<br>
> > ><br>
> > > $ collie vdi list<br>
> > > Name Id Size Used Shared Creation time VDI id<br>
> > Copies<br>
> > > Tag<br>
> > > s img1 1 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:39 9e028f 1<br>
> > > snap1<br>
> > > s img1 2 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:39 9e0290 1<br>
> > > snap2<br>
> > > img1 3 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:40 9e0291 1<br>
> > ><br>
> > ><br>
> > > $ collie vdi rollback -s 3 img1 #This step cause the problem, Am I<br>
> > > doing something wrong? If this is not allowed, collie should probably<br>
> > > prevent the command executing.<br>
> ><br>
> > Rolling to a non-snapshot VDI is not allowed. I'll fix collie so that<br>
> > it prevents it.<br>
> ><br>
> Cool. Then how do I go back to a non-snapshot VDI after rolling to a<br>
> previous snapshot? Is there any way to do it?<br>
> Thanks.<br>
<br>
</div></div>The non-snapshot VDI is the one you are currently using, so it does<br>
not make sense to rollback it. In your case, the vdi with id 3 is the<br>
one marked with 'You are here' in the vdi tree output.<br>
<br></blockquote><div><br></div><div>Oh , I just notice it. I think my question is will I lose the changes on a VDI if I rollback to a previous snapshot without making a snapshot on it first. </div><div><br></div><div>Say I am making changes on VDI 3. Then I rollback it to snapshot 1. Because I don't snapshot the changes on VDI 3 yet before rollback happens, I will lose all the changes, right? Or is there anyway to "redo" it?</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks,<br>
<br>
Kazutaka<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>~_~