wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zipor
curl -LO https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zipunzip 8-07-14_MegaCLI.zipFor Debian
cd Linux
sudo alien MegaCli-8.07.14-1.noarch.rpm # convert from rpm to deb first
sudo dpkg -imegacli_8.07.14-2_all.debFor CentOS
sudo yum install MegaCli-8.07.14-1.noarch.rpmFor CentOS
sudo alternatives --install '/usr/bin/MegaCli64' 'MegaCli64' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo alternatives --install '/usr/bin/MegaCli' 'MegaCli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo alternatives --install '/usr/bin/megacli' 'megacli' '/opt/MegaRAID/MegaCli/MegaCli64' 1For Debian
sudo update-alternatives --install '/usr/bin/MegaCli64' 'MegaCli64' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo update-alternatives --install '/usr/bin/MegaCli' 'MegaCli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo update-alternatives --install '/usr/bin/megacli' 'megacli' '/opt/MegaRAID/MegaCli/MegaCli64' 1/opt/MegaRAID/MegaCli/MegaCli64 -h
MegaCli64 -h
MegaCli -h
megacli -h
You have to add the library to the path or add the path to the library search path and run
ldconfigto update the library. In my case it was in the '/opt/MegaRAID/MegaCli' directory where the library file was so I simply just added that to the '/etc/ld.so.conf' directory then ranldconfig. After doing so, no more library errors. Problem now is just finding the card. Hopefully whoever sees this later will not pull their hair out. I have to stick with the Debian base because Proxmox runs as a Debian system, not as a RedHat/Fedora/CentOS system.