[sheepdog] snapshot rollback ?

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri Aug 24 09:08:51 CEST 2012


At Fri, 24 Aug 2012 08:35:25 +0200 (CEST),
Alexandre DERUMIER wrote:
> 
> >>If you run the following command, you can rollback the snapshot again. 
> >>
> >>$ qemu sheepdog:image1:snap1 
> >>
> >>I think the 'collie vdi tree' command would help you. 
> 
> Thanks, But I don't understand how It can work.
> 
> If I 
> "I create a base vdi : image1 

  $ collie vdi tree
  image1---(you are here)

> create a snapshot: snap1 

  $ collie vdi tree
  image1---[2012-08-24 15:44]---(you are here)

> create a snapshot: snap2 

  $ collie vdi tree
  image1---[2012-08-24 15:44]---[2012-08-24 15:44]---(you are here)

> now I boot on snap1 
> qemu sheepdog:image1:snap1 
> I write datas

  $ collie vdi tree
  image1---[2012-08-24 15:44]-+-[2012-08-24 15:44]---[2012-08-24 15:45]
                              `-(you are here)

> and now I restart the vm (so with qemu sheepdog:image1:snap1).

Even if you restart the vm, sheepdog doesn't reopen the image and the
rollback doesn't happen.  If you completely shutdown the vm, please
use "qemu sheepdog:image1" to restart the vm from the previous
shutdown point.  The command will start from '(you are here)'.

> "
> It will rollback ? But in this case It will destroy my new datas ?
> In this case I don't want rollback, I just want restart the vm.

Even if you wrongly rollback to a snapshot, you don't lose any data
because the previous image is kept as a snapshot.

  $ ./collie/collie vdi tree
  image1---[2012-08-24 15:44]-+-[2012-08-24 15:44]---[2012-08-24 15:45]
                              |-[2012-08-24 15:46]
                              `-(you are here)

Thanks,

Kazutaka



More information about the sheepdog mailing list