Update Error

thejamesk

Explorer
Joined
Sep 2, 2018
Messages
71
Ok, if a manual update doesn't work, and it's complaining about database corruption, you're left with no choice but to reinstall and reimport your pool and config.

Will my config file include details on all my current plugins and jails or will these be lost and need to be re-created?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Will my config file include details on all my current plugins and jails or will these be lost and need to be re-created?

The jails themselves are in your pool. You should stop all the jails and plugins, and run iocage export <jail name>, to be on the safe side. If after importing your pool on your new boot device, your jails don't start, you'll need to delete the jails, and then try iocage import <jail name>.
 

thejamesk

Explorer
Joined
Sep 2, 2018
Messages
71
The jails themselves are in your pool. You should stop all the jails and plugins, and run iocage export <jail name>, to be on the safe side. If after importing your pool on your new boot device, your jails don't start, you'll need to delete the jails, and then try iocage import <jail name>.

Thank you for the information, Will it also be ideal to transfer/back up any virtual machines? However these are not as important as my jails/plugins
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Thank you for the information, Will it also be ideal to transfer/back up any virtual machines? However these are not as important as my jails/plugins

VMs are easy to recreate. So long as the zvols remain on your pool, all you need to keep track of is the VM settings, and the attached devices. On the new boot device, just recreate the VMs with the same settings and devices, connected to your zvols.

The sole exception is any VMs using the grub bootloader. For that, see my HOW-TO on grub boot, and setting the required non-GUI settings via the REST 2.0 API. If you were using the built-in rancher Docker host VM, the grubconfig path will be in <your pool>/.bhyve_containers/configs/<VM ID>_rancher/grub/.
 

thejamesk

Explorer
Joined
Sep 2, 2018
Messages
71
I am planning my fresh install, Just wondering if its safer to avoid importing my config again as could this carry across bugs and issues I have experianced in the past or should this be a clean copy of my configs and nothing else?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
I'd go with a clean start.
 

thejamesk

Explorer
Joined
Sep 2, 2018
Messages
71
I'd go with a clean start.

Is there anything to note if I am going for a clean start in regards to setting up my old plugins that will still be stored in my data pool, Assume its just a case of importing them using the import command?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Is there anything to note if I am going for a clean start in regards to setting up my old plugins that will still be stored in my data pool, Assume its just a case of importing them using the import command?

Iocage should pick up the plugins automatically, but you can still import them manually.
 

thejamesk

Explorer
Joined
Sep 2, 2018
Messages
71
Well manual fresh install went well, I have opted to keep my config for now and see how it plays out, Easy to reinstall again should same issues popup and next time use fresh config tool.

Is there some methods I can use to health check my config for bugs?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Is there some methods I can use to health check my config for bugs?

I'm not aware of any, other than regular scrubs of the boot and data pools.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I'm not aware of any, other than regular scrubs of the boot and data pools.
Configs database just doesn't go corrupt suddenly. Something super strange happened to yours.

There is also a backup that freenas takes you can use.
 
Top