Newbie: How to test

I just set up my first TrueNAS scall with 2 x 10TB WD Red’s. I’m primarily using this for home storage, documents, photos, etc

I have it set up as a mirror. My questions are

Is there a guide to doing basic tests on the setup?
Should I continuously do the SMART tests?
Should I test hte failure of a drive/ How do I know it’s working as expected?

Have a go with this script.
https://www.truenas.com/community/resources/solnet-array-test.1/

1 Like

I dont remember of a guide about that, but for sure there are a lot of thread about

Yes, Is a good practice. For example i perform

  • 6 dayli short test
  • 1 weekly long test
  • 1 weekly scrub test with 28 day of threshold (scrub only of the last test Is older than the threshold)

This script help u a lot

Is usefull for backup config too on your email

https://www.familybrown.org/dokuwiki/doku.php?id=fester112:hvalid_hdd
Better link:

2 Likes

Thank you all very much. This is really helpful.

This link left out the SU root piece FamilyBrown

admin@truenas[/usr/sbin]$ smartctl
zsh: command not found: smartctl
admin@truenas[/usr/sbin]$

Had to set a root passport, then try again as root

admin@truenas[/usr/sbin]$ su root
Password:
root@truenas[/usr/sbin]# smartctl
zsh: command not found: smartctl

root@truenas[/usr/sbin]# sudo smartctl
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.20-production+truenas] (local build)

ERROR: smartctl requires a device name as the final command-line argument.

Use smartctl -h to get a usage summary

root@truenas[/usr/sbin]# smartctl
zsh: command not found: smartctl
root@truenas[/usr/sbin]# sudo smartctl -t short /dev/sda0
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.20-production+truenas] (local build)

Smartctl open device: /dev/sda0 failed: No such device
root@truenas[/usr/sbin]# sudo smartctl -t short /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.6.20-production+truenas] (local build)

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: “Execute SMART Short self-test routine immediately in off-line mode”.
Drive command “Execute SMART Short self-test routine immediately in off-line mode” successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Sun Jun 23 11:30:28 2024 +07
Use smartctl -X to abort test.
root@truenas[/usr/sbin]#

Do you guys run scripts to automatically do this via cron?

Anyone leveraged this before?
https://hub.docker.com/r/linuxserver/scrutiny
Looks very easy

Anyone leveraged this before?
https://hub.docker.com/r/linuxserver/scrutiny

Yes, looks like it used to be available in TrueCharts but I imagine it should work as a custom app as well.

Test it and see what you think of it.

1 Like

No need to run scripts; you can (and should) schedule SMART self-tests directly through the TrueNAS UI.

It was written before iX decided to not trust uses with root privileges.

Thanks for the help. Appreciate it.