Upgrade from 11.2-U7 to 11.3 (system + jails)

Yakje

Explorer
Joined
Feb 8, 2017
Messages
82
I am very pleased to see that version 11.3 was released today, thumbs up!! :D Now i am in the situation that i would like to upgrade my system as soon as possible.

Currently i am on FreeNAS 11.2 U7, with 11 generic iocage jails (they are all on 11.2-RELEASE-p4) up and running.
Now i am wondering what would be the best approach for me to upgrade both my freenas system and the jails.

Would it be advised to first upgrade my freenas system from 11.2 to 11.3 and upgrade the jails afterwards or the other way around?
And how should i go about upgrading the jails? Can i just SSH into my freenas box and use iocage upgrade -r 11.3-RELEASE [jailname] for every jail, or should i do it differently? I am a bit cautious, since I prefer not to redo all my jails from scratch :p
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
first upgrade my freenas system from 11.2 to 11.3 and upgrade the jails afterwards
This way.

Can i just SSH into my freenas box and use iocage upgrade -r 11.3-RELEASE [jailname] for every jail
That's probably worth the first effort... snapshot the jail first (make sure it's recursive)... I think iocage snapshot might help there.

If you don't like the outcome, just roll back the snapshot and regroup.
 

insan3

Dabbler
Joined
Apr 3, 2017
Messages
11
Can i also do this for the official plugins?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Can i also do this for the official plugins?
Plugins have their own update system, so perhaps best to stay with that. (although it will probably just work the same as with other jails as plugins are, after all, just jails... but you're on your own after that as the next plugin update may be a disaster... then again, snapshots...)
 

Yakje

Explorer
Joined
Feb 8, 2017
Messages
82
This way.

That's probably worth the first effort... snapshot the jail first (make sure it's recursive)... I think iocage snapshot might help there.

If you don't like the outcome, just roll back the snapshot and regroup.

Thanks for the reply!
I first upgraded my system from 11.2 U7 to 11.3 which worked without any problems, afterwards i upgraded each jail seperate using the iocage upgrade -r 11.3-RELEASE [jailname] command. It showed me the following message in the CLI with each upgrade:
The following components of FreeBSD seem to be installed: world/base world/doc world/lib32 The following components of FreeBSD do not seem to be installed: world/base-dbg world/lib32-dbg Does this look reasonable (y/n)? y
I pressed y and after that i got one more prompt telling me i should restart, but i just ignored that one and it finished the update.
I checked all the jails and it looks like everything is running fine.
 
Joined
Dec 2, 2015
Messages
730
After doing iocage upgrade [jailname] -r 11.3-RELEASE , you may want to upgrade the packages in the jail to be on the latest version of FreeBSD. Start the jail, then in the jail, do pkg-static install -f pkg and pkg upgrade to upgrade all the packages.
 
Last edited:

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
@sretalla , I have been playing around with iocage jail snapshot (that was some long while ago) and never seemed able to handle replication of a jail and as a result never really tried updating or upgrading a jail and then rollback to an earlier snapshot.
Is there a good walkthrough guide that explains the process in details?
 

Pierce

Explorer
Joined
Sep 4, 2013
Messages
64
After doing upgrade -r 11.3-RELEASE [jailname], you may want to upgrade the packages in the jail to be on the latest version of FreeBSD. Start the jail, then in the jail, do pkg-static install -f pkg and pkg upgrade to upgrade all the packages.

Code:
root@hognas:~ # upgrade -r 11.3-RELEASE dungeon
upgrade: Command not found.
 

Yakje

Explorer
Joined
Feb 8, 2017
Messages
82
Code:
root@hognas:~ # upgrade -r 11.3-RELEASE dungeon
upgrade: Command not found.
You should point the command to a specific jail. Use: iocage exec [jailname] upgrade -r 11.3-RELEASE [jailname]
 

Pierce

Explorer
Joined
Sep 4, 2013
Messages
64
Code:
root@hognas:~ # iocage exec dungeon upgrade -r 11.3-RELEASE dungeon     
jexec: execvp: upgrade: No such file or directory
Command: upgrade -r 11.3-RELEASE dungeon failed!
 

Yakje

Explorer
Joined
Feb 8, 2017
Messages
82
Code:
root@hognas:~ # iocage exec dungeon upgrade -r 11.3-RELEASE dungeon    
jexec: execvp: upgrade: No such file or directory
Command: upgrade -r 11.3-RELEASE dungeon failed!
Could you post the output of the command:
jls
 

Pierce

Explorer
Joined
Sep 4, 2013
Messages
64
Code:
root@hognas:~ # jls
   JID  IP Address      Hostname                      Path
     5  192.168.0.24    acme                          /mnt/zpool/iocage/jails/acme/root
     7  192.168.0.25    pgsql11                       /mnt/zpool/iocage/jails/pgsql11/root
     9  192.168.0.22    newmysql                      /mnt/zpool/iocage/jails/newmysql/root
    11  192.168.0.23    dungeon                       /mnt/zpool/iocage/jails/dungeon/root
