Locate-a-disk-in-TrueNAS

Here's an improved version of the step-by-step guide with enhanced formatting and wording:

Locating a Disconnected Disk in TrueNAS

This procedure was performed using a SAS3008 RAID controller on a SuperMicro CSE-847 with TrueNAS scale installed. The process turns on the RED LED on drives to identify the physical location of a failed disk.

Step 1: Identify the Index of the RAID Controller

To start, you need to find the index number of your RAID controller using the following command:

sas3ircu list   

This will display information about the RAID controllers connected to your system. Note down the index number next to the model number of the RAID controller.

Example Output:

root@truenas[~]# sas3ircu list
Avago Technologies SAS3 IR Configuration Utility.
Version 16.00.00.00 (2017.04.26) 
Copyright (c) 2009-2017 Avago Technologies. All rights reserved. 


         Adapter      Vendor  Device                       SubSys  SubSys 
 Index    Type          ID      ID    Pci Address          Ven ID  Dev ID 
 -----  ------------  ------  ------  -----------------    ------  ------ 
   0     SAS3008       1000h   97h    00h:01h:00h:00h      1bd4h   000ch 
SAS3IRCU: Utility Completed Successfully.

Step 2: List All Drives Connected to the RAID Controller

Replace 0 with your RAID controller index from Step 1 and run:

sas3ircu 0 display

This will list all drives connected to the RAID controller. Look for a skipped number or a drive that does not match others in terms of manufacturer, model number, or firmware revision.

Example Output:

root@truenas[~]# sas3ircu 0 display        
Avago Technologies SAS3 IR Configuration Utility.
Version 16.00.00.00 (2017.04.26) 
Copyright (c) 2009-2017 Avago Technologies. All rights reserved. 

Device is a Hard disk
  Enclosure #                             : 2
  Slot #                                  : 5
  SAS Address                             : 5003048-0-01ef-0d05
  State                                   : Ready (RDY)
  Size                                     : 7630885 MB

... (other drives listed)

Step 3: Turn On the LED on the Physical Drive

Replace 0 with your RAID controller index, 2 with your enclosure number, and 5 with your slot number. Run:

sas3ircu 0 locate 2:5 on 

This will turn on the LED on the physical drive identified in Step 2.

Example Output:

root@truenas[~]# sas3ircu 0 locate 2:5 on 
Avago Technologies SAS3 IR Configuration Utility.
Version 16.00.00.00 (2017.04.26) 
Copyright (c) 2009-2017 Avago Technologies. All rights reserved. 

SAS3IRCU: LOCATE command completed successfully.
SAS3IRCU: Command LOCATE Completed Successfully.
SAS3IRCU: Utility Completed Successfully.

Step 4: Turn Off the LEDs

After identifying your drive, turn off the LEDs by running:

sas3ircu 0 locate 2:5 off 

Repeat this process for each drive where the red LED is on.