3
1
My /dev/sda is reporting a failure, so I need to swap it for a new one. I am trying to identify which physical port it is connected to (there are four of this drive type in the server, so I can't eyeball it, or see serials easily).
If I have this:
lrwxrwxrwx 1 root root 9 Apr 15 16:31 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 9 Apr 15 16:31 pci-0000:00:1f.2-scsi-1:0:0:0 -> ../../sdb
lrwxrwxrwx 1 root root 9 Apr 15 16:31 pci-0000:00:1f.2-scsi-2:0:0:0 -> ../../sdc
lrwxrwxrwx 1 root root 9 Apr 15 16:31 pci-0000:00:1f.2-scsi-3:0:0:0 -> ../../sdd
lrwxrwxrwx 1 root root 9 Apr 15 16:31 pci-0000:00:1f.2-scsi-4:0:0:0 -> ../../sde
lrwxrwxrwx 1 root root 9 Apr 15 16:31 pci-0000:00:1f.2-scsi-5:0:0:0 -> ../../sdf
What are the chances that the first physical SATA port contains /dev/sda?
Note that I cannot run lshw
due to a kernel issue, and hdparms -I
doesn't give me any clues.