Re: Unable to destroy promoted zfs dataset

From: Shawn Webb <lattera_at_gmail.com>
Date: Wed, 10 Apr 2013 20:49:06 -0400
On Wed, Apr 10, 2013 at 8:34 PM, Shawn Webb <lattera_at_gmail.com> wrote:

> Hey All,
>
> Unless I'm misunderstanding how to do what I'm trying to do, I'm unable to
> destroy a zfs dataset that was cloned and subsequently promoted from
> another dataset. Am I doing something wrong?
>
> Log of what I'm doing:
>
> [shawn_at_shawn-vm-host ~]$ sudo zfs send rpool/jails/www_template_at_2013-04-10| sudo zfs recv tank/jails/www_template/ROOT/base
> [shawn_at_shawn-vm-host ~]$ sudo zfs clone
> tank/jails/www_template/ROOT/base_at_2013-04-10tank/jails/www_template/ROOT/newbe
> [shawn_at_shawn-vm-host ~]$ sudo zfs promote
> tank/jails/www_template/ROOT/newbe
> [shawn_at_shawn-vm-host ~]$ sudo zfs destroy -r
> tank/jails/www_template/ROOT/newbe
> cannot destroy 'tank/jails/www_template/ROOT/newbe': filesystem has
> dependent clones
> use '-R' to destroy the following datasets:
> tank/jails/www_template/ROOT/base
>
> uname -a output:
>
> [shawn_at_shawn-vm-host ~]$ uname -a
> FreeBSD shawn-vm-host 10.0-CURRENT FreeBSD 10.0-CURRENT #18
> r247823+968929d: Fri Mar  8 15:26:33 EST 2013     shawn_at_shawn-vm-host:/usr/obj/usr/src/sys/SEC
>  amd64
>

Nevermind. I figured it out. I was misunderstanding what "promoted" meant.

Thanks,

Shawn
Received on Wed Apr 10 2013 - 22:49:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:36 UTC