Site icon

Controlling Drive Led in the Linux

When you need to replace a disk in the datacenter or in your rack, you may need to identify which drive bay when you have failed disk in order not to have a wrong disk/drive is removed and lead to data loss.

In this case you need to controlling drive led in the linux server. To perform this task one of many way is using the “ledmon” utility command “ledctl”.

First, install the ledmon package in your system (in my case Debian)
#sudo apt update && sudo apt install ledmon

Blink and locate the drive that you want to identify.

#sudo ledctl locate=/dev/sda

You can do multiple device in this command

#sudo ledctl locate= {/dev/sda /dev/sdb}

If your disk led not blinked by this command,

#sudo ledctl locate_off=/dev/sda

Thank You.

Exit mobile version