S.M.A.R.T. Tests
7 minute read.
Last Modified 2021-04-01 09:27 EDTS.M.A.R.T. (Self-Monitoring, Analysis and Reporting Technology) is an industry standard for disk monitoring and testing. Disks can be monitored for problems using several different kinds of self-tests. TrueNAS can adjust when and how alerts for S.M.A.R.T. are issued. When S.M.A.R.T. monitoring reports an 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.
S.M.A.R.T. tests are run on a disk. 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, S.M.A.R.T. tests should not be scheduled on the same day as a disk scrub or resilver.
To quickly test a disk for errors, go to Storage > Disks and select the disks to be tested. After selecting the desired disks, click MANUAL TEST.
Next, select the test Type. Each test type can be slightly different based on the drive connection, ATA or SCSI:
- Long - runs SMART Extended Self Test. This will scan the entire disk surface and can take many hours on large-volume disks.
- Short - runs SMART Short Self Test (usually under ten minutes). These are basic disk tests that vary by manufacturer.
- Conveyance - runs a SMART Conveyance Self Test. This self-test routine is intended to identify damage incurred during transporting of the device. This self-test routine requires only minutes to complete.
- Offline - runs SMART Immediate Offline Test. The effects of this test are visible only in that it updates the SMART Attribute values, and if the test finds errors, they appear in the SMART error log.
- Long - runs the “Background long” self-test.
- Short - runs the “Background short” self-test.
- Offline - runs the default self test in foreground. No entry is placed in the self test log.
For more information, refer to smartctl(8).
Click START to begin the test. Depending on the test type you choose, the test can take some time to complete. TrueNAS generates alerts when tests discover issues.
To schedule recurring S.M.A.R.T. tests, go to Tasks > S.M.A.R.T. Tests and click ADD.
Choose the Disks to test, Type of test to run, and Schedule for the task.
SMART tests can offline disks! Avoid scheduling S.M.A.R.T. tests simultaneously with scrub or resilver operations.
When the test must run on a very specific Schedule, set this to Custom to open the advanced scheduler.
Saved schedules appear in the Tasks > S.M.A.R.T. Tests list.
The S.M.A.R.T. service must be enabled for automatic S.M.A.R.T. tests to run.
To start the S.M.A.R.T. service, go to 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 |
---|---|
All Disks | Setting All Disks includes every disk that has S.M.A.R.T. enabled in this test. Leave unset to choose which Disks to test. |
Disks | Select the disks to monitor. |
Type | Choose the test type. See smartctl(8) for descriptions of each type. Some types degrade performance or take disks offline. |
Description | Enter any information about this S.M.A.R.T. test. |
Schedule | The time when the test runs. Choose a preset or select Custom to open the advanced scheduler. |
Don’t forget to click SAVE after changing any settings.