I upgraded my FreeNAS from 11.x to TrueNAS CORE 12.2 couple of weeks ago and i thought it is time to up[date|grade] the jail(s) aswell. There were in fact no problems so far running jails created with Freenas-11.3 and having 11.3-RELEASE under TrueNAS-Core-12.2. But IMHO it is a good practice to keep them on the same version.
I found a good writeup at Updating iocage jails in FreeNAS (annvix.com) which leads the way very good. The author wrote this article based on FreeNAS 11.3 – but the steps also worked on TrueNAS 12.2 – so far …. :-)
As I’m a little paranoid sometimes i did not rely on snapshots only – though i know them as a reliable and secure way of secure things and roll-back in case something goes wrong.
However i did clone my jail for an additional means to get things back up and running pretty fast.
As i wanted to have a distinct copy of the jail i issued the clone with a „-T“ – making the jail clone a thickjail:
iocage clone CURRENT_JAIL -n NEW_COPIED_JAIL -T
As the CURRENT_JAIL and the NEW_COPIED_JAIL share the same config as IP-Adresses they can not be started an running at the same time.
Additionally to the article from above there were little hickups in my setup:
iocage upgrade -r 12.2-RELEASE JAILNAME
told me „12.2-RELEASE is missing – please fetch it!“
A short
iocage fetch -r 12.2-RELEASE
fixed this and d’loaded the base to my disks.
The next little problem arising after upgrading a jail from 11.3-RELEASE to 12.2-RELEASE was pkg … I wanted to upgrade the packages inside the jail and this time pkg stopped working with
ld-elf.so.1: Shared Object libarchive.so.6 not found, required by pkg
This could be fixed by issuing the follwing inside the jail:
pkg-static upgrade -f
This reinstalled pkg with proper dependencies and the jail is properly set up agin.
As those upgrade procedures do make snapshots it’s maybe a good idea to clean them up after you succesfully upgraded a jail and made sure everthing works as espected.
To do so you simply issue on the jail-host:
iocage snapremove -n SNAPSHOTNAME JAILNAME
So far everything works fine. The jails hosting a borgbackup-setup and also duplicati with it’s mono background seem to work properly.
Update 09.04.2021:
The updated jails do run for about 3 weeks now and they are running fine (-: … borg-backups is current and also duplicati does his job at the scheduled time \o/