ZFS Recovery bei Disk-Fehler

Um bei ZFS die Disks einfacher zu erkennen sollte die Seriennummer vor Einbau notiert werden. Dadurch kann bei einem Fehler die Disk einfacher erkannt und ausgetauscht werden

Status überprüfen

Via Proxmox Webinterface oder via CLI:

zpool status

Disk tauschen:

Die Fehlerhafte Disk aus dem Server ausbauen und neue einbauen. Danach die neue Disk suchen:

ls -l /dev/disk/by-id/

Neue Disk einbinden

Neue Disk in ZFS einbinden und resilver durchführen

# bestehendes Dateisystem auf neuer (falls vorhanden) Disk löschen
wipefs -a /dev/disk/by-id/<new_disk_id>

# Disk ersetzen
zpool replace rpool <failed_disk_id> /dev/disk/by-id/<new_disk_id>

Monitoring Resilvering Process

zpool status

Proxmox ZFS-Verschlüsselung aktivieren

Erstellen

# Encrypted Dataset erstellen
 
zpool create -f -o ashift=12 VMStoragePool mirror /dev/sdc /dev/sdd

zfs create -o encryption=on -o keyformat=passphrase VMStoragePool/VMStorage

pvesm add zfspool encryptedVMStorage -pool VMStoragePool/VMStorage

Nach Neustart neu Einbinden

zfs mount -l VMStoragePool/VMStorage

pvesm add zfspool encryptedVMStorage -pool VMStoragePool/VMStorage

HP Proliant Proxmox Treiber

Treiberinstallation/Serviceinstallation um die Lüftersteuerung zu verbessern.

bei den HP Treibern gibt es 2 Versionen

  1. Für Server der Generation 10 oder neuer: amsd
  2. Für Server bis zur Generation 9: hp-ams

Vorbereitung

apt-get install pciutils wmtemp lm-sensors

Generation 10 oder neuer

vi /etc/apt/sources.list

# Repository einfügen

deb http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current non-free

# Keys hinzufügen
curl http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub > hp1.key
curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub >hp2.key
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub > hp3.key
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub  >hp4.key

apt-key add /root/hp1.key
apt-key add /root/hp2.key
apt-key add /root/hp3.key
apt-key add /root/hp4.key

apt update
apt install amsd 

Generation 9 oder älter

apt-get update

wget -O- https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | gpg --dearmor > /usr/share/keyrings/hpePublicKey2048-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/hpePublicKey2048-archive-keyring.gpg] http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current non-free" > /etc/apt/sources.list.d/hpe.list
 

apt-get update && apt-get install ssa ssacli ssaducli storcli hponcfg

wget https://downloads.linux.hpe.com/SDR/repo/mcp/debian/pool/non-free/hp-ams_2.8.3-3056.1ubuntu16_amd64.deb

dpkg -i hp-ams_2.8.3-3056.1ubuntu16_amd64.deb

rm hp-ams_2.8.3-3056.1ubuntu16_amd64.deb

apt install hp-ams 

https://downloads.linux.hpe.com/SDR/project/mcp/

How to fix the missing HPE’s public keys | sleeplessbeastie’s notes

[citepress style=“apa“]