Delete warden-templates?

Status
Not open for further replies.

ppmax

Contributor
Joined
May 16, 2012
Messages
111
Hi--

I have two jails up and running:
one for owncloud, and one for plex

When I navigate to the Jails section, I see 3 empty jails:
.warden-template-pluginjail--x64
.warden-template-portjail-9.2-x64
.warden-template-standard--x64

Can I delete these safely? Are there dependencies on these for my two running jails?

thanks much
PP
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
Yes, you may delete them. Make sure you also remove the directory afterwards, otherwise when you come to create a new jail, it will not be able to as the directory already exists.
 

ppmax

Contributor
Joined
May 16, 2012
Messages
111
Thank much for the info--much appreciated. I'll nuke the jails and delete the dirs.

PP
 

ppmax

Contributor
Joined
May 16, 2012
Messages
111
Hrm...
Strangely, these jails are not removable via the web interface:
jails/.warden-template-portjail-9.2-x64
jails/.warden-template-standard--x64

So I tried rm -rf'ing these via the term after, and they aren't removable with the root account either; they appear to be in use by the system somehow. Here's what I see when I try to remove them via the UI:
cannot destroy 'volume1/jails/.warden-template-portjail-9.2-x64': filesystem has dependent clones use '-R' to destroy the following datasets: volume1/jails/plexmediaserver_1

Any clues? What command takes the -R switch?

thx
PP
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
That would suggest you have an old jail using one of the templates. You can promote your jail so it's no longer linked to it.

# zfs promote volume1/jails/plexmediaserver_1
 

ppmax

Contributor
Joined
May 16, 2012
Messages
111
Thanks again for your help m0nkey_ ...

I tried promoting both of the jails and get:
>>cannot open 'plexmediaserver_1': dataset does not exist
>>cannot open 'own cloud': dataset does not exist

I did a bit more poking around and it appears this same thing has happened to someone else:
https://forums.freenas.org/index.php?threads/proper-way-to-delete-snapshot.28827/#post-189677

If this is similar, it looks like I'll need to nuke the jails, delete the templates, and then rebuild them :(

thx again,
PP
 
Status
Not open for further replies.
Top