Skip to content

access to drives behind RAID controller #5

@lokapal

Description

@lokapal

How could we add the drives that are behind RAID controller to the monitoring? They already are added to the smartd.conf. Notation is the following one:
/dev/sda -d megaraid,4 -a etcetcetc...
/dev/sda -d megaraid,5 -a etcetcetc...
/dev/sda -d megaraid,6 -a etcetcetc...
/dev/sda -d megaraid,7 -a etcetcetc...
or
/dev/sdb -d 3ware,0 -a etcetcetc...
/dev/sdb -d 3ware,1 -a etcetcetc...
/dev/sdb -d 3ware,2 -a etcetcetc...
/dev/sdb -d 3ware,3 -a etcetcetc...

Are there any possibility to add/create the .conf file with the drive list for monitoring?

I've tried the following code
REGEX_DISCPATH = re.compile("(sd[b-z]+|sda -d megaraid,[4-7]+)$")
for my case, but, unfortunately, it doesn't see the HDD behind megaraid. The log of direct contact with hdd follows:
smartctl /dev/sda -d megaraid,4 -a

Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba MG08ADA... Enterprise Capacity HDD
Device Model:     TOSHIBA MG08ADA400N
Serial Number:    12V0A22ZFYPG
LU WWN Device Id: 5 000039 b68d93cd7
Firmware Version: 4302
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon May  5 01:13:14 2025
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: ATA return descriptor not supported by controller firmware
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (  120) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 412) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0027   100   100   001    Pre-fail  Always       -       8460
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       20
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   050    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   056   056   000    Old_age   Always       -       17890
 10 Spin_Retry_Count        0x0033   100   100   030    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       20
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       18
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       19
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       22
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       27 (Min/Max 13/41)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
220 Disk_Shift              0x0002   100   100   000    Old_age   Always       -       17694722
222 Loaded_Hours            0x0032   056   056   000    Old_age   Always       -       17797
223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
224 Load_Friction           0x0022   100   100   000    Old_age   Always       -       0
226 Load-in_Time            0x0026   100   100   000    Old_age   Always       -       516
240 Head_Flying_Hours       0x0001   100   100   001    Pre-fail  Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     17872         -
# 2  Extended offline    Completed without error       00%     17704         -
# 3  Extended offline    Completed without error       00%     17686         -
# 4  Extended offline    Completed without error       00%     13673         -
# 5  Extended offline    Completed without error       00%     13505         -
# 6  Extended offline    Completed without error       00%     13337         -
# 7  Extended offline    Completed without error       00%     13169         -
# 8  Extended offline    Completed without error       00%     13001         -
# 9  Extended offline    Completed without error       00%     12833         -
#10  Extended offline    Completed without error       00%     12665         -
#11  Extended offline    Completed without error       00%     12497         -
#12  Extended offline    Completed without error       00%     12329         -
#13  Extended offline    Completed without error       00%     12161         -
#14  Extended offline    Completed without error       00%     11993         -
#15  Extended offline    Completed without error       00%     11825         -
#16  Extended offline    Completed without error       00%     11657         -
#17  Extended offline    Completed without error       00%     11489         -
#18  Extended offline    Completed without error       00%     11321         -
#19  Extended offline    Completed without error       00%     11153         -
#20  Extended offline    Completed without error       00%     10985         -
#21  Extended offline    Completed without error       00%     10817         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions