I have a snapshot that I'd like to destroy:

# zfs list rpool/ROOT/be200909160...@200909160720
NAME                                     USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/be200909160...@200909160720  1.88G      -  4.18G  -

But when I try it warns me of dependent clones:

# zfs destroy rpool/ROOT/be200909160...@200909160720
cannot destroy 'rpool/ROOT/be200909160...@200909160720': snapshot has dependent 
clones
use '-R' to destroy the following datasets:
rpool/ROOT/sol10u7

What do I have to do to be able to destroy the snapshot?


I've tried promoting the clone:

# zfs promote rpool/ROOT/sol10u7

But that just moves the snapshot:

# zfs list rpool/ROOT/be200909160...@200909160720
cannot open 'rpool/ROOT/be200909160...@200909160720': dataset does not exist
# zfs list rpool/ROOT/sol1...@200909160720
NAME                              USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/sol1...@200909160720  12.2M      -  4.18G  -

and when I try to destroy it, I get warned about other dependent clones:

# zfs destroy rpool/ROOT/sol1...@200909160720
cannot destroy 'rpool/ROOT/sol1...@200909160720': snapshot has dependent clones
use '-R' to destroy the following datasets:
rpool/ROOT/be200909160920/zones/zone01
rpool/ROOT/be200909160920/zones/zone02
rpool/ROOT/be200909160920/zones
rpool/ROOT/be200909160920

So I try promoting those:

# zfs promote rpool/ROOT/be200909160920/zones/zone01
cannot open 'rpool/ROOT/be200909160920/zones/zone01': dataset does not exist
# zfs promote rpool/ROOT/be200909160920/zones/zone01
cannot promote 'rpool/ROOT/be200909160920/zones/zone01': not a cloned filesystem
# zfs promote rpool/ROOT/be200909160920/zones/zone02
cannot promote 'rpool/ROOT/be200909160920/zones/zone02': not a cloned filesystem
# zfs promote rpool/ROOT/be200909160920/zones
cannot promote 'rpool/ROOT/be200909160920/zones': not a cloned filesystem
# zfs promote rpool/ROOT/be200909160920

But that just moves the snapshot back to where it was:

# zfs list rpool/ROOT/sol1...@200909160720
cannot open 'rpool/ROOT/sol1...@200909160720': dataset does not exist
# zfs list rpool/ROOT/be200909160...@200909160720
NAME                                     USED  AVAIL  REFER  MOUNTPOINT
rpool/ROOT/be200909160...@200909160720  1.88G      -  4.18G  -


I've tried to find the answer in the docs but I'm not having a lot of luck. Can 
someone provide some pointers?
-- 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to