Skip to content
main
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jun 26, 2021

truenas-smr-check

TrueCommand has a built-in check for known WD SMR disks on connected TrueNAS servers. However, if you don't use TrueCommand, you can still use this bash script to help you identify culprit disks. The script doesn't limit checks just to the WD NAS range of disks (RED), but extends this to any WD SMR disk listed in its database (BLUE, BLACK, etc.).

The latest version identifies known Seagate SMR drives as well.

Status

This script will work with FreeNAS 11.3, and TrueNAS CORE 12.0 or later. Though untested, it may very well work with earlier version of FreeNAS 11.

How to Use

Download the repository to a convenient directory on your TrueNAS system by changing to that directory and running git clone https://github.com/basilhendroff/truenas-smr-check. Then change into the newly created directory and run the script ./smr-check.sh. The script should only take a few seconds to execute. The script is non-invasive and does not leave anything behind once it's run. If SMR disks are detected, the device name, disk model and disk serial number of each disk is displayed in a table e.g.


Known SATA SMR disk(s) detected.

 Device |        Model |     Serial Number |
--------------------------------------------
   ada0 |  ST8000VX008 |          xxxxxxxx |
   ada3 |     WD30EFAX |   xxxxxxxxxxxxxxx |

The script SMR database is updated whenever I become aware of previously unidentified SMR disks. It's important therefore to always download and use the latest version of this script.

Scope

At this stage, only known WD and Seagate SMR disks are checked for.

The database of known SMR disks has been compiled from the following sources:

  1. TrueNAS Community Resource: List of known SMR drives
  2. NAS Compares: List Of WD CMR And SMR Hard Drives (HDD)
  3. HDDScan: What WD and HGST hard drives are SMR?

Disclaimer

This script is useful for quickly identifying SMR disks known to the script. While every endeavour has been taken to include as many SMR disks as possible, be aware the SMR database within the script may not be complete. Therefore, you're advised to confirm using other methods, such as manual checks, that the disks on your TrueNAS server are not using SMR technology.

About

A bash script to check for SMR disks on a TrueNAS server

Resources

License

Packages

No packages published

Languages