S.M.A.R.T. Tasks
S.M.A.R.T (Self-Monitoring, Analysis and Reporting Technology) is a storage drive health monitoring system that can give you early warning if a drive is about to fail, so you can prepare accordingly.
On TrueNAS, you can setup automated S.M.A.R.T tests on a schedule to monitor your HDD or SSD health.
To get started, login to your TrueNAS WebGUI. Navigate to Tasks -> S.M.A.R.T. Tests.
Click on Add to start adding a new S.M.A.R.T. Test task.
Under Disks, select the drive disks that you want to test.
You can find out which drive numbers belong to which storage pool in Storage -> Disks, and sort by the Pool column.
Under the Type, you can select Short, Long, Conveyance, or Offline test.
Short Test runs a short, basic SMART test on the disks. I generally schedule Short Tests twice a month.
Long Test takes a while to complete, depending on the disk size. I usually run Long Tests once a month, in between the Short Tests.
Conveyance Test identifies damages incurred during drive transportation. Generally not needed to be run on a schedule.
Offline Test will take the drives temporary offline from the Pool and run the SMART tests on it.
Give the task a description, and then select schedule to customize when you want the SMART task to run.
Enter the hour you want the task to run at. Overnight is generally a good time to run tasks.
Under Days, you can enter the calendar dates to make the task run more than once a month. I enter two calendar dates in order to set the Task to run twice a month.
Click Submit to finalize the task.
Once done, you will now see the new task.