[sheepdog] collie snapshot rollback cause the image unusable/undeletable
Wenhao Xu
xuwenhao2008 at gmail.com
Fri Mar 8 03:37:26 CET 2013
On Fri, Mar 8, 2013 at 2:23 AM, MORITA Kazutaka
<morita.kazutaka at gmail.com>wrote:
> At Fri, 8 Mar 2013 00:04:00 +0800,
> Wenhao Xu wrote:
> >
> > On Fri, Mar 8, 2013 at 12:01 AM, MORITA Kazutaka
> > <morita.kazutaka at gmail.com>wrote:
> >
> > > At Wed, 6 Mar 2013 21:57:56 +0800,
> > > Wenhao Xu wrote:
> > > >
> > > > $ collie vdi list
> > > > Name Id Size Used Shared Creation time VDI id
> > > Copies
> > > > Tag
> > > > s img1 1 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:39 9e028f
> 1
> > > > snap1
> > > > s img1 2 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:39 9e0290
> 1
> > > > snap2
> > > > img1 3 2.0 GB 0.0 MB 0.0 MB 2013-03-06 21:40 9e0291
> 1
> > > >
> > > >
> > > > $ collie vdi rollback -s 3 img1 #This step cause the problem, Am
> I
> > > > doing something wrong? If this is not allowed, collie should probably
> > > > prevent the command executing.
> > >
> > > Rolling to a non-snapshot VDI is not allowed. I'll fix collie so that
> > > it prevents it.
> > >
> > Cool. Then how do I go back to a non-snapshot VDI after rolling to a
> > previous snapshot? Is there any way to do it?
> > Thanks.
>
> The non-snapshot VDI is the one you are currently using, so it does
> not make sense to rollback it. In your case, the vdi with id 3 is the
> one marked with 'You are here' in the vdi tree output.
>
>
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.
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?
> Thanks,
>
> Kazutaka
>
--
~_~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130308/95065597/attachment-0004.html>
More information about the sheepdog
mailing list