November 15, 20205 yr I would like to be able to check the status of my RAID card from Unraid. I can't figure out how to get any package installed... alien and rpm are both broken when I manage to get them on the system. How can I get megacli on the system?
November 20, 20205 yr 1 hour ago, elchorizo said: anyone have any advice on this? Unraid doesn't work well with RAID cards, it's much better to use plain HBA IT mode if your controller supports it. Unraid is built around having direct access to the drives without the RAID intermediate layer.
February 26, 20224 yr I came here because I too am looking for this. Not because I'm disagreeing with the point above, but because MegaCli can query information on the card from the cli which is very useful. I am currently trying to figure out why a raid cabinet is not hot swapping disks properly which has led me down a whole path with mpt2sas and mpt3sas which ended up me wanting this tool to get info. I think it would be great to have as part of nerd tools or something. e.g MegaCli64 -LDInfo -LALL -aALL
January 31, 20233 yr Hi, Old post, but just throught I would share. To get MegaCLI running on my Unraid server I did the following: 1. Downloaded MegaCLI for linux from here: https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip 2. Unzipped the fil on a Windows machine 3. Found the RPM file for Linux in the archive and used 7z to unpack the RPM file. 4. Copied all three files in the RPM to a folder on Unraid 5. Opened an SSH to the server and changed dir to where i placed the files 6 ran: chmod 777 MegaCli64 7 ran: ./MegaCli64 -h That's it. Nothing really needs to be installed. I tried to change the rebuild speed and check info on disks etc. and all works as expected Hope this helps Happy MegaCli'ing. /Christian
March 17, 20242 yr I know this is an old topic, but some will probably end up here like I did with a search. I was able to use the Linux binaries for storcli from Broadcom to check full status, along with temperature using the steps above with this zip. I used the 64 bit binary under the Linux folder and chmod 777 to make it executable once copied to the /tmp folder on unraid. This worked for a 9300-8i https://docs.broadcom.com/docs/1232743501 ./storcli64 /c0 show temperature CLI Version = 007.2707.0000.0000 Dec 18, 2023 Operating system = Linux 6.1.74-Unraid Controller = 0 Status = Success Description = None Controller Properties : ===================== -------------------------------------- Ctrl_Prop Value -------------------------------------- ROC temperature(Degree Celsius) 44 --------------------------------------
January 1, 20251 yr Replying to energyx's post here.. You mention getting the storcli utility from the Broadcom site, but don't detail how to actually find it in the downloaded zip archive. The readme files say to use "rpm" which UnRAID does not have. Anyway, I figured it out, here's what you do for anyone else searching for this. Note: I used 7zip on my Windows desktop for the extraction steps. 1. Unzip the file downloaded from Broadcom site at the given link (SAS35_StorCLI_7_27-007.2707.0000.0000.zip) 2. It has another zip file inside, "Unified_storcli_all_os.zip". Locate and unzip this. 3. Within this, locate folder "Linux" 4. File "storcli-007.2707.0000.0000-1.noarch.rpm" is here. Extract this with 7zip. 5. File "storcli-007.2707.0000.0000-1.noarch.cpio" is extracted. Extract this with 7zip. 6. Folder "opt" will be extracted. Navigate through to "opt\MegaRAID\storcli" 7. You will find file "storcli64" here. Copy this file to your UnRAID server. For example, I placed it in /root/ (Can use a SSH/SFTP client for this, e.g. WinSCP) 8. Once the file is on your server, SSH to it, enter root (su), navigate to the folder you placed the file 9. Give it executable permissions: chmod u+x storcli64 That's it. Now you can simply run it from whatever folder you're in. I came here for the exact same reason - to monitor the HBA's temp. Very handy. Thankyou!
May 30, 20251 yr very handy! Thanks guys. I can add something to this.The LSI9300-16i for example has 2 controllers. To show them with one command:./storcli64 /c0-1 show temperature
May 31, 20251 yr Good tip @gloeckle !I recently upgraded to a 9600-24i. This controller requires the newer "storcli2" (Link).You can download the zip from Broadcom and extract it just like the storcli steps I gave above (filenames may vary a little bit of course but it's obvious enough where to go when you attempt it).Unfortunately, storcli2 doesn't have a dedicated "show temperature" command that I can find, you need to grep it from the full output. I run command:storcli2 /c0 show all nolog | grep -iF "Chip temp"Strongly suggest to specify "nolog", otherwise storcli2 will annoyingly write a ~1MB log file every time it's run in the present working directory.This command could be further modified, e.g. if you just want the integer value without leading text.To streamline things, I did the following:1. Added "storcli2" executable to my Unraid USB at "/boot/config/utils"2. Created "/boot/config/hbatemp.sh" with the above command, like so:#!/bin/bash storcli2 /c0 show all nolog | grep -iF "Chip temp"3. Added the following to "/boot/config/go" to automatically copy the utility upon boot for persistence:# setup storcli2 utility cp /boot/config/utils/storcli2 /usr/local/sbin/storcli2 && chmod u+x /usr/local/sbin/storcli2 cp /boot/config/hbatemp.sh /usr/local/sbin/hbatemp.sh && chmod u+x /usr/local/sbin/hbatemp.sh Now I can just run "hbatemp.sh" anywhere via SSH to get HBA Temp.I'm sure these steps could be adapted to the older storcli / storcli64 as well. Edited May 31, 20251 yr by Rake
August 10, 2025Aug 10 For 9207-8i is not working :storcli-007.2707.0000.0000-1.noarch.rpmCLI Version = 007.2707.0000.0000 Dec 18, 2023 Operating system = Linux 6.12.24-Unraid Status = Failure Description = No Controller found Edited August 10, 2025Aug 10 by Masterwishx
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.