-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
NameByDiskID and IsMegaRaidSysPath do not seem to work for the SAS3508 controller. This was the same controller named in #98 which is really just a HBA (host bus adapter), as it apparently does not support raid (per lack of RAID entries in 'Capabilities' of storcli /c0 show all).
The information I have from the one system I had access to looked like this:
/sys/bus/scsi/devices/target7:0:1/7:0:1:0/block/sdd
/sys/bus/scsi/devices/target7:0:0/7:0:0:0/block/sdc
Those correspond to EID/Slot/DiskID of 2/2/1 and 2/1/0 respectively. They had udev syspath of:
/devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expander-7:0/port-7:0:1/end_device-7:0:1/target7:0:1/7:0:1:0/block/sdd
/devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expander-7:0/port-7:0:0/end_device-7:0:0/target7:0:0/7:0:0:0/block/sdc
Here is the 'dump' output.
{
"ID": 0,
"Drives": {
"0": {
"ID": 0,
"DriveGroup": -1,
"EID": 2,
"Slot": 1,
"State": "JBOD",
"MediaType": "HDD",
"Model": "ST2000NX0433",
"Raw": {
"DG": "-",
"DID": "0",
"EID:Slt": "2:1",
"Intf": "SAS",
"Med": "HDD",
"Model": "ST2000NX0433",
"PI": "N",
"SED": "N",
"SeSz": "512B",
"Size": "1.819 TB",
"Sp": "U",
"State": "JBOD"
}
},
"1": {
"ID": 1,
"DriveGroup": -1,
"EID": 2,
"Slot": 2,
"State": "JBOD",
"MediaType": "HDD",
"Model": "ST2000NX0433",
"Raw": {
"DG": "-",
"DID": "1",
"EID:Slt": "2:2",
"Intf": "SAS",
"Med": "HDD",
"Model": "ST2000NX0433",
"PI": "N",
"SED": "N",
"SeSz": "512B",
"Size": "1.819 TB",
"Sp": "U",
"State": "JBOD"
}
}
},
"DriveGroups": [],
"VirtDrives": {}
}
And the udevadm info:
# udevadm info /dev/sdc /dev/sdd
P: /devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expander-7:0/po
rt-7:0:0/end_device-7:0:0/target7:0:0/7:0:0:0/block/sdc
N: sdc
L: 0
S: disk/by-id/wwn-0x5000c500cac8e733
S: disk/by-path/pci-0000:18:00.0-sas-exp0x570f0967dee241bf-phy0-lun-0
S: disk/by-id/scsi-35000c500cac8e733
E: DEVPATH=/devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expande
r-7:0/port-7:0:0/end_device-7:0:0/target7:0:0/7:0:0:0/block/sdc
E: DEVNAME=/dev/sdc
E: DEVTYPE=disk
E: MAJOR=8
E: MINOR=32
E: SUBSYSTEM=block
E: USEC_INITIALIZED=21313951
E: ID_SCSI=1
E: ID_VENDOR=SEAGATE
E: ID_VENDOR_ENC=SEAGATE\x20
E: ID_MODEL=ST2000NX0433
E: ID_MODEL_ENC=ST2000NX0433\x20\x20\x20\x20
E: ID_REVISION=CN05
E: ID_TYPE=disk
E: ID_SERIAL=35000c500cac8e733
E: ID_SERIAL_SHORT=5000c500cac8e733
E: ID_WWN=0x5000c500cac8e733
E: ID_WWN_WITH_EXTENSION=0x5000c500cac8e733
E: ID_SCSI_SERIAL=W462VCJP0000C101F9LZ
E: ID_BUS=scsi
E: ID_PATH=pci-0000:18:00.0-sas-exp0x570f0967dee241bf-phy0-lun-0
E: ID_PATH_TAG=pci-0000_18_00_0-sas-exp0x570f0967dee241bf-phy0-lun-0
E: DEVLINKS=/dev/disk/by-id/wwn-0x5000c500cac8e733 /dev/disk/by-path/pci-0000:1
8:00.0-sas-exp0x570f0967dee241bf-phy0-lun-0 /dev/disk/by-id/scsi-35000c500cac8e
733
E: TAGS=:systemd:
P: /devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expander-7:0/po
rt-7:0:1/end_device-7:0:1/target7:0:1/7:0:1:0/block/sdd
N: sdd
L: 0
S: disk/by-id/scsi-35000c500cac8f5e3
S: disk/by-id/wwn-0x5000c500cac8f5e3
S: disk/by-path/pci-0000:18:00.0-sas-exp0x570f0967dee241bf-phy1-lun-0
E: DEVPATH=/devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expande
r-7:0/port-7:0:1/end_device-7:0:1/target7:0:1/7:0:1:0/block/sdd
E: DEVNAME=/dev/sdd
E: DEVTYPE=disk
E: MAJOR=8
E: MINOR=48
E: SUBSYSTEM=block
E: USEC_INITIALIZED=21374107
E: ID_SCSI=1
E: ID_VENDOR=SEAGATE
E: ID_VENDOR_ENC=SEAGATE\x20
E: ID_MODEL=ST2000NX0433
E: ID_MODEL_ENC=ST2000NX0433\x20\x20\x20\x20
E: ID_REVISION=CN05
E: ID_TYPE=disk
E: ID_SERIAL=35000c500cac8f5e3
E: ID_SERIAL_SHORT=5000c500cac8f5e3
E: ID_WWN=0x5000c500cac8f5e3
E: ID_WWN_WITH_EXTENSION=0x5000c500cac8f5e3
E: ID_SCSI_SERIAL=W462VD910000C101FAUP
E: ID_BUS=scsi
E: ID_PATH=pci-0000:18:00.0-sas-exp0x570f0967dee241bf-phy1-lun-0
E: ID_PATH_TAG=pci-0000_18_00_0-sas-exp0x570f0967dee241bf-phy1-lun-0
E: DEVLINKS=/dev/disk/by-id/scsi-35000c500cac8f5e3 /dev/disk/by-id/wwn-0x5000c5
00cac8f5e3 /dev/disk/by-path/pci-0000:18:00.0-sas-exp0x570f0967dee241bf-phy1-lu
n-0
E: TAGS=:systemd:
And a bit more info from /sys:
root@(none):/root# find /sys/ -name "target*" -type d
/sys/devices/pci0000:00/0000:00:11.5/ata1/host0/target0:0:0
/sys/devices/pci0000:00/0000:00:11.5/ata3/host2/target2:0:0
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.3/1-6.3:1.0/host17/target17:0:0
/sys/devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expander-7:0/port-7:0:2/end_device-7:0:2/target7:0:2
/sys/devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expander-7:0/port-7:0:0/end_device-7:0:0/target7:0:0
/sys/devices/pci0000:17/0000:17:00.0/0000:18:00.0/host7/port-7:0/expander-7:0/port-7:0:1/end_device-7:0:1/target7:0:1
Metadata
Metadata
Assignees
Labels
No labels