Hey folks, I am trying to get MAAS and SMART to identify and run SMART tests on a MegaRAID controller in MAAS 2.9.2, but not getting anywhere.
I’m using the smartctl-validate
test on /dev/sda
but it skips it with the following message:
INFO: Veriying SMART support for the following drive: /dev/sda
INFO: Running command: sudo -n smartctl --all /dev/sda
INFO: Unable to run test. The following drive does not support SMART: /dev/sda
I have ensured that the MegaRAID tool StorCLI
is installed before the tests run (see commissioning script below). I have also verified that SMART is able to correctly identify /dev/sda
if I keep the commissioned node on and run smartctl -d megaraid,0 /dev/sda -i
(see output below).
I see that the smartctl.py
testing scripts has support for MegaRAID which was introduced in 2.5.0 and also mentioned previously in Running SMART tests against MegaRAID controllers
What am I doing wrong here?
#!/bin/bash -ex
# --- Start MAAS 1.0 script metadata ---
# name: 00-install-storcli
# title: Install StorCLI for MegaRAID
# description: Install StorCLI for MegaRAID
# tags:
# - storcli
# timeout: 00:05:00
# hardware_type: storage
# parallel: disabled
# packages:
# url: https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/MR_SAS_Unified_StorCLI_007.1108.0000.0000.zip
# apt: unzip
# for_hardware: pci:1000:005f
# script_type: commissioning
# --- End MAAS 1.0 script metadata ---
STORCLI='/opt/MegaRAID/storcli/storcli64'
# Install StorCLI
unzip -o $DOWNLOAD_PATH/MR_SAS_Unified_StorCLI_007.1108.0000.0000.zip Ubuntu/storcli_007.1108.0000.0000_all.deb
dpkg --install $DOWNLOAD_PATH/Ubuntu/storcli_007.1108.0000.0000_all.deb
# Show everything
$STORCLI /call show all
Output from commissioning script 00-install-storcli
to confirm StorCLI
is working:
+ STORCLI=/opt/MegaRAID/storcli/storcli64
+ unzip -o /tmp/user_data.sh.TJJFfR/scripts/downloads/00-install-storcli/MR_SAS_Unified_StorCLI_007.1108.0000.0000.zip Ubuntu/storcli_007.1108.0000.0000_all.deb
Archive: /tmp/user_data.sh.TJJFfR/scripts/downloads/00-install-storcli/MR_SAS_Unified_StorCLI_007.1108.0000.0000.zip
inflating: Ubuntu/storcli_007.1108.0000.0000_all.deb
+ dpkg --install /tmp/user_data.sh.TJJFfR/scripts/downloads/00-install-storcli/Ubuntu/storcli_007.1108.0000.0000_all.deb
Selecting previously unselected package storcli.
(Reading database ... 31576 files and directories currently installed.)
Preparing to unpack .../storcli_007.1108.0000.0000_all.deb ...
Unpacking storcli (007.1108.0000.0000) ...
Setting up storcli (007.1108.0000.0000) ...
+ /opt/MegaRAID/storcli/storcli64 /call show all
Generating detailed summary of the adapter, it may take a while to complete.
CLI Version = 007.1108.0000.0000 July 17, 2019
Operating system = Linux 5.8.0-44-generic
Controller = 0
Status = Success
Description = None
Basics :
======
Controller = 0
Model = AVAGO MegaRAID SAS 9341-4i
Serial Number = SP93100610
Current Controller Date/Time = 03/16/2021, 19:24:58
Current System Date/time = 03/16/2021, 19:24:58
SAS Address = 500605b00f3de550
PCI Address = 00:af:00:00
Mfg Date = 08/06/19
Rework Date = 00/00/00
Revision No = 00I
ubuntu@hcc-store34:~$ sudo smartctl -d megaraid,0 /dev/sda -i
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-44-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Samsung based SSDs
Device Model: SAMSUNG MZ7KH240HAHQ-00005
Serial Number: S47LNA0M801402
LU WWN Device Id: 5 002538 e19830105
Firmware Version: HXM7404Q
User Capacity: 240,057,409,536 bytes [240 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Tue Mar 16 20:57:10 2021 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled