could someone help me out?
I have this software-raid:
md3 : active raid6 sdi1[8] sdh1[6] sdg1[4] sdf1[5] sde1[3] sdd1[2] sdc1[0]
4391334912 blocks level 6, 64k chunk, algorithm 2 [8/6] [U_UUUUU_]
[====>................] recovery = 22.8% (167386900/731889152)
finish=196.6min speed=47837K/sec
and I would like to know which hard disk (vendor, serial) each /dev/sdX is.
(I have to tell the remote admin which physical disk to remove from the
server, and there are disks in the server which aren't part of the RAID yet)
Found sg_map and sg_scan:
# sg_map
/dev/sg0 /dev/nst0
/dev/sg1
/dev/sg2 /dev/sda
/dev/sg3 /dev/sdb
/dev/sg4 /dev/sdc
/dev/sg5 /dev/sdd
/dev/sg6 /dev/sde
/dev/sg7 /dev/sdf
/dev/sg8 /dev/sdg
/dev/sg9 /dev/sdh
/dev/sg10 /dev/sdi
/dev/sg11
/dev/sg12
/dev/sg13
/dev/sg14
/dev/sg15
/dev/sg16
/dev/sg17
/dev/sg18
/dev/sg19
/dev/sg20
/dev/sg21
--
The crux:
It seems I get two sg-devices per physical disk:
sda = sg2 = sg11 ...
sg11 is shown as SEAGATE, sg2 as ICP
(tried -d scsi and -d sat as well)
and I only get useful info from the sg-devices >10
->
# smartctl -d auto -i /dev/sg11
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SEAGATE
Product: ST373455SS
Revision: 0002
User Capacity: 73,407,868,928 bytes [73.4 GB]
Logical block size: 512 bytes
Rotation Rate: 15015 rpm
Logical Unit id: 0x5000c50002448407
Serial number: 3LQ11JWH00009748U10J
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Wed Mar 1 15:51:28 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
juno ~ # smartctl -d auto -i /dev/sg2
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: ICP
Product: SAS1
Revision: V1.0
User Capacity: 73,284,976,640 bytes [73.2 GB]
Logical block size: 512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.
juno ~ # smartctl -d auto -i /dev/sda
smartctl 6.4 2015-06-04 r4109 [x86_64-linux-3.18.11-gentoo-smp] (local
build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: ICP
Product: SAS1
Revision: V1.0
User Capacity: 73,284,976,640 bytes [73.2 GB]
Logical block size: 512 bytes
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
>> Terminate command early due to bad response to IEC mode page
A mandatory SMART command failed: exiting. To continue, add one or more
'-T permissive' options.
----//
# sg_scan -iv
/dev/sg0: scsi0 channel=0 id=1 lun=0
HP Ultrium 4-SCSI B12H [rmb=1 cmdq=1 pqual=0 pdev=0x1]
/dev/sg1: scsi0 channel=0 id=1 lun=1
OVERLAND NEO Series 0510 [rmb=1 cmdq=1 pqual=0 pdev=0x8]
/dev/sg2: scsi1 channel=0 id=0 lun=0 [em]
ICP SAS1 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg3: scsi1 channel=0 id=1 lun=0 [em]
ICP SAS2 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg4: scsi1 channel=0 id=2 lun=0 [em]
ICP Device 2 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg5: scsi1 channel=0 id=3 lun=0 [em]
ICP Device 3 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg6: scsi1 channel=0 id=4 lun=0 [em]
ICP Device 4 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg7: scsi1 channel=0 id=5 lun=0 [em]
ICP Device 5 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg8: scsi1 channel=0 id=6 lun=0 [em]
ICP Device 6 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg9: scsi1 channel=0 id=8 lun=0 [em]
ICP Device 8 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg10: scsi1 channel=0 id=12 lun=0 [em]
ICP Device 12 V1.0 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg11: scsi1 channel=1 id=0 lun=0 [em]
SEAGATE ST373455SS 0002 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg12: scsi1 channel=1 id=1 lun=0 [em]
SEAGATE ST373455SS 0002 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg13: scsi1 channel=1 id=3 lun=0 [em]
WDC WD7500AZEX-00RKK 0A80 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg14: scsi1 channel=1 id=4 lun=0 [em]
WDC WD7500AZEX-00RKK 0A80 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg15: scsi1 channel=1 id=5 lun=0 [em]
WDC WD7500AZEX-00RKK 0A80 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg16: scsi1 channel=1 id=6 lun=0 [em]
WDC WD7500AZEX-00BN5 1A01 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg17: scsi1 channel=1 id=7 lun=0 [em]
WDC WD7500AZEX-00BN5 1A01 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg18: scsi1 channel=1 id=9 lun=0 [em]
ST375052 8AS CC44 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg19: scsi1 channel=1 id=10 lun=0 [em]
WDC WD7500AZEX-00BN5 1A01 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg20: scsi1 channel=1 id=11 lun=0 [em]
WDC WD7500AZEX-00BN5 1A01 [rmb=0 cmdq=1 pqual=0 pdev=0x0]
/dev/sg21: scsi1 channel=1 id=15 lun=0 [em]
ST375052 8AS CC44 [rmb=0 cmdq=1 pqual=0 pdev=0x0]