FreeNAS 11.3 and EOL Jails. Upgrade to 11.4 jails?

Matt_G

Explorer
Joined
Jan 24, 2016
Messages
65
Except that doesn't work for plugin jails, which are pegged to their plugin-set release.
Acknowledging that plugins suck, is there a clean way to convert a plugin jail to a regular base jail? I'd rather avoid starting back from scratch, although this appears to be a common thing in the freebsd world, judging by a number of post read here and elsewhere ;P
Have you found a way to get that plugin jail up to 11.4?
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
How long should I expect iocage upgrade -r 11.4-RELEASE <jail> to take to run? It seems like it takes a while on my machine.
 

millst

Contributor
Joined
Feb 2, 2015
Messages
141
Upgrade takes a long time for me, but I can't say I've every actually timed it. It is long enough that I will go do something else and check it later.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
I didn't really time it either. I checked the time I just started another upgrade. Will see how long it takes.
UPDATE: Going from 11.2 to 11.4 took about 40 minutes on my hardware. Doing 11.3 to 11.4 now...
UPDATE2: Going from 11.3 to 11.4 took a lot less time, like 15min. I suspect it not only matters the major release, but the sub-release (e.g. 11.2-RELEASE-p12 will take less time than 11.2-RELEASE-p9 since it is 3 patch releases newer and thus fewer files to patch.

Also, any known issues with updating iocage jails containing OpenVPN, Plex, Apache, etc.?
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
If you don't need a source tree inside the jail - and in most cases you don't - you can remove /usr/src first. That will speed up upgrades significantly.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
How can you update from 11.4-RELEASE-p5 to 11.4-RELEASE-p6?
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
How can you update from 11.4-RELEASE-p5 to 11.4-RELEASE-p6?

You just issue the command iocage update <jailname> outside the Jail.

I'm not sure if you need to fetch the latest release again. If that doesn't work run iocage fetch and then select the 11.4-RELEASE and then run the update again.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Ok, so you don't need the -r flag. Got it. Thanks.
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
Ok, so you don't need the -r flag. Got it. Thanks.
That's the upgrade command, not the update. The update command will get you on the latest patch level.

To upgrade the release you would use iocage upgrade <jailname> -r 12.2-RELEASE as an example.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Oh, ok, I get it now. Thanks!
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Hmm, I did that and it seemed to finish:
root@freenas[~]# iocage update scratch Snapshot already exists!

But did not seem to update the dot-release. Am I running this incorrectly?

And the upgrade says I am already at that release:
root@freenas[~]# iocage upgrade -r 11.4-RELEASE scratch Jail: scratch is already at version 11.4-RELEASE!
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
If you want to see the patch level of the Jail you need to go inside the Jail and run the command freebsd-version. It should return:

Code:
11.4-RELEASE-p6
 

hertzsae

Contributor
Joined
Sep 23, 2014
Messages
118
Or you can run
Code:
iocage list -l
from the freenas shell and see the version for all jails.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
This is what that prints:
Code:
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+
| JID |     NAME     | BOOT | STATE | TYPE |     RELEASE     |          IP4          | IP6 | TEMPLATE |
+=====+==============+======+=======+======+=================+=======================+=====+==========+
| -   | scratch      | off  | down  | jail | 11.4-RELEASE-p5 | DHCP (not running)    | -   | -        |
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+


How can I get this upgraded/updated to the p6 update of 11.4?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
iocage update scratch
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Code:
root@freenas[~]# iocage update scratch
Snapshot already exists!
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Then delete the snapshot ... :wink:
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Is that done from Storage > Snapshots in the Web UI? Is there any risk to this? I see 3 snapshots:
Code:
Tank/iocage/jails/scratch/root@ioc_update_11.4-RELEASE-p5
Tank/iocage/jails/scratch@ioc_update_11.4-RELEASE-p5
Tank/iocage/releases/11.4-RELEASE/root@scratch


Is it safe to delete all of these from the UI?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The last one probably not, but definitely the "update" ones. These are just a copy before the update for safety.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
This seems to indicate there are no updates from p5 to p6:
Code:
root@freenas[~]# iocage update scratch
Snapshot: Tank/iocage/jails/scratch@ioc_update_11.4-RELEASE-p5 created.

* Updating scratch to the latest patch level...
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 11.4-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 11.4-RELEASE-p6.
src component not installed, skipped
No updates are available to install.
Run '/tmp/tmphqr1tauz fetch' first.
umount: unmount of /mnt/iocage/jails/scratch/root/dev failed: Device busy

scratch has been updated successfully.
root@freenas[~]# iocage list -l
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+
| JID |     NAME     | BOOT | STATE | TYPE |     RELEASE     |          IP4          | IP6 | TEMPLATE |
+=====+==============+======+=======+======+=================+=======================+=====+==========+
| -   | scratch      | off  | down  | jail | 11.4-RELEASE-p5 | DHCP (not running)    | -   | -        |
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+
 
Top