ACTUALLY finding the failed drive

Zedicus

Explorer
Joined
Aug 1, 2014
Messages
51
so, long story short, my white label drives do not have the serial number printed on the label. i had to come up with a way to determine the bad drive given very little help from the GUI (not its fault). this can be done in some capacity on any hardware but if you have LSI hardware you will want to add sas2ircu. free download from brodcom, copy the 1 freebsd file to freenas and profit.

sas2ircu list will list controllers

sas2ircu 0 display where 0 is the card number so you might have 1 or 2 or 12 etc. this gets info like this

get the serial number from the FreeNAS GUI.

Code:
LSI Corporation SAS2 IR Configuration Utility.
Version 20.00.00.00 (2014.09.18)
Copyright (c) 2008-2014 LSI Corporation. All rights reserved.

Read configuration has been initiated for controller 0
------------------------------------------------------------------------
Controller information
------------------------------------------------------------------------
  Controller type  : SAS2008
  BIOS version  : 0.00.00.00
  Firmware version  : 20.00.07.00
  Channel description  : 1 Serial Attached SCSI
  Initiator ID  : 0
  Maximum physical devices  : 255
  Concurrent commands supported  : 3432
  Slot  : Unknown
  Segment  : 0
  Bus  : 1
  Device  : 0
  Function  : 0
  RAID Support  : No
------------------------------------------------------------------------
IR Volume information
------------------------------------------------------------------------
------------------------------------------------------------------------
Physical device information
------------------------------------------------------------------------
Initiator at ID #0

Device is a Hard disk
  Enclosure #  : 1
  Slot #  : 0
  SAS Address  : 4433221-1-0300-0000
  State  : Ready (RDY)
  Size (in MB)/(in sectors)  : 2861588/5860533167
  Manufacturer  : ATA
  Model Number  : WL3000GSA6472E
  Firmware Revision  : D1K4
  Serial No  : WOL240309179
  GUID  : N/A
  Protocol  : SATA
  Drive Type  : SATA_HDD

Device is a Hard disk
  Enclosure #  : 1
  Slot #  : 1
  SAS Address  : 4433221-1-0200-0000
  State  : Ready (RDY)
  Size (in MB)/(in sectors)  : 3052360/6251233967
  Manufacturer  : ATA
  Model Number  : WL3000GSA6472E
  Firmware Revision  : 2E.J
  Serial No  : WOL240298896
  GUID  : N/A
  Protocol  : SATA
  Drive Type  : SATA_HDD

Device is a Hard disk
  Enclosure #  : 1
  Slot #  : 2
  SAS Address  : 4433221-1-0100-0000
  State  : Ready (RDY)
  Size (in MB)/(in sectors)  : 3052360/6251233967
  Manufacturer  : ATA
  Model Number  : WL3000GSA6472E
  Firmware Revision  : 2E.J
  Serial No  : WOL240298895
  GUID  : N/A
  Protocol  : SATA
  Drive Type  : SATA_HDD

Device is a Hard disk
  Enclosure #  : 1
  Slot #  : 4
  SAS Address  : 4433221-1-0700-0000
  State  : Ready (RDY)
  Size (in MB)/(in sectors)  : 2861588/5860533167
  Manufacturer  : ATA
  Model Number  : WL3000GSA6472E
  Firmware Revision  : D1K4
  Serial No  : WOL240309210
  GUID  : N/A
  Protocol  : SATA
  Drive Type  : SATA_HDD

Device is a Hard disk
  Enclosure #  : 1
  Slot #  : 5
  SAS Address  : 4433221-1-0600-0000
  State  : Ready (RDY)
  Size (in MB)/(in sectors)  : 2861588/5860533167
  Manufacturer  : ATA
  Model Number  : WL3000GSA6472E
  Firmware Revision  : D1K4
  Serial No  : WOL240309208
  GUID  : N/A
  Protocol  : SATA
  Drive Type  : SATA_HDD

Device is a Hard disk
  Enclosure #  : 1
  Slot #  : 6
  SAS Address  : 4433221-1-0500-0000
  State  : Ready (RDY)
  Size (in MB)/(in sectors)  : 2861588/5860533167
  Manufacturer  : ATA
  Model Number  : WL3000GSA6472E
  Firmware Revision  : D1K4
  Serial No  : WOL240309181
  GUID  : N/A
  Protocol  : SATA
  Drive Type  : SATA_HDD

Device is a Hard disk
  Enclosure #  : 1
  Slot #  : 7
  SAS Address  : 4433221-1-0400-0000
  State  : Ready (RDY)
  Size (in MB)/(in sectors)  : 2861588/5860533167
  Manufacturer  : ATA
  Model Number  : ST3000DM001-9YN1
  Firmware Revision  : CC4H
  Serial No  : Z1F2Z594
  GUID  : N/A
  Protocol  : SATA
  Drive Type  : SATA_HDD
------------------------------------------------------------------------
Enclosure information
------------------------------------------------------------------------
  Enclosure#  : 1
  Logical ID  : 5d4ae520:b3249800
  Numslots  : 8
  StartSlot  : 0
------------------------------------------------------------------------
SAS2IRCU: Command DISPLAY Completed Successfully.
SAS2IRCU: Utility Completed Successfully.



using that you can find the location and then use the command
sas2ircu 1 locate 1:3 ON
to activate the LED or OFF to deactivate the LED (NOTE: i must be missing a backplane cable so this did not work for me, ther is an option 2)

option 2, you now know EVERYTHING except the actual physical location of the drive, well diskinfo too the rescue, it is built in to freebsd and when it does a read it will activate the light on the failing drive no matter what (it will attempt to read any drive the has power, if your drive has failed and does not have power surely you found it much more easily) so after you know the drive location do "diskinfo -ctv 'drive'" and it will forcibly kick the light on long enough for you to walk over and find the bad drive.

ENJOY
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
I am commenting here to bring the thread back up to the top so someone might see it and be helped by the information.
if you have LSI hardware you will want to add sas2ircu. free download from brodcom,
Not required as the software is already included with FreeNAS at the time I am commenting.
using that you can find the location and then use the command
sas2ircu 1 locate 1:3 ON
to activate the LED or OFF to deactivate the LED (NOTE: i must be missing a backplane cable so this did not work for me, ther is an option 2)
I know that this is an old post, but I just used this information today to locate and replace a drive. If your SAS backplane supports the locate command, mine did, it will flash the locate light (in my case red) and continue doing it until you come back with the followup command
sas2ircu 1 locate 1:3 OFF

In my situation, it was sas2ircu 0 locate 3:6 ON but this can absolutely save the day if your hardware supports it.
 
Top