root@hognas:~ # 


anyways, in the 'dungeon' jail (jid 11), there's no 'upgrade' in the path, is this something I need to install?
 
Joined
Jul 2, 2019
Messages
648
Try using iocage list. That way you will get the "real" jail name.
 

Pierce

Explorer
Joined
Sep 4, 2013
Messages
64
jails1.JPG
 

Yakje

Explorer
Joined
Feb 8, 2017
Messages
82
Code:
root@hognas:~ # jls
   JID  IP Address      Hostname                      Path
     5  192.168.0.24    acme                          /mnt/zpool/iocage/jails/acme/root
     7  192.168.0.25    pgsql11                       /mnt/zpool/iocage/jails/pgsql11/root
     9  192.168.0.22    newmysql                      /mnt/zpool/iocage/jails/newmysql/root
    11  192.168.0.23    dungeon                       /mnt/zpool/iocage/jails/dungeon/root
root@hognas:~ # 


anyways, in the 'dungeon' jail (jid 11), there's no 'upgrade' in the path, is this something I need to install?

No, that should just be part of the iocage jails structure. You are not running warden jails right?

Try this first:
iocage update dungeon
And:
upgrade -r 11.3-RELEASE dungeon
Afterwards
 

Pierce

Explorer
Joined
Sep 4, 2013
Messages
64
no, I deleted my last warden jail before I upgraded from 11.2 to 11.3


anyways, iocage update lead to this...

Code:
root@hognas:~ # iocage update dungeon
Snapshot: zpool/iocage/jails/dungeon@ioc_update_11.2-RELEASE-p15_2020-02-01_03-33-59 created.
Updating jail...

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

No updates needed to update system to 11.2-RELEASE-p15.

WARNING: FreeBSD 11.2-RELEASE HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Wed Oct 30 17:00:00 PDT 2019
will not have been corrected.
src component not installed, skipped
No updates are available to install.
Run '/tmp/tmpfk2_9izs fetch' first.

root@hognas:~ #
root@hognas:~ # /tmp/tmpfk2_9izs fetch
tmpfk2_9izs: SERVERNAME must be given via command line or configuration file.


and, I tried running that tmp command in the jail
Code:
root@dungeon:~ # /tmp/tmpfk2_9izs fetch
/tmp/tmpfk2_9izs: Command not found.

...
 

Yakje

Explorer
Joined
Feb 8, 2017
Messages
82
no, I deleted my last warden jail before I upgraded from 11.2 to 11.3


anyways, iocage update lead to this...

Code:
root@hognas:~ # iocage update dungeon
Snapshot: zpool/iocage/jails/dungeon@ioc_update_11.2-RELEASE-p15_2020-02-01_03-33-59 created.
Updating jail...

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

No updates needed to update system to 11.2-RELEASE-p15.

WARNING: FreeBSD 11.2-RELEASE HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Wed Oct 30 17:00:00 PDT 2019
will not have been corrected.
src component not installed, skipped
No updates are available to install.
Run '/tmp/tmpfk2_9izs fetch' first.

root@hognas:~ #
root@hognas:~ # /tmp/tmpfk2_9izs fetch
tmpfk2_9izs: SERVERNAME must be given via command line or configuration file.


and, I tried running that tmp command in the jail
Code:
root@dungeon:~ # /tmp/tmpfk2_9izs fetch
/tmp/tmpfk2_9izs: Command not found.

...

Hmm, not sure what is going on here to be honest.
You can ignore the "Run '/tmp/tmpfk2_9izs fetch' first." message.

can you try to run:
iocage upgrade -r 11.3-RELEASE dungeon
again?

and show the output of:
iocage list
like Newfounland asked? Just to be sure.
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

Pimmp

Dabbler
Joined
Apr 17, 2018
Messages
19
root@freenas:~ # iocage upgrade -r 11.3-RELEASE plex_2
Snapshotting plex_2...
Snapshot already exists
Updating plugin INDEX...
/mnt/PlexJail/iocage/jails/plex/plex.json was not found!
root@freenas:~ #
root@freenas:~ # iocage list
+-----+--------+-------+--------------+-------------+
| JID | NAME | STATE | RELEASE | IP4 |
+=====+========+=======+==============+=============+
| 3 | plex_2 | up | 11.2-RELEASE | 192.168.0.3 |
+-----+--------+-------+--------------+-------------+
| 2 | unifi | up | 11.2-RELEASE | 192.168.0.4 |
+-----+--------+-----

Someone know why i can´t upgrade the jail?
 
Top