Show disks in GUI named by their drive bay?

masgo

New Member
Jun 24, 2019
17
1
3
69
I am using Proxmox on typical servers with multiple drive bays. The disks show up on the GUI as sda, sdb, ... which is not very helpfull identifing a disk. I would like them to show up named after their respective drive bay, eg. bay-1, bay-3, ... . This woule make thins like replacing a broken drive much easier. .. "What? drive 4 is broken?" ok, pull it out, new drive in, done.

Where to geh this informations? I checked on different servers with different HBA/RAID controllers, and it always boils down to /dev/disk/by-path/

Example
# ls -la /dev/disk/by-path/*0
lrwxrwxrwx 1 root root 9 Oct 27 18:53 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:1:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:3:0 -> ../../sdd
lrwxrwxrwx 1 root root 9 Oct 27 18:53 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:4:0 -> ../../sdb
lrwxrwxrwx 1 root root 9 Nov 25 13:19 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:5:0 -> ../../sde
lrwxrwxrwx 1 root root 9 Nov 25 13:20 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:7:0 -> ../../sdf
lrwxrwxrwx 1 root root 9 Nov 25 13:20 /dev/disk/by-path/pci-0000:02:00.0-scsi-0:0:9:0 -> ../../sdg

The bold number is the slot number.

It would also be okay, if the drives would show up as pci-0000:02:00.0-scsi-0:0:0:0
 

akxx

New Member
Jun 8, 2018
13
1
3
@masgo
that's a good idea!
and in your usecase ... wouldn't it be helpful to have a button in gui, that you can start flashing the drive light?
(i think smarttools can do this on command level, can't it?)
 
Last edited:

masgo

New Member
Jun 24, 2019
17
1
3
69
@masgo
that's a good idea!
and in your usecase ... wouldn't it be helpful to have a button in gui, that you can start flashing the drive light?
(i think smarttools can do this on command level, can't it?)
This would obviously be a great idea.

As far as I know, smartmontools can not do this. There are specialized tools for that (check out this: https://serverfault.com/questions/64239/physically-identify-the-failed-hard-drive ). The overall problem seems to be, that the mechanisms used to control these backplane LEDs vary depending on make and model.

But on most servers I encountered the bays are clearly labeled. On the few exceptions, I labeled them myself. And "replace drive 4" is not much more difficult than "replace the drive with the blinking LED".

The only time I actually used the blinking function was after cabling up the backplane to check if I did it right.
 

stark

New Member
Feb 23, 2019
15
2
3
46
This would obviously be a great idea.

As far as I know, smartmontools can not do this. There are specialized tools for that (check out this: https://serverfault.com/questions/64239/physically-identify-the-failed-hard-drive ). The overall problem seems to be, that the mechanisms used to control these backplane LEDs vary depending on make and model.

But on most servers I encountered the bays are clearly labeled. On the few exceptions, I labeled them myself. And "replace drive 4" is not much more difficult than "replace the drive with the blinking LED".

The only time I actually used the blinking function was after cabling up the backplane to check if I did it right.
A lot of times a simple "dd if=/dev/sdg of=/dev/null" can help narrow down which drive it is. Even if a failed drive has been deleted by the OS, working drives will still help narrow down the bad drive.
 

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
4,074
368
88
31
Vienna
mhmm.. we could probably get the 'by-path' link relatively cheap in the disk api call, and i can see why that might be interesting (altough i would not show it by default in the user interface, only if the user configures it)

can you open an enhancement request on our bugtracker? https://bugzilla.proxmox.com/
this way you get a notification if we implement this (no promises though :) )
 
Sep 20, 2019
2
0
1
32
Simple workaround: Make a list with all the slot numbers and the corresponding serial numbers of all hard disks. If a disk fails, just look up the serial number and take a look at your list so you know the slot number! Beware to keep the list up to date because otherwise it is not very useful.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!