From 55c266316373efd984eb391d25bede8898620469 Mon Sep 17 00:00:00 2001 From: Kevin Adams Date: Sat, 1 Aug 2026 17:30:09 -0400 Subject: [PATCH] fix: restart pvestatd and HA daemons on install/remove pvedaemon/pveproxy picked up the patched PVE::Storage state, but pve-ha-lrm/pve-ha-crm kept running against the pre-install state, so HA-managed VMs on TrueNAS storage failed to start. pve-ha-lrm and pve-ha-crm don't support a `restart` subcommand (only start/stop/status), so they're restarted via systemctl instead. Confirmed root cause by mir07/deamonkai on #179; verified the full restart_pve_services() sequence end-to-end on pve01-hq before commit. Fixes #179 Co-Authored-By: Claude Sonnet 5 --- packaging/DEBIAN/postinst | 2 ++ packaging/DEBIAN/postrm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packaging/DEBIAN/postinst b/packaging/DEBIAN/postinst index a677476..9ca9301 100644 --- a/packaging/DEBIAN/postinst +++ b/packaging/DEBIAN/postinst @@ -42,6 +42,8 @@ restart_pve_services() { log "Restarting Proxmox VE services ..." pvedaemon restart && log "pvedaemon restarted" pveproxy restart && log "pveproxy restarted" + pvestatd restart && log "pvestatd restarted" + systemctl restart pve-ha-lrm pve-ha-crm && log "pve-ha-lrm, pve-ha-crm restarted" log "Done. Refresh your Proxmox browser tab." } diff --git a/packaging/DEBIAN/postrm b/packaging/DEBIAN/postrm index 33f191f..d666430 100644 --- a/packaging/DEBIAN/postrm +++ b/packaging/DEBIAN/postrm @@ -26,6 +26,8 @@ restart_pve_services() { log "Restarting Proxmox VE services ..." pvedaemon restart && log "pvedaemon restarted" pveproxy restart && log "pveproxy restarted" + pvestatd restart && log "pvestatd restarted" + systemctl restart pve-ha-lrm pve-ha-crm && log "pve-ha-lrm, pve-ha-crm restarted" } case "$1" in