diff --git a/docs/setup-guide.md b/docs/setup-guide.md index 959cdea..d04d78a 100644 --- a/docs/setup-guide.md +++ b/docs/setup-guide.md @@ -212,18 +212,26 @@ targets unconfigured physical disks. ### Install perccli -Try apt first — it's in the Proxmox repos: +`apt` does not carry perccli. Download the RPM from Dell and convert it: ```bash -apt install -y perccli -``` +# Download (referer header required — Dell blocks plain curl) +curl -L \ + --referer "https://www.dell.com/" \ + --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" \ + "https://dl.dell.com/FOLDER03559396M/1/perccli-1.17.10-1.noarch.rpm" \ + -o /tmp/perccli.rpm -If not found, download the `.deb` manually: go to `dell.com/support`, enter -your service tag, then Drivers → Storage → search "PERCCLI", download the -Linux package, copy it to the host, and install: +# Convert RPM → deb and install +apt install -y alien +alien --to-deb /tmp/perccli.rpm +dpkg -i /tmp/perccli_*.deb -```bash -dpkg -i perccli_*.deb +# Binary lands in /opt/MegaRAID/perccli/ — symlink it into PATH +ln -s /opt/MegaRAID/perccli/perccli64 /usr/local/bin/perccli + +# Verify +perccli show ``` ### Run the script diff --git a/scripts/perc-nonraid.sh b/scripts/perc-nonraid.sh index f0828d3..d343cfa 100755 --- a/scripts/perc-nonraid.sh +++ b/scripts/perc-nonraid.sh @@ -10,10 +10,14 @@ set -euo pipefail PERCCLI=$(command -v perccli || command -v perccli64 || true) if [[ -z "$PERCCLI" ]]; then - echo "perccli not found. Install options:" - echo " 1. apt install -y perccli (try this first — in Proxmox repos)" - echo " 2. Download from dell.com/support → enter service tag → Drivers → Storage" - echo " Look for 'PERCCLI' and download the Linux .deb, then: dpkg -i perccli_*.deb" + echo "perccli not found. Install it:" + echo " curl -L --referer 'https://www.dell.com/' \\" + echo " --user-agent 'Mozilla/5.0' \\" + echo " 'https://dl.dell.com/FOLDER03559396M/1/perccli-1.17.10-1.noarch.rpm' \\" + echo " -o /tmp/perccli.rpm" + echo " apt install -y alien && alien --to-deb /tmp/perccli.rpm" + echo " dpkg -i /tmp/perccli_*.deb" + echo " ln -s /opt/MegaRAID/perccli/perccli64 /usr/local/bin/perccli" exit 1 fi