Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#856 closed enhancement (wontfix)

PERC 5/i and PERC 6 HDD SMART reading

Reported by: Demo1 Owned by:
Priority: minor Milestone:
Component: all Version: 6.5
Keywords: megaraid windows Cc:

Description

Hi,

We are trying to read on Windows 2012 R2 all smart values from PERC 5/i and PERC 6 controllers, but no any success, we trying access all SAS/SATA3 HDD temperature sensors without luck too, normally all drives when putting to PC no any issues to read with any tools and like Crystal Disk Info, but why we can't see from controller and with your smart tools too any idea how to solve that?

Also strangest thing we tried all available online tools to read smart status from HDD like temperatures from that type controllers and only we we found "hdd sentinel" can read SMART status and temperatures without any issues https://www.hdsentinel.com/.

But we want to use your smart monitor tools. Maybe we use wrong commands or that smartctl has missed some algorithms.

We tried 6.5 version.

C:\Program Files\smartmontools>smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device

C:\Program Files\smartmontools>smartctl -a /dev/sda
smartctl 6.5 2016-05-07 r4318 [x86_64-w64-mingw32-2012r2] (sf-6.5-1)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               DELL
Product:              PERC 5/i
Revision:             1.03
User Capacity:        999,653,638,144 bytes [999 GB]
Logical block size:   512 bytes
Logical Unit id:      0x600188b0393be8001eab3c399d8cf3cd
Serial number:        00cdf38c9d393cab1e00e83b39b08801
Device type:          disk
Local Time is:        Fri Jul 07 17:17:06 2017 FLEDT
SMART support is:     Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

Device does not support Self Test logging

C:\Program Files\smartmontools>smartctl --smart=on /dev/sda
smartctl 6.5 2016-05-07 r4318 [x86_64-w64-mingw32-2012r2] (sf-6.5-1)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
unable to fetch IEC (SMART) mode page [unsupported field in scsi command]
A mandatory SMART command failed: exiting. To continue, add one or more '-T per
issive' options.

Change History (8)

comment:1 in reply to:  description Changed 2 years ago by Christian Franke

Component: smartctlall
Keywords: megaraid windows added
Milestone: undecided
Type: taskenhancement

Some Windows drivers for LSI based controllers reportedly support CSMI pass-through, see ticket #276.

... and only we we found "hdd sentinel" can read SMART status and temperatures without any issues...

This proves that some vendor specific pass-through functionality exists. But this also suggests that the documentation may only be available under NDA.

Related: #702, #740.

comment:2 Changed 2 years ago by Demo1

Hi,

Thanks for quick reply.

... "Some Windows drivers for LSI based controllers reportedly support CSMI pass-through"
This part not clear as didn't find any example that sort out our issue using smartctl to read from RAID1 SMART values. Also we tried LSI MegaCLI that won't worked too, that super strange, also in BIOS we didn't find an option how to enable SMART status too. But "HDD Sentinel"https://www.hdsentinel.com/ can read all that, not sure why your utility doesn't.

If that drivers issues what PERC 5/i or/and PERC 6 controllers should have drivers installed to fix read SMART attributes?

Also we tried latest smartctl 6.6 version without any luck too, just no results.

smartctl -T permissive -d scsi -A /dev/sda

smartctl 6.6 2017-05-03 r4430 [x86_64-w64-mingw32-2012r2] (daily-20170503)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===

Also we output more info when we tried enable SMART may that helps to fix for us problem:

smartctl -T permissive -d scsi -r ioctl,2 -s on /dev/sda

smartctl 6.6 2017-05-03 r4430 [x86_64-w64-mingw32-2012r2] (daily-20170503)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

 [inquiry: 12 01 00 00 fc 00 ]
  Incoming data, len=252, resid=245:
 00     00 00 00 03 00 80 83 00  00 00 00 00 00 00 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 40     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 50     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 60     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 70     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 80     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 90     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 a0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 b0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 c0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 d0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 e0     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 f0     00 00 00 00 00 00 00 00  00 00 00 00
 [inquiry: 12 00 00 00 24 00 ]
  Incoming data, len=36, resid=0:
 00     00 00 05 02 5b 00 00 02  44 45 4c 4c 20 20 20 20
 10     50 45 52 43 20 35 2f 69  20 20 20 20 20 20 20 20
 20     31 2e 30 33
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
 [mode sense(6): 1a 00 1c 00 40 00 ]
  >>> Sense buffer, len=19:
 00     70 00 05 00 00 00 00 0b  00 00 00 00 24 00 00 00
 10     00 00 00
  status=2: sense_key=5 asc=24 ascq=0
  Incoming data, len=64, resid=0:
 00     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 10     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 20     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
 30     00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
