Proper turn offs and Loss of configuration

Started by Spiky_Gladiator, February 03, 2023, 09:22:10 AM

Previous topic - Next topic
Hi,

I just want to check what is the correct way of turning off a device that has OPNSense installed ? I have heard on the internet that if you just unplug the device with OPNSense on it from a power source, it can damage configuration and everything would need to be setup from scratch again.

My question are, is the above correct or just a myth and how can you tell this have happened ? Does OPNSense give you some type of a message upon the boot-up of the device so that you are aware that configuration is corrupted ?

Thanks

Question: Did you install this on UFS or ZFS (an option at install time).

Both file systems don't like sudden power loss but the latter is reported to better handle it.

In either case you should always aim to shutdown via the GUI or CLI and never just yank the power cord.

If you do have file system corruption you'll soon know about it at boot up.

In the case of UFS you can run fsck in single user mode with the file system mounted read only to repair.