-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
megaraid (storcli) Broadcom HBA is supported? #520
Comments
Thanks for reporting this. I'm guessing that the output of the command has changed. I'll update my test system to latest |
With pleasure. Just in case, recently I posted various outputs from another HBA variants, in netdata/netdata#14097 |
Same version of storcli is working on my setup. Can you please provide the full output of: /opt/hpe/storcli/storcli64 /c0 show all J Thanks! |
Attached hba.txt |
The current code is checking the "Capabilities" for
Your capabilities doesn't have this. Maybe we could put in a check for "Status"
instead. I'm wondering what else may not work, and why the output is so different even though we are using the exact same I think we could try something like: diff --git a/plugin/megaraid_plugin/megaraid.py b/plugin/megaraid_plugin/megaraid.py
index e40ce5d..eee7233 100644
--- a/plugin/megaraid_plugin/megaraid.py
+++ b/plugin/megaraid_plugin/megaraid.py
@@ -532,13 +532,24 @@ def systems(self, flags=Client.FLAG_RSVD):
ctrl_show_all_output["Version"]["Bios Version"],
ctrl_show_all_output["Version"]["Firmware Version"])
- if ctrl_show_all_output["Capabilities"]["Enable JBOD"] == "Yes":
- mode = System.MODE_HBA
+ if "Capabilities" in ctrl_show_all_output and \
+ "Enable JBOD" in ctrl_show_all_output["Capabilities"]:
+
+ if ctrl_show_all_output["Capabilities"]["Enable JBOD"] == "Yes":
+ mode = System.MODE_HBA
+ else:
+ mode = System.MODE_HARDWARE_RAID
+ # Notes for JBOD/HBA mode of MegaRAID:
+ # "storcli /c0/e9/s1 set jbod" require "storcli /c0 set jbod=on"
+ # be executed first.
+ elif "Status" in ctrl_show_all_output and \
+ "Current Personality" in ctrl_show_all_output["Status"]:
+ if ctrl_show_all_output["Status"]["Current Personality"] == "HBA-Mode ":
+ mode = System.MODE_HBA
+ else:
+ mode = System.MODE_HBA
else:
- mode = System.MODE_HARDWARE_RAID
- # Notes for JBOD/HBA mode of MegaRAID:
- # "storcli /c0/e9/s1 set jbod" require "storcli /c0 set jbod=on"
- # be excuted first.
+ mode = System.MODE_UNKNOWN
rc_lsm_syss.append(
System(sys_id,
Please let me know what works best for you to test this? I could probably build some rpm packages if that is helpful. Thanks! |
@k0ste There are some test rpms you can use if one works for you with the diff listed above. https://copr.fedorainfracloud.org/coprs/packit/libstorage-libstoragemgmt-521/build/5289288/ The RHEL7 build didn't work because the spec file being used isn't correct for py2 support, but I believe you're using an EL8 based install. |
Thanks for Now the tests: [root@host]# lsmcli ls -u 'local://'
ID | Name | Status | Info | FW Ver | Mode | Read Cache Percentage
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
01G1658 | PERC H330 Adapter PCI-E 00:19:00:00 | OK | | Package: 25.5.9.0001, BIOS: 6.33.01.0_4.19.08.00_0x06120304, FW: 4.300.01-8369 | HBA |
[root@host]# lsmcli ls -u 'local://' --type DISKS
ID | Name | Type | Size | Status | System ID | SCSI VPD 0x83 | Disk Paths | Revolutions Per Minute | Link Type
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
49P3K0OTFB8G | Disk 0 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993b802016 | /dev/sda | Rotating Medium Unknown Speed | PATA/SATA
49PPK14AFB8G | Disk 1 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993c301f28 | /dev/sdb | Rotating Medium Unknown Speed | PATA/SATA
49POK0VSFB8G | Disk 2 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993c28207f | /dev/sdc | Rotating Medium Unknown Speed | PATA/SATA
VCK18M8P | Disk 3 ATA WDC WUS721010ALE6L4 | SATA | 10000294477824 | OK | 01G1658 | 5000cca0b0eadb3f | /dev/sdd | Rotating Medium Unknown Speed | PATA/SATA
49PTK0SUFB8G | Disk 4 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993c501639 | /dev/sde | Rotating Medium Unknown Speed | PATA/SATA
49PPK14DFB8G | Disk 5 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993c301f2b | /dev/sdf | Rotating Medium Unknown Speed | PATA/SATA
49PPK15TFB8G | Disk 6 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993c301f7c | /dev/sdg | Rotating Medium Unknown Speed | PATA/SATA
49P5K0UOFB8G | Disk 7 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993b9028d6 | /dev/sdh | Rotating Medium Unknown Speed | PATA/SATA
49P4K0NJFB8G | Disk 8 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993b881887 | /dev/sdi | Rotating Medium Unknown Speed | PATA/SATA
49PQK11FFB8G | Disk 9 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993c3818fc | /dev/sdj | Rotating Medium Unknown Speed | PATA/SATA
49POK0VVFB8G | Disk 10 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993c282082 | /dev/sdk | Rotating Medium Unknown Speed | PATA/SATA
49P4K0OGFB8G | Disk 11 ATA TOSHIBA HDWE160 | SATA | 6000606183424 | OK | 01G1658 | 500003993b881928 | /dev/sdl | Rotating Medium Unknown Speed | PATA/SATA Seems now it works with Dell PowerEdge systems 🙂 |
@k0ste Thanks for testing. I'll merge this change and get it integrated into a release. If you have the time, please also check out other parts, to see if they work too. You mentioned originally that you're interested in changing LEDs. The megaraid plugin doesn't support this currently. See #479 for more discussion. Update: I see you already commented on that issue |
…rsion 1.9.8 Tony Asleson (11): Update configuration Adding support for packit.dev Update CI hpsa: Fix typo Reformat py with `make format` Megaraid: Handle missing 'Enable JBOD' in 'Capabilities' Add addl. targets Packit: remove el7 build new release Correction for fips error New release 1.9.8: Apr 17 2023 * FIPS correction libstorage/libstoragemgmt#528 1.9.7: Jan 27 2023 * Fix megaraid for PERC H330 Adapter libstorage/libstoragemgmt#520
VfBServer is an example |
Hi, I try to ident the fault drive with lsmcli & megaraid plugin, but
storcli is installed and works
Seems in #238 support was added and something wrong with my setup/docs?
The text was updated successfully, but these errors were encountered: