I have a problem identifying the physical port or drive bay, e.g. of a failed MD RAID disk inside some enclosure.
Question: How can I identify the physical cable a disk is connected to?
*The final question: Which drive to pull from a RAID?
*
Any help would be highly appreciated.
Example:
=== situation after first boot ===
[0:0:0:0] disk ATA Corsair Force LS 01.8 /dev/sda <--- system disk connected to M/B
[2:0:0:0] disk ATA Hitachi HDS72101 A600 /dev/sdb
[2:0:1:0] disk ATA ST3500830SCE D /dev/sdc
[2:0:2:0] disk ATA WDC WD3202ABYS-0 3B03 /dev/sdd
[2:0:3:0] disk ATA ST31000528AS CC38 /dev/sde
[2:0:4:0] disk ATA WDC WD3000FYYZ-0 1K01 /dev/sdf
[2:0:5:0] disk ATA Hitachi HDS72101 A3MA /dev/sdg
[2:0:6:0] disk ATA ST31500541AS CC34 /dev/sdh
[2:0:7:0] disk ATA Hitachi HUA72107 AB0A /dev/sdi
=== (hot-) swapped disks 6 and 7 ===
[0:0:0:0] disk ATA Corsair Force LS 01.8 /dev/sda
[2:0:0:0] disk ATA Hitachi HDS72101 A600 /dev/sdb
[2:0:1:0] disk ATA ST3500830SCE D /dev/sdc
[2:0:2:0] disk ATA WDC WD3202ABYS-0 3B03 /dev/sdd
[2:0:3:0] disk ATA ST31000528AS CC38 /dev/sde
[2:0:8:0] disk ATA Hitachi HDS72101 A3MA /dev/sdf
[2:0:9:0] disk ATA ST31500541AS CC34 /dev/sdg
[2:0:10:0] disk ATA Hitachi HUA72107 AB0A /dev/sdh
[2:0:11:0] disk ATA WDC WD3000FYYZ-0 1K01 /dev/sdi
=== reboot ===
[0:0:0:0] disk ATA Corsair Force LS 01.8 /dev/sda
[2:0:0:0] disk ATA Hitachi HDS72101 A600 /dev/sdb
[2:0:1:0] disk ATA ST3500830SCE D /dev/sdc
[2:0:2:0] disk ATA WDC WD3202ABYS-0 3B03 /dev/sdd
[2:0:3:0] disk ATA ST31000528AS CC38 /dev/sde
[2:0:4:0] disk ATA ST31500541AS CC34 /dev/sdf
[2:0:5:0] disk ATA Hitachi HDS72101 A3MA /dev/sdg
[2:0:6:0] disk ATA WDC WD3000FYYZ-0 1K01 /dev/sdh
[2:0:7:0] disk ATA Hitachi HUA72107 AB0A /dev/sdi
b Serial Number: MSK5235H24MM1G
c Serial Number: 9QGALV55
d Serial Number: WD-WCAT1H291414
e Serial Number: 9VP8R3FR
f Serial Number: 9XW02BEE
g Serial Number: JP6940HZ0VE5LF
h Serial Number: WD-WMC130270449
i Serial Number: GTF200P8GHTBWF
=== (hot-) swapped first and last drive ===
[0:0:0:0] disk ATA Corsair Force LS 01.8 /dev/sda
[2:0:8:0] disk ATA WDC WD3202ABYS-0 3B03 /dev/sdb
[2:0:9:0] disk ATA ST31000528AS CC38 /dev/sdc
[2:0:10:0] disk ATA Hitachi HDS72101 A600 /dev/sdd
[2:0:11:0] disk ATA Hitachi HDS72101 A3MA /dev/sde
[2:0:12:0] disk ATA ST3500830SCE D /dev/sdf
[2:0:13:0] disk ATA ST31500541AS CC34 /dev/sdg
[2:0:14:0] disk ATA Hitachi HUA72107 AB0A /dev/sdh
[2:0:15:0] disk ATA WDC WD3000FYYZ-0 1K01 /dev/sdi
b Serial Number: WD-WCAT1H291414
c Serial Number: 9VP8R3FR
d Serial Number: MSK5235H24MM1G
e Serial Number: JP6940HZ0VE5LF
f Serial Number: 9QGALV55
g Serial Number: 9XW02BEE
h Serial Number: GTF200P8GHTBWF
i Serial Number: WD-WMC130270449