Safe to delete releases in jail?

xaser

Dabbler
Joined
Mar 8, 2020
Messages
34
Hi,

I am running 11.3-U2 and have 3 iocage jails (all running 11.3). I noticed that in the iocage dataset there is a "downloads" folder that contains "11.2-RELEASE" and "11.3-RELEASE"; also there is a "releases" folder that contains "11.2-RELEASE" and "11.3-RELEASE", each with a "root" subfolder.

Is it safe to delete the "download" dataset in the jail? also, since my jails are running 11.3, can i delete the 11.2-RELEASE folder from "releases"?

Thanks!!
 
Joined
Jan 7, 2015
Messages
1,155
Because I have migrated from each release when I tried recently to remove 11.1-RELEASE it first said it had dependents, must use --recursive to delete it, but in the confirmation it listed several of my main jails. So I went and looked and found this. Be very careful destroying these old releases.
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Oh that's interesting. I'd do an iocage list -l and see whether anything is a clone jail.

I have all base jails and I've removed 11.2-RELEASE without ill effect. In the discussing you're linking, @John Digital , those two jails must have been clone jails.

Edit: This discussion is relevant, https://www.ixsystems.com/community...ype-base-jail-vs-clone-which-to-choose.82639/ . "Due to the clone process, it keeps dependency on the release. As a result, you won't be be to delete the release, unless you delete all jails that were cloned from it"
 
Joined
Jan 7, 2015
Messages
1,155
Right. I just decided it wasnt a big deal. Good info! Seems in the other link promoting the dataset allowed the RELEASE to be destroyed without warning. I didn't revisit the issue until now.
 

xaser

Dabbler
Joined
Mar 8, 2020
Messages
34
Thanks for the info guys - all of mine are clone jails. but I made them all fresh when I installed 11.3 (I think clone is the "default")... would that be safe to delete? Also, can I take it that the "downloads" folder is certainly safe to delete? Just trying to have the cleanest file system possible...
 

xaser

Dabbler
Joined
Mar 8, 2020
Messages
34
So I looked at the thread and decided to see if there are any dependent jails... doesn't look like it as the command just pulls up a bunch of my snapshots:

root@freenas:~ # iocage destroy -r 11.2-RELEASE

This will destroy RELEASE: 11.2-RELEASE

Are you sure? [y/N]: y

11.2-RELEASE has dependent jails (who may also have dependents), use --recursive to destroy:
auto-2020-03-31_00-00
auto-2020-03-31_00-00
auto-2020-04-01_00-00
auto-2020-04-01_00-00
auto-2020-04-02_00-00
auto-2020-04-02_00-00
auto-2020-04-03_00-00
auto-2020-04-03_00-00
auto-2020-04-04_00-00
auto-2020-04-04_00-00
auto-2020-04-05_00-00
auto-2020-04-05_00-00
auto-2020-04-06_00-00
auto-2020-04-06_00-00
auto-2020-04-07_00-00
auto-2020-04-07_00-00
auto-2020-04-08_00-00
auto-2020-04-08_00-00
auto-2020-04-09_00-00
auto-2020-04-09_00-00
manual-2020-04-09_23-10
manual-2020-04-09_23-10


Thoughts?
 
Joined
Jan 7, 2015
Messages
1,155
These are snapshots. Its my opinion that if you want to remove the RELEASE you dont need the snapshots. When I tried this several of my jails were listed. I think your good to go.
 

xaser

Dabbler
Joined
Mar 8, 2020
Messages
34
Weird.. when I try to do that I get the following:


root@freenas:~ # iocage destroy -r --recursive 11.2-RELEASE

This will destroy RELEASE: 11.2-RELEASE

Are you sure? [y/N]: y
jail ' auto-2020-03-31_00-00


Why is it thinking that my snapshot is a jail?
 
Joined
Jan 7, 2015
Messages
1,155
Do you have a jail named jail lol
 

xaser

Dabbler
Joined
Mar 8, 2020
Messages
34
Just realized I didn't paste the full thing:


This will destroy RELEASE: 11.2-RELEASE

Are you sure? [y/N]: y
jail ' auto-2020-03-31_00-00
' not found!
 

Inxsible

Guru
Joined
Aug 14, 2017
Messages
1,123
 
Top