unable to fetch IEC (SMART) mode page [unsupported field in scsi command]

comment:3 in reply to:  2 ; Changed 2 years ago by Christian Franke

... "Some Windows drivers for LSI based controllers reportedly support CSMI pass-through"
This part not clear as didn't find any example that sort out our issue using smartctl to read from RAID1 SMART values.

Try smartctl -r ioctl,2 --scan. If some disk driver supports CSMI, CSMI_SAS_DRIVER_INFO:... should appear in the output.

But "HDD Sentinel" can read all that, ...

as mentioned above: possibly because they signed a NDA to get the required documentation from the driver vendor.

not sure why your utility doesn't.

Because nobody provided the required documentation, sample source code or patch.

If that drivers issues what PERC 5/i or/and PERC 6 controllers should have drivers installed to fix read SMART attributes?

This is unknown. Pass-through support is typically not mentioned in driver release documentation as it is not required for normal I/O operation.

smartctl -T permissive -d scsi -A /dev/sda

This only accesses the logical SCSI drive emulated by the controller. RAID controllers always need extra (controller and platform specific) code to address physical drives behind the logical drive. See also the RAID controllers wiki page.

comment:4 in reply to:  3 ; Changed 2 years ago by Demo1

Try smartctl -r ioctl,2 --scan. If some disk driver supports CSMI, CSMI_SAS_DRIVER_INFO:... should appear in the output.

After this command executed results ouput with latest 6.6 version:

  • PERC 5/i with RAID1 (first controller):
smartctl -r ioctl,2 --scan
 \\.\PhysicalDrive0: successfully opened
  IOCTL_STORAGE_QUERY_PROPERTY returns:
    Vendor:   "DELL    "
    Product:  "PERC 5/i        "
    Revision: "1.03"
    Removable: No
    BusType:   0x08
  SMART_GET_VERSION failed, Error=1117
 \\.\Scsi0:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1
 \\.\Scsi1:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1
 \\.\Scsi2:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1117
/dev/sda -d scsi # /dev/sda, SCSI device
  • PERC 5/i with RAID0 (second controller):
C:\Users\Administrator>smartctl -r ioctl,2 --scan
 \\.\PhysicalDrive0: successfully opened
  IOCTL_STORAGE_QUERY_PROPERTY returns:
    Vendor:   "DELL    "
    Product:  "PERC 5/i        "
    Revision: "1.03"
    Removable: No
    BusType:   0x08
  SMART_GET_VERSION failed, Error=1117
 \\.\PhysicalDrive1: successfully opened
  IOCTL_STORAGE_QUERY_PROPERTY returns:
    Vendor:   "DELL    "
    Product:  "PERC 5/i        "
    Revision: "1.03"
    Removable: No
    BusType:   0x08
  SMART_GET_VERSION failed, Error=1117
 \\.\Scsi0:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1
 \\.\Scsi1:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1
 \\.\Scsi2:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1
 \\.\Scsi3:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1
 \\.\Scsi4:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1117
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device

  • PERC 6/i with RAID1 (third controller):
smartctl -r ioctl,2 --scan
 \\.\PhysicalDrive0: successfully opened
  IOCTL_STORAGE_QUERY_PROPERTY returns:
    Vendor:   "DELL    "
    Product:  "PERC 6/i        "
    Revision: "1.22"
    Removable: No
    BusType:   0x08
  SMART_GET_VERSION failed, Error=1117
 \\.\Scsi0:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1117
/dev/sda -d scsi # /dev/sda, SCSI device

If required more details we will try to provide if that helps to sort out SMART values to read.

Thanks

comment:5 in reply to:  4 Changed 2 years ago by Christian Franke

 ...
 \\.\Scsi1:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1
 \\.\Scsi2:: successfully opened
  IOCTL_SCSI_MINIPORT(CC_CSMI_1) failed, Error=1117
...

All CSMI GET_DRIVER_INFO calls fail with ERROR_INVALID_FUNCTION or ERROR_IO_DEVICE. So no driver on these systems provides CSMI support.

We cannot add support for PERC drivers unless someone provides the required info about the vendor specific pass-through functions.

comment:6 Changed 2 years ago by Alex Samorukov

Resolution: wontfix
Status: newclosed

Closing ticket - protocol is not known, no patch

comment:7 Changed 2 years ago by Christian Franke

Milestone: undecided

Please reopen this ticket if you could provide documentation or patch.

comment:8 Changed 2 years ago by Christian Franke

Tickets #702 and #740 have been marked as duplicates of this ticket.

Note: See TracTickets for help on using tickets.