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