{"id":1083,"date":"2021-03-18T13:46:59","date_gmt":"2021-03-18T11:46:59","guid":{"rendered":"https:\/\/www.boettrich.info\/blog\/?p=1083"},"modified":"2021-04-09T11:39:53","modified_gmt":"2021-04-09T09:39:53","slug":"truenas-updating-iocage-jails","status":"publish","type":"post","link":"https:\/\/www.boettrich.info\/blog\/beitrag\/truenas-updating-iocage-jails\/","title":{"rendered":"Truenas &#8211; updating iocage jails"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p>I found a good writeup at <a rel=\"noreferrer noopener\" href=\"https:\/\/annvix.com\/blog\/updating-iocage-jails-in-freenas\" target=\"_blank\">Updating iocage jails in FreeNAS (annvix.com)<\/a> which leads the way very good. The author wrote this article based on FreeNAS 11.3 &#8211; but the steps also worked on TrueNAS 12.2 &#8211; so far &#8230;. :-) <\/p>\n\n\n\n<p>As I&#8217;m a little paranoid sometimes i did not rely on snapshots only &#8211; though i know them as a reliable and secure way of secure things and roll-back in case something goes wrong.<\/p>\n\n\n\n<p>However i did clone my jail for an additional means to get things back up and running pretty fast.<\/p>\n\n\n\n<p>As i wanted to have a distinct copy of the jail i issued the clone with a &#8222;-T&#8220; &#8211; making the jail clone a thickjail:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iocage clone CURRENT_JAIL -n NEW_COPIED_JAIL -T<\/code><\/pre>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>Additionally to the article from above there were little hickups in my setup:  <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iocage upgrade -r 12.2-RELEASE JAILNAME<\/code><\/pre>\n\n\n\n<p>told me &#8222;12.2-RELEASE is missing &#8211; please fetch it!&#8220;<\/p>\n\n\n\n<p>A short <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iocage fetch -r 12.2-RELEASE<\/code><\/pre>\n\n\n\n<p>fixed this and d&#8217;loaded the base to my disks.<\/p>\n\n\n\n<p>The next little problem arising after upgrading a jail from 11.3-RELEASE to 12.2-RELEASE was pkg &#8230;  I wanted to upgrade the packages inside the jail and this time pkg stopped working with <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ld-elf.so.1: Shared Object libarchive.so.6 not found, required by pkg<\/code><\/pre>\n\n\n\n<p>This could be fixed by issuing the follwing inside the jail:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pkg-static upgrade -f <\/code><\/pre>\n\n\n\n<p>This reinstalled pkg with proper dependencies and the jail is properly set up agin.<\/p>\n\n\n\n<p>As those upgrade procedures do make snapshots it&#8217;s maybe a good idea to clean them up after you succesfully upgraded a jail and made sure everthing works as espected.<\/p>\n\n\n\n<p>To do so you simply issue on the jail-host:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iocage snapremove -n SNAPSHOTNAME JAILNAME<\/code><\/pre>\n\n\n\n<p>So far everything works fine. The jails hosting a borgbackup-setup and also duplicati with it&#8217;s mono background seem to work properly.<\/p>\n\n\n\n<p><strong>Update 09.04.2021:<\/strong><\/p>\n\n\n\n<p>The updated jails do run for about 3 weeks now and they are running fine (-:  &#8230; borg-backups is current and also duplicati does his job at the scheduled time \\o\/  <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip;&nbsp;<a href=\"https:\/\/www.boettrich.info\/blog\/beitrag\/truenas-updating-iocage-jails\/\" rel=\"bookmark\">Weiterlesen &raquo;<span class=\"screen-reader-text\">Truenas &#8211; updating iocage jails<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1,6,40],"tags":[],"class_list":["post-1083","post","type-post","status-publish","format-standard","hentry","category-beitrag","category-technik","category-truenas"],"_links":{"self":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/comments?post=1083"}],"version-history":[{"count":17,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1083\/revisions"}],"predecessor-version":[{"id":1257,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/posts\/1083\/revisions\/1257"}],"wp:attachment":[{"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/media?parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/categories?post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boettrich.info\/blog\/wp-json\/wp\/v2\/tags?post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}