Replacing a Failed TrueNAS OS Drive¶
Overview¶
If your TrueNAS OS drive fails, you will need to replace it and restore your configuration to minimize downtime. This guide will walk you through the process of exporting and backing up the TrueNAS configuration, installing a new OS drive, and restoring the configuration.
Prerequisites¶
- A new storage device to install TrueNAS SCALE.
- A USB drive with the TrueNAS SCALE installation image.
- Access to the TrueNAS web interface (if possible) before failure.
- A backup of the TrueNAS configuration file.
Step 1: Export and Backup Configuration (Before Failure)¶
To ensure a smooth recovery, back up your TrueNAS configuration regularly.
Export Configuration File¶
- Log in to the TrueNAS web interface.
- Navigate to System Settings > General.
- Scroll down to Save Configuration.
- Click Download File and save it in a secure location.
- (Optional) Encrypt the backup file with a strong password if it contains sensitive settings.
Backup Critical Data¶
- If possible, take a snapshot or backup of your TrueNAS pools to another system.
- Document any custom settings, networking configurations, and installed applications.
Step 2: Install TrueNAS on a New OS Drive¶
- Prepare the Installation Media
- Download the latest TrueNAS SCALE ISO from the official website.
-
Create a bootable USB drive using tools like Rufus (Windows) or
dd
(Linux/macOS). -
Install TrueNAS on the New Drive
- Insert the bootable USB into the server and boot from it.
- Follow the installation wizard and select the new OS drive as the installation target.
-
Complete the installation and remove the installation media.
-
Reboot and Access TrueNAS
- Once installed, reboot the system.
- Access the web interface via
http://<your_truenas_ip>
.
Step 3: Restore Configuration¶
- Log in to the new TrueNAS installation.
- Navigate to System Settings > General.
- Scroll down to Upload Config.
- Click Browse, select the previously saved configuration file, and upload it.
- TrueNAS will prompt for a reboot to apply the restored settings.
- After reboot, verify that:
- All storage pools are correctly imported.
- Network settings are restored.
- Services and applications are functioning as expected.
Step 4: Verify Storage Pools¶
- Navigate to Storage > Pools.
- Ensure that all datasets and pools are visible.
- If pools are not automatically detected, import them manually:
- Go to Storage > Import Pool.
- Select the correct pool and import it.
Conclusion¶
By regularly backing up your TrueNAS configuration and following this guide, you can quickly recover from an OS drive failure with minimal disruption. Always maintain updated backups and test your recovery process periodically.