User Tools

Site Tools


freenas:jails:upgrade_a_jail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
freenas:jails:upgrade_a_jail [2020/11/18 18:50] peterfreenas:jails:upgrade_a_jail [2020/12/21 18:05] (current) peter
Line 1: Line 1:
 ====== FreeNAS - Jails - Upgrade a Jail ====== ====== FreeNAS - Jails - Upgrade a Jail ======
 +
 +Before upgrading a Jail:
 +
 +  * [[FreeNAS:Jails:Update a Jail to latest Patch Release|Update the Jail to the latest Patch Release]]
 +  * [[FreeNAS:Jails:Take a Snapshot|Take a Snapshot]]
 +
 +----
 +
 +===== Upgrade the Jail =====
  
 Stop the Jail. Stop the Jail.
Line 18: Line 27:
 ===== Example ===== ===== Example =====
  
-Determine Releases:+Determine what Releases are available:
  
 <code bash> <code bash>
Line 42: Line 51:
 </code> </code>
  
 +----
 +
 +===== Upgrade all of the packages inside the Jail =====
 +
 +When the upgrade is done, enter the jail:
 +
 +<code bash>
 +sudo iocage console PlexServer
 +</code>
 +
 +and run:
 +
 +<code bash>
 +pkg update && pkg upgrade
 +</code>
 +
 +returns:
 +
 +<code bash>
 +Updating iocage-plugins repository catalogue...
 +iocage-plugins repository is up to date.
 +All repositories are up to date.
 +Updating iocage-plugins repository catalogue...
 +iocage-plugins repository is up to date.
 +All repositories are up to date.
 +Checking for upgrades (0 candidates): 100%
 +Processing candidates (0 candidates): 100%
 +Checking integrity... done (0 conflicting)
 +Your packages are up to date.
 +</code>
 +
 +----
 +
 +===== Verify the Upgrade has worked =====
 +
 +<code bash>
 +sudo iocage list
 +</code>
 +
 +returns:
 +
 +<code bash>
 ++-----+------------+-------+--------------+------+
 +| JID |    NAME    | STATE |   RELEASE    | IP4  |
 ++=====+============+=======+==============+======+
 +| 4   | PlexServer | up    | 12.1-RELEASE | DHCP |
 ++-----+------------+-------+--------------+------+
 +</code>
 +
 +----
 +
 +===== Troubleshooting =====
 +
 +If this error is seen:
 +
 +<code bash>
 +pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version 2
 +</code>
 +
 +try:
 +
 +<code bash>
 +pkg bootstrap -f
 +</code>
 +
 +----
  
freenas/jails/upgrade_a_jail.1605725414.txt.gz · Last modified: 2020/11/18 18:50 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki