>>> Ken Gaillot <[email protected]> schrieb am 16.04.2019 um 00:30 in
Nachricht
<[email protected]>:
[...]
> The cluster successfully probed the service on both nodes, and started
> it on node one. It then tried to start a 30‑second recurring monitor
> for the service, but the monitor immediately failed (the expected
> result was running, but the monitor said it was not running).
Using the ocf-tester for own agents is highly recommended IMHO. Here is some
old script of mine that I used to check my own multipath agent:
#RA=/usr/lib/ocf/resource.d/xola/multipath
RA=./multipath
if [ "$1" = "manual" ]; then
shift
OCF_ROOT=/usr/lib/ocf OCF_RESOURCE_INSTANCE=multipath \
OCF_RESKEY_mapname="3600508b4001085e30000f000034d0000" \
OCF_RESKEY_check_depth="10" \
OCF_RESKEY_iosched="noop" \
OCF_RESKEY_map_delay="5" \
OCF_RESKEY_udev_timeout="33" \
$RA "$@"
echo "Exit status is $?"
else
/usr/sbin/ocf-tester -n multipath \
-o mapname="3600508b4001085e30000f000034d0000" \
-o check_depth="10" \
-o iosched="noop" \
-o map_delay="5" \
-o udev_timeout="33" \
$RA
fi
---
So you can do a "./script manual start|stop|monitor", or let ocf-tester check
the whole orchestra ;-)
[...]
Regards,
Ulrich
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/