Hi, Linux-HA Developers
I am trying to use stonith plugin for pre-testing and encountered the
bad feature for external/ssh stonith plugin. It is that its plugin
waits for only 5 secs and maybe returns bad return code, especially
slow machine. Seeing ssh plugin source code ssh.c not external/ssh, it
waits for 15 secs by default. I think that external/ssh should be
following.
Best Regards
MATSUDA, Daiki
--- external/ssh.in.bk 2007-09-14 10:19:04.000000000 +0900
+++ external/ssh.in 2007-09-14 10:20:10.000000000 +0900
@@ -46,10 +46,12 @@
if
ping -w1 -c1 "$1" >/dev/null 2>&1
then
- return 1
+ sleep 1
+ else
+ return 0
fi
done
- return 0
+ return 1
}
case $1 in
@@ -86,7 +88,6 @@
then
exit 0
fi
- sleep 1
done
done
exit 1
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/