canonical / canonical/hardware-observer-operator

smartctl-exporter error: DELL or MegaRaid controller, please try adding '-d megaraid,N'"

Open
#498 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20
Forks
18
Avg merge
1d 5h
Merged PRs (30d)
3

Description

### Description

smartctl-exporter cannot check raid disks on DELL PERC H730P Adapter

### Charm revision

latest/stable

### Juju version

3.6.12

### Cloud

MAAS

### Expected behaviour

/de/sdm is a raid disk on the PRC controller. so Ii normally use:

smartctl -a -d megaraid,0 /dev/sdm
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.0-151-generic] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor: TOSHIBA
Product: AL15SEB060NY
Revision: EF09
Compliance: SPC-4
User Capacity: 600,127,266,816 bytes [600 GB]
Logical block size: 512 bytes
Formatted with type 2 protection
8 bytes of protection information per logical block
Rotation Rate: 10000 rpm
Form Factor: 2.5 inches
Logical Unit id: 0x5000039988323f79
Serial number: 79E0A1WGFQWF
Device type: disk
Transport protocol: SAS (SPL-3)
Local Time is: Fri Jan 9 10:12:15 2026 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK

Current Drive Temperature: 28 C
Drive Trip Temperature: 65 C

Accumulated power on time, hours:minutes 41180:50
Manufactured in week 28 of year 2019
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 104
Specified load-unload count over device lifetime: 600000
Accumulated load-unload cycles: 104
Elements in grown defect list: 0

Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 0 19 19 19 42 2154098.429 0
write: 0 0 0 0 0 175883.917 0
verify: 0 0 0 0 0 149600.518 0

Non-medium error count: 105

SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background long Completed - 2 - [- - -]
# 2 Background short Completed - 1 - [- - -]

Long (extended) Self-test duration: 3116 seconds [51.9 minutes]

### Reproduce / Test

install the charm in a DELL server with PERC H730P Adapter and create a raid disk

### Notes & References

full log
https://paste.ubuntu.com/p/TzfgZkY5yh/

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported smartctl command on a DELL PERC H730P RAID disk and review the full log at the linked paste. No source file, test, or entry point is named; done means the exporter can check and expose health for disks accessed with the megaraid device type.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.