FreeNAS 11.3 and EOL Jails. Upgrade to 11.4 jails?

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
What does freebsd-version inside your jail say?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
it's actually iocage upgrade -r 11.4-RELEASE scratch
He's already at 11.4-p5 and wants to update to 11.4-p6 - so I stand by what I wrote.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Hmm, freebsd-version in the jail reports it is at p6:
Code:
root@freenas[~]# iocage exec scratch freebsd-version
scratch is not running, starting jail

Command output:
11.4-RELEASE-p6

root@freenas[~]# iocage list -l
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+
| JID |     NAME     | BOOT | STATE | TYPE |     RELEASE     |          IP4          | IP6 | TEMPLATE |
+=====+==============+======+=======+======+=================+=======================+=====+==========+
| 56  | scratch      | off  | up    | jail | 11.4-RELEASE-p5 | epair0b|192.168.1.158 | -   | -        |
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+


I guess I can ignore the list from the Web UI and CLI, but that can be confusing. Is there an easy way to synchronize these?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Is there an easy way to synchronize these?
It's in /mnt/<pool>/iocage/jails/scratch/config.json. You can edit that file if you are careful.

Seems like you had already done an update which did not completely finish. Hence the snapshots, but if I'm not mistaken updating the config file is the final step iocage would do.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
My radarr jail had not been updated yet. I just did the update and it looks like it completed successfully but did not update the list in CLI or Web UI:
Code:
root@freenas[~]# iocage exec radarr freebsd-version
11.4-RELEASE-p5

root@freenas[~]# iocage update radarr
Snapshot: Tank/iocage/jails/radarr@ioc_update_11.4-RELEASE-p5 created.

* Updating radarr 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 update4.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 9 patches..... done.
Applying patches... done.
The following files will be updated as part of updating to
11.4-RELEASE-p6:
/bin/freebsd-version
/lib/libcrypto.so.8
/rescue/[
/rescue/atmconfig
/rescue/badsect
/rescue/bectl
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/iscsictl
/rescue/iscsid
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/poweroff
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rcp
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/shutdown
/rescue/sleep
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zdb
/rescue/zfs
/rescue/zpool
/usr/include/openssl/asn1.h
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib32/libcrypto.a
/usr/lib32/libcrypto.so.8
/usr/lib32/libcrypto_p.a
src component not installed, skipped
Installing updates... done.

radarr has been updated successfully.
root@freenas[~]# iocage list -l
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+
| JID |     NAME     | BOOT | STATE | TYPE |     RELEASE     |          IP4          | IP6 | TEMPLATE |
+=====+==============+======+=======+======+=================+=======================+=====+==========+
| 44  | radarr       | off  | up    | jail | 11.4-RELEASE-p5 | epair0b|192.168.1.17  | -   | -        |
+-----+--------------+------+-------+------+-----------------+-----------------------+-----+----------+
root@freenas[~]# iocage exec radarr freebsd-version
11.4-RELEASE-p6


Is this possibly a bug?
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
Not sure if it matters, but I am still running FreeNAS 11.2-U8.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You have no guarantee at all that an 11.4 jail will work on an 11.2 system. If it works, fine. But binary compatibility is only guaranteed downwards for FreeBSD, e.g. 11.2 jail on 11.4 kernel.

I suppose it's something with your old version. Might be a bug, but I am sure it won't be fixed for 11.2 :wink:
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
I had no issues with running 11.4-RELEASE Jails on my FreeNAS 11.2 system. But I've upgraded to TrueNAS Core this weekend and also upgraded my Jail to 12.2-RELEASE.
 

rmccullough

Patron
Joined
May 17, 2018
Messages
269
@Patrick M. Hausen Hmm, just odd that my 11.2 and 11.3 jails I updated to 11.4 worked and display the p6 patch level. I haven't had any issues running the 11.4 jails thus far, but I do plan to look at upgrading at some point.

@Mannekino any issues with going from 11.2 to TrueNAS? Is the upgrade pretty straight-forward / simple? Any special instructions or guide that you followed?
 

Matt_G

Explorer
Joined
Jan 24, 2016
Messages
65
I would suggest going to 11.3-U5 first, then going to TrueNAS.
And remember not to update the pool for at least a week.
Make sure everything is working before doing that.
If you upgrade the pool, you will not be able to go back to 11.2 if you needed to for some reason.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
@rmccullough As I wrote you can clean up the wrong version number in the config.json.
 

Mannekino

Patron
Joined
Nov 14, 2012
Messages
332
@Mannekino any issues with going from 11.2 to TrueNAS? Is the upgrade pretty straight-forward / simple? Any special instructions or guide that you followed?

I had no issues. I was on the latest version of FreeNAS before the upgrade and I also made sure all my Jail were fully up-to-date, both the patch level of the Jails and the packages inside the Jails. My Jails were on 11.4-RELEASE.

The upgrade went fast and smoothly, made sure to had my eye on the console also through IPMI to check for possible errors but I coudn't find any. I haven't upgraded my Pools yet, I might do that next weekend.
 
Top