So to provide a little context... I have a HP ProLiant N40L microserver with 16 GB of ECC memory and four WD 3 TB EFRX Red series drives.
I had a bit of trouble building the box back in Aug 2013 but eventually got it to work and it has sat in a cupboard at the back of the house quietly and competently doing its thing ever since, apart from an occasional need to have the network interface re-added manually after a power up - never got to the bottom of that.
Recently I tried to fix this issue and in an ill-advised moment I chose the "Restore to factory defaults" option from the menu. This seemed to hang for a long time and I compounded my error by making the foolish decision to force a reboot. The unfortunate result is that the web server SQLite database is corrupt and as it sends multiple messages to the console eventually the system starts disabling messages for 30 seconds at a time, at which point I can't get control back. The Alt-F2 console seems fine but I couldn't recall the root password so that was a bust as well.
Eventually I was able to get into single user mode so I can now try and find out what I need to rebuild the system - I am imagining that my ZFS pool is still safe and sound on the WD drives.
I assume that what I need to know is the exact version of FreeNAS that is installed, and the config file. I can find the config file at /data/freenas-v1.db dated a few days ago (so overwritten when I did the reset) but there are two apparent copies of the config from back in 2013 a few month after the install - I assume these are copies I made manually of the config the last time I changed it.
So my questions:
1. If the config db is valid, am I likely to be able to get the NAS back up and fully running with a fresh install of the original FreeNAS release version with the old config dropped onto /data/freenas-v1.db ?
2. Where in the FS can I find a version string for the FreeNAS install so that I can source the correct install iso?
My intention is to update to a more recent version once I get things back on the air.
Many thanks for your patience in reading all this.
I had a bit of trouble building the box back in Aug 2013 but eventually got it to work and it has sat in a cupboard at the back of the house quietly and competently doing its thing ever since, apart from an occasional need to have the network interface re-added manually after a power up - never got to the bottom of that.
Recently I tried to fix this issue and in an ill-advised moment I chose the "Restore to factory defaults" option from the menu. This seemed to hang for a long time and I compounded my error by making the foolish decision to force a reboot. The unfortunate result is that the web server SQLite database is corrupt and as it sends multiple messages to the console eventually the system starts disabling messages for 30 seconds at a time, at which point I can't get control back. The Alt-F2 console seems fine but I couldn't recall the root password so that was a bust as well.
Eventually I was able to get into single user mode so I can now try and find out what I need to rebuild the system - I am imagining that my ZFS pool is still safe and sound on the WD drives.
I assume that what I need to know is the exact version of FreeNAS that is installed, and the config file. I can find the config file at /data/freenas-v1.db dated a few days ago (so overwritten when I did the reset) but there are two apparent copies of the config from back in 2013 a few month after the install - I assume these are copies I made manually of the config the last time I changed it.
So my questions:
1. If the config db is valid, am I likely to be able to get the NAS back up and fully running with a fresh install of the original FreeNAS release version with the old config dropped onto /data/freenas-v1.db ?
2. Where in the FS can I find a version string for the FreeNAS install so that I can source the correct install iso?
My intention is to update to a more recent version once I get things back on the air.
Many thanks for your patience in reading all this.
Last edited: