Re: [zfs-discuss] Remove the zfs snapshot keeping the original volume and clone

2009-09-01 Thread Henrik Bjornstrom - Sun Microsystems

Thanks for tha answers.

Lori Alt wrote:

On 08/31/09 08:30, Henrik Bjornstrom - Sun Microsystems wrote:

Hi !

Have anyone given an answer to this that I have missed ? I have a 
customer that have the same question and I want to give him a correct 
answer.


/Henrik

Ketan wrote:
I created a snapshot and subsequent clone of a zfs volume. But now i 
'm not able to remove the snapshot it gives me following error

zfs destroy newpool/ldom2/zdi...@bootimg
cannot destroy 'newpool/ldom2/zdi...@bootimg': snapshot has 
dependent clones

use '-R' to destroy the following datasets:
newpool/ldom2/zdisk0

and if i promote the clone then the original volume becomes the 
dependent clone , is there a way to destroy just the snapshot 
leaving the clone and original volume intact ?

no. As long as a clone exists, its origin snapshot must exist as well.

lori





--
Henrik Bjornstrom

Sun MicrosystemsEmail:  henrik.bjornst...@sun.com
Box 51  Phone:  +46 8  631 1315
164 94  KISTA   
SWEDEN 


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Remove the zfs snapshot keeping the original volume and clone

2009-08-31 Thread Henrik Bjornstrom - Sun Microsystems

Hi !

Have anyone given an answer to this that I have missed ? I have a 
customer that have the same question and I want to give him a correct 
answer.


/Henrik

Ketan wrote:
I created a snapshot and subsequent clone of a zfs volume. But now i 'm not able to remove the snapshot it gives me following error 


zfs destroy newpool/ldom2/zdi...@bootimg
cannot destroy 'newpool/ldom2/zdi...@bootimg': snapshot has dependent clones
use '-R' to destroy the following datasets:
newpool/ldom2/zdisk0

and if i promote the clone then the original volume becomes the dependent clone 
, is there a way to destroy just the snapshot leaving the clone and original 
volume intact ?
  



--
Henrik Bjornstrom

Sun MicrosystemsEmail:  henrik.bjornst...@sun.com
Box 51  Phone:  +46 8  631 1315
164 94  KISTA   
SWEDEN 


___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss