[SOLVED] LSI Megaraid Storage Manager

Hello.
I got the same issue under new PVE 7.2 environment. Worked fine for my old setup which was installed two years ago.
Is there a way to allow Debian to use the folder /usr/local during installation?
Or is there another way to convert the .rpm to .deb?

root@kruemelv3:/disk# alien --scripts MegaRAID_Storage_Manager-17.05.00-02.noarch.rpm Package build failed. Here's the log: dh binary dh_update_autotools_config dh_autoreconf create-stamp debian/debhelper-build-stamp dh_testroot dh_prep debian/rules override_dh_auto_install make[1]: Entering directory '/disk/MegaRAID_Storage_Manager-17.05.00' mkdir -p debian/megaraid-storage-manager # Copy the packages's files. find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \ sed -e s#'./'##g | \ xargs -0 -r -i cp -a ./{} debian/megaraid-storage-manager/{} make[1]: Leaving directory '/disk/MegaRAID_Storage_Manager-17.05.00' dh_installdocs dh_installchangelogs dh_perl dh_usrlocal dh_usrlocal: error: Cannot generate a correct shell script for /usr/local/MegaRAID Storage Manager due to shell metacharacters make: *** [debian/rules:7: binary] Error 25
 
You are trying to install the wrong packages. You do not need the entire storage manager software.
You need the CLI MegaCli-8.07.14-1.noarch.rpm

You do not run the storage mananger app on the proxmox server just the CLI. You need a Windows machine and install the client on that. It then connects via IP address and you login and you can manage your RAID device.
 
Last edited:
  • Like
Reactions: kekzmobile
I had the problem to install LSI Storage Manager today. With a little trial&error I hope I didn't shuffle some of the steps :)

First download MSM Linux package from here: https://www.thomas-krenn.com/de/download.html?product=9975
Install some packages:
Code:
apt install sudo wget apt-transport-https alien
According to the readme you need Java 8:
Code:
mkdir /etc/apt/keyrings/
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8AC3B29174885C03
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update
apt install temurin-8-jdk
Install lib-utils2 from the MSM Linux package - converted with alien before (alien --script <filename>):
Code:
dpkg -i lib-utils2_1.00-12_all.deb
CSH Shell is needed for the install script:
Code:
apt install csh
LibSTDC++ should be installed in Proxmox, but in case it's not...
Code:
apt install libstdc++
A symlink to libstdc++6 is missing, so create it:
Code:
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/libstdc++.so.6
Give execute permissions to additional script files:
Code:
chmod +x RunRPM.sh
chmod +x deleteOldVersion.sh
Now install the MegaRAID Storage Manager
Code:
csh install.csh
--> the install script sets some environment variables, but fails to install
RPM for MegaRAID Storage Manager can be installed with the rpm command (gets installed with alien):
Code:
rpm -ivh ./MegaRAID_Storage_Manager-17.05.06-00.noarch.rpm --nodeps
Start the service and enable it at boot:
Code:
/etc/init.d/vivaldiframeworkd start
update-rc.d vivaldiframeworkd defaults
And now the SNMP-DEB (converted with alien) in case you need it:
Code:
apt install snmpd
dpkg -i sas-ir-snmp_17.05-4_amd64.deb
And at last I installed the MegaCLI, but I think it's only needed for CLI management: https://www.sven-mette.com/install-lsi-megaraid-storage-manger-on-proxmox-6-2/

I then installed MegaRAID Storage Manager Client on Windows, login took about two minutes.

Edit: The installation packages are not compliant with Debian, so alien throws errors for the MegaRAID Storage Manager rpm, see here: https://serverfault.com/questions/1...-for-debian-fails-due-to-shell-metacharacters
Edit2: It's not possible to configure monitoring through the Windows application, maybe someone knows better how to configure e-mail alerts?
 
Last edited:
  • Like
Reactions: webseregas