How to reset drive fault LED in Supermicro chassis without rebooting

artstar

Dabbler
Joined
Jan 10, 2022
Messages
36
Hey all,

I had a drive get taken offline by TrueNAS (Cobia) due to too many sequential errors being reported. After checking the drive in another PC with an Extended SMART process (TrueNAS was not performing this test, staying at 0% for 60 minutes) spanning about 16 hours, and no error reported, I decided to plug it back in, run the zpool clear command and then use the web UI to bring the drive back online. Everything is fine, activity LED for this drive is functioning as expected but the red fault LED is still flashing despite the drive having successfully resilvered and the pool reporting as healthy.

I notice in the logs that TrueNAS has set the LED to the invalid state but I see nothing in the logs about resetting the LED back to the valid state. Is there a way to do this without having to reboot the NAS?

Code:
vaultmaster zed[1237994]: vdev 8f903adb-508f-4804-a863-c1c3d1b83d2c set '/sys/devices/pci0000:00/0000:00:13.0/host8/target8:0:0/8:0:0:0/enclosure/8:0:0:0/Slot 05/fault' LED to invalid state: OFFLINE
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I believe @Arwen has mentioned a Linux utility (which is included in SCALE) that can manipulate these, but I can't recall the name. Perhaps she can chime in.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
No, sorry. If I mentioned such a tool, I don't remember it now.

A complete hardware listing would help.

Plus, the output of this may help;
cat /sys/devices/pci0000:00/0000:00:13.0/host8/target8:0:0/8:0:0:0/enclosure/8:0:0:0/Slot 05/fault
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
My mistake; it was @Ericloewe in this post:

The utility is sg_ses.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Top