From 4f0b07031dbf2c4da5ec2632f75e7996428742f3 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Wed, 29 Jul 2026 19:09:27 +1000 Subject: [PATCH] fix(ha): add NFS port check on storage VIP in health.sh 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 Claude-Session: https://claude.ai/code/session_01J8djTWdXVzXZc99iujU6T2 --- scripts/ha/health.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/ha/health.sh b/scripts/ha/health.sh index d5a4a1e..abada2d 100755 --- a/scripts/ha/health.sh +++ b/scripts/ha/health.sh @@ -163,8 +163,8 @@ else printf " %-10s port %-5s UNREACHABLE\n" "NFS" "2049" fi -# ── Storage VIP (iSCSI) — VLAN 20 internal bridge, tested via active node ───── -section "Storage VIP ($VIP) — iSCSI (via ${ACTIVE_NODE:-unknown})" +# ── Storage VIP (NFS + iSCSI) — VLAN 20 internal bridge, tested via active node ─ +section "Storage VIP ($VIP) — NFS + iSCSI (via ${ACTIVE_NODE:-unknown})" run_active_raw() { local active_ip="" @@ -183,6 +183,11 @@ else else echo " Ping UNREACHABLE" 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 printf " %-10s port %-5s OK\n" "iSCSI" "3260" else