i restarted my TrueNAS Scale Dragonfish-24.04.2 and i was met with the following error:
error: symbol ‘grub_disk_native_sectors’ not found
Fortunately this is my secondary Truenas server that i use for disaster recovery and snapshot replication target, so my main Truenas instance is still running.
I do not have a backup file for this secondary server so i cannot simply reinstall Truenas and restore pool.
But i have my main servers config and the servers should be almost identical in configuration, only the IP should be different, and of course “Periodic Snapshot Tasks” and “Replication Tasks” are different.
So question is, should i be able to use the main servers config to restore pool on 2ndary?
Any hope of fixing grub? Or should i just cut my losses and just reinstall and config everything from scratch?
Fixing GRUB would be best done by reinstalling TrueNAS on a new boot drive or on the same boot drive.
If you can access the files on the old boot drive, see if you can recover /data/freenas-v1.db and /data/pwenc_secret as these are the configuration files.
It may be easier to just reconfigure from scratch, it depends. But your pool should be in-tact.
working via IDRAC so cant copy/paste, but files are:
crash
dhparam.pem
factory-v1.db
freenas-v1.db
manifest.json
pwenc_secret
eula…
user-services.json
zfs
ill try to figure out how to get these files via IDRAC…
Reinstall TrueNAS and then have those two files somewhere and use Manage Configuration and Upload File to restore your configuration. I have never just copied them into the boot drive directory, that may work but the GUI is much easier.
I guess i really didn’t need the “pwenc_secret” file, since i don’t have encrypted data shares?
I only restored the .db file via GUI (did try adding the other file to there as well but only .db files were allowed) and everything seems to work, except some certificate issue so HTTPS isnt working ( Web UI HTTPS certificate setup failed.), looking into that next.
Also would like to find out why the boot-pool failed in the first place, since the disks seem fine, and i saw no issue before reboot.
That is normal as I am aware. If the files exists then it will load it. I’m not sure what happens if the file does not exist, I have not been willing to test that out.
Glad you were able to recover.
You may never know this answer but you have been asked a few questions, I seem to focus on the hardware so what exactly is the make/model of the boot drive? What is the connectivity of the drive to the machine? And what are the rest of the machine specs (Motherboard/RAM/CPU)?
I’m not sure I comprehend what you wrote. Let me tell you what I think you wrote. Communications are key so it is best to make sure we understand each other.
You have a significant computer which has two CPUs and 256GB RAM (that is a lot).
Here it the part I do not comprehend: You have only two drives in the system, one is 400GB SSD, the other is 600GB.
Why am I confused? Those are very small drives for a system with so much memory. If these are the only two drives then it strikes me as odd.
Then you say “boot disks” which implies more than one disk.
Are you mixing drive types in a mirror boot-pool? It is not forbidden but it is different and I don’t know if it could be problematic.
But I did understand this. I too have held on to a drive that failed and then accidentally put it back into a system. But my failure would not allow the drive to be used at all.
The 2 disks mentioned are part of the “boot-pool” which is are mirrored for redundancy and only Truenas Scale is installed on those disk and nothing else. I didn’t mention my other disks/pools, since those i don’t have issues with.
In addition i do have:
6 x 1 TB WD Red SSD’s in 3-way mirror for “vm-data” dataset for fast storage
8 x 600 GB Seagate HDD SAS HDD 10K disks in RaidZ-2 for “backup” dataset.
I got the server from my work place when it was decommissioned. It was used for Virtual Desktop Infrastructre (VDI) setup previously, which is why it had so much RAM, which is now perfect for my ZFS cache
The “boot-pool” did originally have 2xSanDisk SSD SAS 372.61 GB (LT0400MO) disks, but one of them broke over a year ago and i didn’t have any other spare 2.5" drives other than the 600GB SAS HDD to replace it with.