[sheepdog] [question] Can I delete a snapshot when it is referred by a volume?

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Mar 18 09:17:34 CET 2013


At Thu, 14 Mar 2013 15:10:22 +0800,
Wenhao Xu wrote:
> 
> Hi Kazutaka,
> 
> I am doing the following ops. After rollback to a snapshot, I deleted the
> snapshot. I am wondering is this a valid operation? Or is there a potential
> losing data here?
> Thanks. I really appreciate your time.
> 
> 
> $ collie vdi list
> test         1  2.1 MB  4.0 MB  0.0 MB 2013-03-13 15:06   7c2b25     1
> 
> $collie vdi  snapshot -s test1-s1 test
> $collie vdi  snapshot -s test1-s2 test
> 
> $collie vdi  tree
> test---[2013-03-13 15:06]---[2013-03-14 10:29]---(you are here)
> 
> $vdi  rollback -s test1-s1 test
> 
> $collie vdi  tree
> 
> test---[2013-03-13 15:06]-+-[2013-03-14 10:29]
>                           `-(you are here)
> 
> $collie vdi  delete -s test1-s1 test  (Is this a valid operation?)

Yes, you can safely remove it.

> 
> $collie vdi tree                (is this correct?)
> test---[2013-03-14 10:29]
> test---(you are here)

The output looks wrong.  I think it is a bug of the vdi tree command.

Thanks,

Kazutaka



More information about the sheepdog mailing list