How to View SMART Results in TrueNAS

  • Post author:WunderTech
  • Post published:May 12, 2022
  • Post last modified:November 3, 2022
  • Post category:TrueNAS
  • Reading time:9 mins read
  • Post comments:0 Comments

In this tutorial, we will look at how to view SMART results in TrueNAS.

When you run any type of NAS operating system, it’s a good idea to set up SMART tests for your hard drives. S.M.A.R.T stands for Self-Monitoring, Analysis, and Reporting Technology, and is a way to detect and report different indicators of drive reliability.

Setting up SMART tests in TrueNAS is something that every user should do. In this tutorial, we will look at how to set up SMART tests, how to view the results of those tests, then how to set up email alerts (if desired).

The tutorial below will look at how to view SMART results in TrueNAS using TrueNAS Scale. The process will be extremely similar for TrueNAS Core.

1. How to Set Up SMART Tests in TrueNAS

Before looking at how to view SMART results in TrueNAS, we will look at how to set up SMART tests. Skip to step two below if you’ve already set these up.

1. Select Data Protection on the left side.

selecting the storage location in truenas scale.

2. In the bottom right, you’ll see SMART Tests. Select Add.

how to view smart tests in truenas - selecting add in smart tests section.

3. Select All Disks, then change the Type to SHORT or LONG. Pick a Schedule, then Save.

NOTE: You can create multiple tests if you’d like, meaning that you can configure a Monthly LONG test and a daily SHORT test if desired.

selecting all hard disks and setting a schedule to run smart tests.

4. Your SMART Test will now run based on the schedule you configured!

2. How to View SMART Results in TrueNAS

Now that you configured your SMART test, you’ll have to wait for it to actually run. After it’s run, you’ll only be notified if the test result failed, meaning that there was a problem with one of your drives.

If any of your hard drives don’t have an error, you will NOT receive any notification in the TrueNAS GUI.

2.1 How to View SMART Results in TrueNAS using the CLI

While we can’t view SMART results in the TrueNAS GUI, you can view them from the TrueNAS Shell (CLI) if you’d like.

1. Select System Settings then Shell.

selecting system settings then shell in truenas scale.

2. Run the command below to get all of your hard drive names.

lsblk
viewing the data on truenas running the lsblk command.

3. After you retrieve the hard drive names, you’ll be able to run the command below to get the SMART results for a specific hard drive. You’ll have to substitute the Name.

smartctl -a /dev/[NAME]
the output of the smartctl command on truenas which shows the hard drive is a wester digital red hard drive and the smart test passed.

4. If you look through the results, you should see a result at the bottom saying No Errors Logged.

checking the hard drive to see if any errors were logged (none were).

5. Please keep in mind that if the SMART test returns an error, you should receive a message through the TrueNAS GUI and do not have to use the process above.

This should only be used if you’re interested in manually looking at the results.

2.2 Email Alerts

If you are worried about not receiving the SMART test results (in the case of an error), you can enable email alerts.

1. Select the bell icon in the top right.

configuring email alerts by selecting the bell icon.

2. Select the Gear in the top right, then select Email.

selecting the gear icon then email.

3. Configure the SMTP settings or use GMail oAuth (this will differ for everyone). When you finish configuring it, make you send a test email to make sure everything works as expected.

entering the smtp settings so that emails can be sent.

4. Finally, check the Alert settings by selecting the Alert Settings.

changing the category to hardware in truenas scale.

5. Change the Category to Hardware.

How to View SMART Results in TrueNAS

6. Confirm that S.M.A.R.T Error is set to Immediately. As long as your email settings are configured properly, you’ll receive an email immediately if any errors are reported.

NOTE: You can change the warning level of the email if desired.

confirming that smart errors are sent in email immediately.

3. Conclusion

This tutorial looked at how to view SMART results in TrueNAS. This is something that every TrueNAS user should have set up. Whether your drive is about to fail or simply receives its first error, it’s important to know so that you can plan ahead.

Thanks so much for checking out the tutorial on how to view SMART results in TrueNAS. If you have any questions, please leave them in the comments! Also, feel free to check out our other tutorials!

WunderTech

WunderTech is a website that provides tutorials and guides on various NAS, server, networking, and infrastructure-related topics. WunderTech is maintained by Frank Joseph, an IT professional with 14+ years of experience in corporate IT and application management. He focuses on sharing his experience with others on his WunderTech website and YouTube page. Frank holds a Bachelor of Science in Computer Information Systems and a master of Business Administration (MBA).

Leave a Reply