Unable to destroy promoted zfs dataset

From: Shawn Webb <lattera_at_gmail.com>
Date: Wed, 10 Apr 2013 20:34:54 -0400
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

Thanks,

Shawn
Received on Wed Apr 10 2013 - 22:35:02 UTC

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