Initiale Infrastruktur-Dokumentation pve1 und pve2.

Enthält Host-Doku, MQTT/HA, Git-Setup, Power-Monitoring und GPU-Idle (pve2).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
root
2026-06-27 19:53:55 +02:00
commit 6f52d46267
24 changed files with 1549 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
# Backup & Restore
## Durchgeführter Ablauf (2026-06-27)
### 1. Backup auf pve2
```bash
ssh root@192.168.10.4
vzdump 104 --mode snapshot --compress zstd --storage records
```
- Snapshot-Modus: OPNsense läuft während des Backups weiter
- Storage `records` (da `local` kein `backup`-Content mehr hat)
- Ergebnis: ~15 GB `.vma.zst`
### 2. Transfer nach pve1
```bash
scp root@192.168.10.4:/mnt/pve/records/dump/vzdump-qemu-104-*.vma.zst /var/lib/vz/dump/
```
### 3. Restore auf pve1
```bash
qmrestore /var/lib/vz/dump/vzdump-qemu-104-*.vma.zst 104 --storage local-lvm
```
### 4. Aufräumen
Backup-Datei nach erfolgreichem Restore gelöscht (~15 GB frei auf `/`).
## Bekannte Fallstricke
- Unterbrochener `qmrestore` hinterlässt verwaiste LVs (`vm-104-disk-*`) → manuell entfernen mit `lvremove -f`
- Vor Restore genug Platz prüfen: ~15 GB Backup + ~32 GB VM-Disk