Howdy all, NOOB here.
I have created a simple setup script for the HPE G9 servers I am using in POC. I thought it might be useful, and also soliciting input/additions?
I have created a simple setup script for the HPE G9 servers I am using in POC. I thought it might be useful, and also soliciting input/additions?
Code:
#!/bin/bash
#After uploading or pasting make script executable by running "chmod u+x pvesetup.sh"
#The following lines are for HPE servers
echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp stretch/current non-free" > /etc/apt/sources.list.d/hp-mcp.list
wget -q -O - http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
wget -q -O - http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
wget -q -O - http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
wget -q -O - http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -
#The following lines add no-subscription repositories to APT configuration https://pve.proxmox.com/wiki/Package_Repositories
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" >> /etc/apt/sources.list
echo "deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription" >>/etc/apt/sources.list.d/ceph.list
#The following lines update the server, expect some errors/warnings as Enterprise repositories (paid) are still included in APT configuration
#There will be Y/n prompts
apt update
apt upgrade
#The following line installs HPE Smart Storage Administrator SSA
apt install ssacli
#the following line sets many HPE raid controllers to "HBA Mode", replace X with your correct slot
ssacli ctrl slot=X modify hbamode=on
#The following lines install dependencies
#There will be Y/n prompts
apt install lshw
apt install openvswitch-switch
apt install multipath-tools
Last edited: