SOLVED Accidentally promoted dataset and now I can't delete it

Status
Not open for further replies.

ninjai

Explorer
Joined
Apr 6, 2015
Messages
98
I created a dataset to fire up nextcloud in and noticed I made a typo in the name. So instead of clicking on "Destroy", I accidentally clicked on the "promote dataset" button, which gave me no prompt at all and just promoted it.

I'm not sure what this means, but now I can't delete it:
Code:
cannot destroy 'Storage/Jails/nextloud': filesystem has dependent clones use '-R' to destroy the following datasets: Storage/Jails/.warden-template-standard@auto-20180323.1800-2w Storage/Jails/.warden-template-standard@auto-20180323.1200-2w Storage/Jails/.warden-template-standard


Code:
@freenas ~]$ zfs get origin | grep nextloud
Storage/Jails/.warden-template-standard											  origin	Storage/Jails/nextloud@clean													-
Storage/Jails/nextloud															   origin	-																			   -
Storage/Jails/nextloud@clean														 origin	-


Code:
@freenas /mnt/Storage/Jails]$ zfs list -t snapshot | grep nextloud
Storage/Jails/nextloud@clean															 0	  -  2.91G  -


I'm not sure how to proceed. I don't want to ruin any of the other data on my NAS. The dataset is in the same spot as all my other jail datasets (/mnt/Storage/Jails/). What has this "promote dataset" thing actually done and now do I get rid of this dataset without losing anything else?
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,478
Can you please provide a screenshot of your dataset structure from the FreeNAS GUI?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
"Promote" data set? What the heck is that? Is this some newfanglery in FreeNAS 11?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Allan has explained this to me. This is something to do with cloned datasets.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Promote the original dataset and the situation will be reversed.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Right, in this case:
Code:
cannot destroy 'Storage/Jails/nextloud':
  filesystem has dependent clones use '-R' to destroy the following datasets:
	Storage/Jails/.warden-template-standard@auto-20180323.1800-2w
	Storage/Jails/.warden-template-standard@auto-20180323.1200-2w
	Storage/Jails/.warden-template-standard

You want to promote the warden template:
Code:
zfs promote Storage/Jails/.warden-template-standard

You should then be able to destroy the nextloud dataset and snapshots:
Code:
zfs destroy -r Storage/Jails/nextloud

'-r' destroys dependent snapshots
'-R' destroys dependent snapshots and datasets
You likely don't want to use '-R'
 
Status
Not open for further replies.
Top