I have a snapshot that I''d like to destroy: # zfs list rpool/ROOT/be200909160920 at 200909160720 NAME USED AVAIL REFER MOUNTPOINT rpool/ROOT/be200909160920 at 200909160720 1.88G - 4.18G - But when I try it warns me of dependent clones: # zfs destroy rpool/ROOT/be200909160920 at 200909160720 cannot destroy ''rpool/ROOT/be200909160920 at 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/be200909160920 at 200909160720 cannot open ''rpool/ROOT/be200909160920 at 200909160720'': dataset does not exist # zfs list rpool/ROOT/sol10u7 at 200909160720 NAME USED AVAIL REFER MOUNTPOINT rpool/ROOT/sol10u7 at 200909160720 12.2M - 4.18G - and when I try to destroy it, I get warned about other dependent clones: # zfs destroy rpool/ROOT/sol10u7 at 200909160720 cannot destroy ''rpool/ROOT/sol10u7 at 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/sol10u7 at 200909160720 cannot open ''rpool/ROOT/sol10u7 at 200909160720'': dataset does not exist # zfs list rpool/ROOT/be200909160920 at 200909160720 NAME USED AVAIL REFER MOUNTPOINT rpool/ROOT/be200909160920 at 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
Sorry. My environment: # uname -a SunOS xxxxxx 5.10 Generic_141414-10 sun4v sparc SUNW,SPARC-Enterprise-T5220 -- This message posted from opensolaris.org
On Mon, Oct 05, 2009 at 02:14:24PM -0700, Mark Horstman wrote:> I have a snapshot that I''d like to destroy:If you have a filesystem and a clone of that filesystem, a snapshot always connects them. You can destroy the snapshot only if there are no clones. -- Darren