I need to blink a drive that I found out had SMART errors using smartmontools. I have omconfig installed and it looks like it can be used for blinking LEDs, but I don't know how to find the controller and pdisk number it needs

As an alternative, I tried looking for /locate files in /sys but they corresponded to controller slots, not the drive letters.

I am using CentOS 7 on a Dell PowerEdge R730.


First, try using ledctl from the ledmon package. It is quite simple to use:

Locate a drive:

ledctl locate=/dev/sda

Stop locating a drive:

ledctl locate_off=/dev/sda

If this doesn't work, on Dell systems the omreport tool can be useful for finding drives. I wrote the following script for taking a serial number of a drive (like you can get with smartctl) and returning the controller and pdisk id:

controllers=$(omreport storage controller | grep '^ID' | awk '{print $3}')
for controller in $controllers; do
    id=$(omreport storage pdisk controller=$controller | grep --before 25 $serialnumber | grep '^ID' | awk '{print $3}')
    if [ ! -z "$id" ]; then echo "controller=$controller pdisk=$id"; fi

It can be used like so:

[root@computer ~]# ./get_pdisk_from_serial.sh BTHC711202VV1P6PGN
controller=0 pdisk=0:0:4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.