S.M.A.R.T. Tests
6 minute read.
Last Modified 2022-06-21 09:36 EDTS.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) is a standard for disk monitoring and testing. You can monitor disks for problems using different kinds of self-tests. TrueNAS can adjust when it issues S.M.A.R.T. alerts. When S.M.A.R.T. monitoring reports a disk issue, we recommend you replace that disk. Most modern ATA, IDE, and SCSI-3 hard drives support S.M.A.R.T. Refer to your respective drive documentation for confirmation.
TrueNAS runs S.M.A.R.T. tests on disks. Running tests can reduce drive performance, so we recommend scheduling tests when the system is in a low-usage state. Avoid scheduling disk-intensive tests at the same time! For example, don’t schedule S.M.A.R.T. tests on the same day as a disk scrub or other Data Protection task.
To quickly test one or more disk for errors, select the disks you want to test and click MANUAL TEST.
Next, select the test Type. Test types differ based on the drive connection, ATA or SCSI:
Manual S.M.A.R.T. tests on NVMe devices is currently not supported.
- Long runs a S.M.A.R.T. Extended Self Test that scans the entire disk surface, which may take hours on large-volume disks.
- Short runs a basic S.M.A.R.T. Short Self Test (usually under ten minutes) that varies by manufacturer.
- Conveyance runs a S.M.A.R.T. Conveyance Self Test (usually only minutes) that identifies damage incurred while transporting the device.
- Offline runs a S.M.A.R.T. Immediate Offline Test that updates the S.M.A.R.T. Attribute values. Errors will appear in the S.M.A.R.T. error log.
- Long runs the “Background long” self-test.
- Short runs the “Background short” self-test.
- Offline runs the default self-test in the foreground, but doesn’t place an entry in the self-test log.
For more information, refer to smartctl(8).
Click START to begin the test. Test duration varies based on the test type you chose. TrueNAS generates alerts when tests discover issues.
To schedule recurring S.M.A.R.T. tests, go to Data Protection and click ADD in the S.M.A.R.T. Tests window.
Choose the Disks to test, the test Type to run, and the task’s Schedule.
S.M.A.R.T. tests can offline disks! Avoid scheduling S.M.A.R.T. tests simultaneously with scrub or other data protection tasks.
If you need the test to run on a specific Schedule, choose Custom to open the advanced scheduler.
Saved schedules appear in the S.M.A.R.T. Tests window.
You must enable the S.M.A.R.T. service to run automatic S.M.A.R.T. tests.
To start the S.M.A.R.T. service, go to System Settings > Services and toggle S.M.A.R.T.. To start the service during the TrueNAS boot process, set Start Automatically.
Configure the S.M.A.R.T. service by clicking edit.
Name | Description |
---|---|
Check Interval | Minutes for smartd to wake up and check if any tests should run. |
Power Mode | S.M.A.R.T. only tests when the Power Mode is Never. |
Difference | Degrees in Celsius. S.M.A.R.T. reports if a drive’s temperature has changed by N degrees Celsius since the last report. |
Informational | Threshold temperature in Celsius. S.M.A.R.T. will message with a LOG_INFO log level if the temperature is above the threshold. |
Critical | Threshold temperature in Celsius. S.M.A.R.T. will message with a LOG_CRIT log level and send an email if the temperature is above the threshold. |
Click Save after changing any settings.