DEV Community

Istvan
Istvan

Posted on

2 2

FreeNAS 11.3 upgrade issues

I have an interesting experience with the latest upgrade of FreeNAS 11.3-U2.1. Applications that were deployed in the jail were gone. After fiddling with iocage (the tool that FreeNAS provides to manage jails) I could restore a previous state where all seems fine and dandy.

Steps to restore

  • list of snapshots
iocage snaplist tr -l
+-------------------------------------------------------------------------+-----------------------+-------+-------+
|                                  NAME                                   |        CREATED        | RSIZE | USED  |
+=========================================================================+=======================+=======+=======+
| fux/iocage/jails/tr/root@ioc_plugin_update_2020-04-29                   | Wed Apr 29 14:55 2020 | 799G  | 11.6K |
+-------------------------------------------------------------------------+-----------------------+-------+-------+
| fux/iocage/jails/tr/root@ioc_update_11.3-RELEASE-p8_2020-04-29_14-55-07 | Wed Apr 29 14:55 2020 | 799G  | 575K  |
+-------------------------------------------------------------------------+-----------------------+-------+-------+
| fux/iocage/jails/tr/root@ioc_update_11.3-RELEASE-p8_2020-04-29_14-55-22 | Wed Apr 29 14:55 2020 | 799G  | 11.6K |
+-------------------------------------------------------------------------+-----------------------+-------+-------+
| fux/iocage/jails/tr@ioc_plugin_update_2020-04-29                        | Wed Apr 29 14:55 2020 | 517K  | 81.4K |
+-------------------------------------------------------------------------+-----------------------+-------+-------+
| fux/iocage/jails/tr@ioc_update_11.3-RELEASE-p8_2020-04-29_14-55-07      | Wed Apr 29 14:55 2020 | 517K  | 81.4K |
+-------------------------------------------------------------------------+-----------------------+-------+-------+
| fux/iocage/jails/tr@ioc_update_11.3-RELEASE-p8_2020-04-29_14-55-22      | Wed Apr 29 14:55 2020 | 517K  | 81.4K |
+-------------------------------------------------------------------------+-----------------------+-------+-------+
Enter fullscreen mode Exit fullscreen mode
  • stop the jail
root@freenas[~]# iocage stop tr
* Stopping tr
  + Executing prestop OK
  + Stopping services OK
  + Tearing down VNET OK
  + Removing devfs_ruleset: 5 OK
  + Removing jail process OK
  + Executing poststop OK
Enter fullscreen mode Exit fullscreen mode
  • rollback
root@freenas[~]# iocage rollback tr -n ioc_update_11.3-RELEASE-p8_2020-04-29_14-55-07

This will destroy ALL data created including ALL snapshots taken after the snapshot ioc_update_11.3-RELEASE-p8_2020-04-29_14-55-07

Are you sure? [y/N]: y
Rolled back to: fux/iocage/jails/tr
Enter fullscreen mode Exit fullscreen mode
  • start the jail
root@freenas[~]# iocage start tr
No default gateway found for ipv6.
* Starting tr
  + Started OK
  + Using devfs_ruleset: 5
  + Configuring VNET OK
  + Using IP options: vnet
  + Starting services OK
  + Executing poststart OK
  + DHCP Address: 192.168.1.111/24
Enter fullscreen mode Exit fullscreen mode

And we are back.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs