OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: lshantz on July 28, 2020, 09:49:24 pm

Title: Possible error checking while backing up, or restoring
Post by: lshantz on July 28, 2020, 09:49:24 pm
I have been (wrongly) cursing Opnsense for about 6 months now, threatening to go another direction. My son has the same setup, same hardware and never has a problem. Well, the issue finally raised it's ugly head for good last night.

I had just successfully got my multi factor auth openvpn working like a champ. So the very first thing I did was to backup! So I would have a proper copy. I then proceeded to attempt to connect to my NAS to save it in another location. I could not connect. Long story short, it is a firewall problem. So I reboot to see if something is borked. DONE!! Never comes up!! I go connect a monitor to it and it is attempting to load /root. :(

So now I have some sort of corruption going on and I can't seem to fix it. I did an fsck on it, and it didn't show any errors. Well I was desperate to get this up before sunrise. I had a new box sitting here, so I loaded the OS, restored the data, but alas, I'm missing things.

Let me go back to 6 months ago. I would routinely save so as to not lose data. Then a week or so later, things that were working were no longer working. Rules were just gone!! Not all, just some. Aliases, gone! Not all. I have had this mysterious stuff missing for months now. My son swore I was borking stuff. I was not.

So it appears to be an SSD HD sector failure. Why it did not mark it out and keep going, I am not sure yet. But.. would be possible to do some sort of error trapping during backup and restores? I'm not a programmer, and maybe this isn't even possible, but it seems some sort of checksum or something to catch an early problem. At least the bald patch on my head can now start growing out, once I redo all the lost data and save once more.

IDeas?