Discussion:
[smartmontools-support] Problems talking to disks behind PERC adapter
mathog
2017-06-05 23:20:38 UTC
Permalink
Hi,

smartctl talks happily to disks on several machines with PERC adapaters
here, but one it does not like. megacli says that the adapter on this
Centos 6.9 machine is:

Product Name : PERC H730 Adapter
Serial No : 54N00BK
FW Package Build: 25.2.2-0004

Mfg. Data
================
Mfg. Date : 04/24/15
Rework Date : 04/24/15
Revision No : A01
Battery FRU : N/A

Image Versions in Flash:
================
BIOS Version : 6.18.03.0_4.16.07.00_0x06070400
Ctrl-R Version : 5.03-0010
FW Version : 4.241.00-4163
NVDATA Version : 3.1310.00-0084
Boot Block Version : 3.02.00.00-0000

Pending Images in Flash
================
None

PCI Info
================
Controller Id : 0000
Vendor Id : 1000
Device Id : 005d
SubVendorId : 1028
SubDeviceId : 1f43

Host Interface : PCIE

ChipRevision : C0

Link Speed : 3
Number of Frontend Port: 0
Device Interface : PCIE

Number of Backend Port: 8


However the smartctl which comes with Centos 6.9 will not talk to it:
smartctl -i /dev/sda -d sat+megaraid,0
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-573.22.1.el6.x86_64]
(local build)
Copyright (C) 2002-12 by Bruce Allen,
http://smartmontools.sourceforge.net

Smartctl: Device Read Identity Failed: megasas_cmd result: 0.0 = 0/45

smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device


and neither will one just built from scratch:

./smartctl -i /dev/sda -d sat+megaraid,0
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-2.6.32-573.22.1.el6.x86_64]
(local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke,
www.smartmontools.org

Read Device Identity failed: megasas_cmd result: 0.0 = 0/45

./smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,1 # /dev/bus/0 [megaraid_disk_01], SCSI device
/dev/bus/0 -d megaraid,2 # /dev/bus/0 [megaraid_disk_02], SCSI device
/dev/bus/0 -d megaraid,3 # /dev/bus/0 [megaraid_disk_03], SCSI device
/dev/bus/0 -d megaraid,4 # /dev/bus/0 [megaraid_disk_04], SCSI device
/dev/bus/0 -d megaraid,5 # /dev/bus/0 [megaraid_disk_05], SCSI device
/dev/bus/0 -d megaraid,6 # /dev/bus/0 [megaraid_disk_06], SCSI device
/dev/bus/0 -d megaraid,7 # /dev/bus/0 [megaraid_disk_07], SCSI device


Suggestions?

Thanks,

David Mathog
***@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech
mathog
2017-06-12 16:17:47 UTC
Permalink
Post by mathog
Read Device Identity failed: megasas_cmd result: 0.0 = 0/45
./smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,1 # /dev/bus/0 [megaraid_disk_01], SCSI device
/dev/bus/0 -d megaraid,2 # /dev/bus/0 [megaraid_disk_02], SCSI device
/dev/bus/0 -d megaraid,3 # /dev/bus/0 [megaraid_disk_03], SCSI device
/dev/bus/0 -d megaraid,4 # /dev/bus/0 [megaraid_disk_04], SCSI device
/dev/bus/0 -d megaraid,5 # /dev/bus/0 [megaraid_disk_05], SCSI device
/dev/bus/0 -d megaraid,6 # /dev/bus/0 [megaraid_disk_06], SCSI device
/dev/bus/0 -d megaraid,7 # /dev/bus/0 [megaraid_disk_07], SCSI device
Figured it out, the syntax needed is:

smartctl -a /dev/sda -d megaraid,0

the other machines have a "sat+" immediately before the megaraid. These
don't, probably because the disks are SAS.

Regards,

David Mathog
***@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech

Loading...