OPNsense Forum

English Forums => General Discussion => Topic started by: firewalled101 on July 02, 2023, 09:57:39 PM

Title: Errors during backup restore on clean install
Post by: firewalled101 on July 02, 2023, 09:57:39 PM
I had to force shutdown my firewall to reboot after I lost connection during a storm. I'm running the firewall baremetal. Anyhow,  the system failed to boot and showed damaged tar files,  attempting repair, lasted forever. So I decided to clean install opnsense and restore from backup. I was able to restore the majority of opnsense config but not the add-ons for they required update to the newest opnsense version. 

TL;DR: The system now show updates are available but it requires 13.9MB more disk space. I have 899MB available. Where is the problem?

1. I restored UFS install up ZFS fresh install
2. I restored before I upgrade the system.
3. Is this a HDD problem. It is an nvme so I don't expect so.
Title: Re: Errors during backup restore on clean install
Post by: tokar86a on July 03, 2023, 10:23:31 AM
Maybe this can help to check the disk? https://www.cyberciti.biz/faq/how-to-check-hard-drive-health-on-freebsd/

It sounds like a problem whit the disk.

And maybe do like this member suggest: https://forum.opnsense.org/index.php?topic=34674.msg168022#msg168022
Title: Re: Errors during backup restore on clean install
Post by: firewalled101 on July 10, 2023, 10:13:16 PM
Quick update:

I tested the hard drive in Bios and seemed working. I reinstalled OPNsense on UFS file system. The disk space problem is gone. I updated then restored my backup. Well, I had my VLANs mixed up. Somehow, the firewall rules and DHCP reservations for VLAN X would show up under VLAN Y. The interface assignment have not changed. I have to re-do it all manually. I am not sure there is a better way to do it but this is my primary home firewall/router. Terrible experience!!
Title: Re: Errors during backup restore on clean install
Post by: CJ on July 11, 2023, 08:18:53 PM
What do you mean, tested in BIOS?  Also, pendant point, nvme is SSD, not hard drive.

It sounds like either your backup was corrupted or your hardware changed.  Where was the backup stored?  On the drive or saved elsewhere?
Title: Re: Errors during backup restore on clean install
Post by: Patrick M. Hausen on July 11, 2023, 09:21:38 PM
@CJRoss They wrote they could restore the config but not the plugins. This is expected behaviour. You can go to System > Firmware > Status (IIRC) and there will be an option to auto install all missing plugins. This does not help if your OPNsense version is so old, the plugins are not available any more.

Lesson: always run a supported version.
Title: Re: Errors during backup restore on clean install
Post by: CJ on July 12, 2023, 09:41:12 PM
Quote from: pmhausen on July 11, 2023, 09:21:38 PM
@CJRoss They wrote they could restore the config but not the plugins. This is expected behaviour. You can go to System > Firmware > Status (IIRC) and there will be an option to auto install all missing plugins. This does not help if your OPNsense version is so old, the plugins are not available any more.

Lesson: always run a supported version.

Ah, I missed that.  I was focusing on their complaint that the VLANs and rules were incorrect.