fix(ha): add NFS port check on storage VIP in health.sh
Check NixOS configurations / eval-hosts (push) Successful in 10m23s

Storage VIP now serves both NFS and iSCSI. Add port 2049 check
alongside the existing 3260 check in the storage VIP section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8djTWdXVzXZc99iujU6T2
This commit is contained in:
2026-07-29 19:09:27 +10:00
co-authored by Claude Sonnet 4.6
parent 8c86144694
commit 4f0b07031d
+7 -2
View File
@@ -163,8 +163,8 @@ else
printf " %-10s port %-5s UNREACHABLE\n" "NFS" "2049" printf " %-10s port %-5s UNREACHABLE\n" "NFS" "2049"
fi fi
# ── Storage VIP (iSCSI) — VLAN 20 internal bridge, tested via active node ──── # ── Storage VIP (NFS + iSCSI) — VLAN 20 internal bridge, tested via active node ─
section "Storage VIP ($VIP) — iSCSI (via ${ACTIVE_NODE:-unknown})" section "Storage VIP ($VIP) — NFS + iSCSI (via ${ACTIVE_NODE:-unknown})"
run_active_raw() { run_active_raw() {
local active_ip="" local active_ip=""
@@ -183,6 +183,11 @@ else
else else
echo " Ping UNREACHABLE" echo " Ping UNREACHABLE"
fi fi
if run_active_raw "bash -c 'echo >/dev/tcp/${VIP}/2049' 2>/dev/null"; then
printf " %-10s port %-5s OK\n" "NFS" "2049"
else
printf " %-10s port %-5s UNREACHABLE\n" "NFS" "2049"
fi
if run_active_raw "bash -c 'echo >/dev/tcp/${VIP}/3260' 2>/dev/null"; then if run_active_raw "bash -c 'echo >/dev/tcp/${VIP}/3260' 2>/dev/null"; then
printf " %-10s port %-5s OK\n" "iSCSI" "3260" printf " %-10s port %-5s OK\n" "iSCSI" "3260"
else else