TrueNAS Error

NebNirom

Cadet
Joined
Sep 14, 2021
Messages
3
Hi Guys, Have followed the Channel and setup my Truenas Server and Plex Server on the back of your threads and YouTube videos. Love the channel and so far the most informative on the subject. After months of running my Truenas server started getting an error yesterday.
1322 - - Device: /dev/ada0, 16 Offline uncorrectable sectors
This is my OS drive not where my data is stored. The server is running fine and has not dropped out or failed at all. What should I do? Can I install another HD, Move my OS in some way without stating again as I have 8TB of data I do not want to lose.
Hope you can help mate, Cheers Bernie
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
What should I do?
Use the GUI to take a config backup (System | General | Save Config).

Get a new OS drive and install TrueNAS to it.

Restore the config from the backup (System | General | Upload Config).

After a couple of reboots, all will be as before but with no disk errors.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
For the OS - get a small SSD and use that. It will be more reliable than an HDD. Only needs 16GB. Do not however use an USB Stick
 

Etorix

Wizard
Joined
Dec 30, 2020
Messages
2,134
The above nailed it.
To know more about what's happening you may have a look at the out put of smartctl -a /dev/ada0

But, most importantly, if you do not want to lose your data, have a backup. ZFS is good, but not perfect.
 

NebNirom

Cadet
Joined
Sep 14, 2021
Messages
3
Use the GUI to take a config backup (System | General | Save Config).

Get a new OS drive and install TrueNAS to it.

Restore the config from the backup (System | General | Upload Config).

After a couple of reboots, all will be as before but with no disk errors.
Thank you very much. Will give it a go over the weekend. Three questions please.
1) Do I need to disconnect the current system drive before installing another copy on the new drive?
2) Do I need to do anything with my data drives and do they automatically sync after the step below?
3) Once a fresh install is done and I disconnect the drive with the errors, do I just restart and my data drives run as before with the PLEX server?
Sorry if these sound silly as I am new at this.
Cheers,
Bernie
 

NebNirom

Cadet
Joined
Sep 14, 2021
Messages
3
The above nailed it.
To know more about what's happening you may have a look at the out put of smartctl -a /dev/ada0

But, most importantly, if you do not want to lose your data, have a backup. ZFS is good, but not perfect.
Thanks. Not sure what most of this means at the moment but I am learning.
Cheers
Bernie
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
1) Do I need to disconnect the current system drive before installing another copy on the new drive?
Not necessary, but it might help to simplify things a bit.

2) Do I need to do anything with my data drives and do they automatically sync after the step below?
After your config is restored on the new install, the system will know about the pool (and jails/plugins and shares) again and if the data disks are still connected, all will be back to normal.

3) Once a fresh install is done and I disconnect the drive with the errors, do I just restart and my data drives run as before with the PLEX server?
You don't mention the config upload here, so I'll say that's a mandatory step to allow me to say yes.
 

Etorix

Wizard
Joined
Dec 30, 2020
Messages
2,134
Thanks. Not sure what most of this means at the moment but I am learning.
smartctl -a shows the self-monitoring SMART report for the drive. This would reveal hardware issues.

Once you have solved the present issue, have a look at Tasks>SMART Tests. This allows to automatically run drive tests, and it is recommended to run the short test daily and the long test weekly or monthly so you have a chance to be warned ahead of a drive failure.
 
Top