Ian Carson
Explorer
- Joined
- Jul 5, 2016
- Messages
- 55
Background
I built a NAS for my business several years ago in fact I started with FreeNAS 9.0. The NAS has run smoothly but new requirements for larger VMs found the machine a bit lacking in the RAM department. Although I wasn't maxxed out on the board RAM, 64Gb wasn't going to be enough for my needs so I settled on the ASRock C3758D4I-4L as the upgrade since it could go to 128Gb RAM using RDIMMs.
The upgrade was to be a straight swap of the MB only so that the LBA, boot drive and L2ARC would not change.
Unfortunately the upgrade was not quite as simple as I had hoped!
Steps taken to upgrade
...and got "web interface not found" - couldn't get to the UI at all. Just a little worrying!
Steps taken to resolve the issue
Solution
All good now and I hope these notes may be of use to someone out there
I built a NAS for my business several years ago in fact I started with FreeNAS 9.0. The NAS has run smoothly but new requirements for larger VMs found the machine a bit lacking in the RAM department. Although I wasn't maxxed out on the board RAM, 64Gb wasn't going to be enough for my needs so I settled on the ASRock C3758D4I-4L as the upgrade since it could go to 128Gb RAM using RDIMMs.
The upgrade was to be a straight swap of the MB only so that the LBA, boot drive and L2ARC would not change.
Unfortunately the upgrade was not quite as simple as I had hoped!
Steps taken to upgrade
- Took a backup of the config including all the passwords and secrets (this NB - I would have been lost without it)
- Took a backup of ssh files in /root/.ssh (didn't need these in the end - better to have and not need than vice versa)
- Swapped out the Motherboard and reconnected boot and L2ARC drives and the LBA
- Powered up...
...and got "web interface not found" - couldn't get to the UI at all. Just a little worrying!
Steps taken to resolve the issue
- I tried a reset configuration and a reinstall of the backup config but got the same result
- Searching through the /var/log/console.log hinted at a problem accessing "igb0", the main interface to the domain
- An ifconfig revealed that the new MB has differently named interfaces "ix0-4" in this case and of course they each had different MAC addresses from the old MB
- I tried adding ifconfig_ix0_name="igb0" to /etc/rc.conf but TrueNAS does not allow changes to /etc/rc.conf (or at least overwrites any changes made there manually during startup)
- I tried adding hint.igb.0.at="pci0:5:0:0" to /boot/devices.hint to get the boot sequence to rename the interface but this did not take
Solution
- In the end I got a copy of SQLiteStudio and opened up the freenas_v1.db file which was in the config backup tar file and manually changed the entry in the "network_interface" table to match the new MB's interface name and MAC address.
- I then created a new tar file with the modded db file and the original pwenc_secret file
- Finally I reset the configuration once again and when the vanilla install came up I used the modified backup to get the interface I needed to come up
- There was a minor issue accessing my VMs
- the VM NICs were bound to the wrong name
- the VM VNCs were bound to the wrong IP
- once changed these came good as well
All good now and I hope these notes may be of use to someone out there