X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=contrib%2Fscripts%2Fpacemaker%2FhealthLNET;h=8ebf587c8b45e0bd7f69a9582adaa666dd7a14a2;hp=4676026148d3a3c1dc4187adf32c0e25ef3c036e;hb=6e299c2a3bd7566a322cf9bc9494f6850d2c1b7e;hpb=f93276d9a5b5df475c9f6007265692632d8e7222 diff --git a/contrib/scripts/pacemaker/healthLNET b/contrib/scripts/pacemaker/healthLNET index 4676026..8ebf587 100755 --- a/contrib/scripts/pacemaker/healthLNET +++ b/contrib/scripts/pacemaker/healthLNET @@ -187,16 +187,20 @@ END } ping_start() { - ping_monitor - if [ $? = $OCF_SUCCESS ]; then - return $OCF_SUCCESS - fi - touch ${OCF_RESKEY_pidfile} - ping_update + modprobe lustre + rc=$? + if [ $rc -ne 0 ]; then + return $OCF_ERR_INSTALLED + fi + ping_monitor + if [ $? = $OCF_SUCCESS ]; then + return $OCF_SUCCESS + fi + touch ${OCF_RESKEY_pidfile} + ping_update } ping_stop() { - rm -f ${OCF_RESKEY_pidfile} attrd_updater -D -n $OCF_RESKEY_name -d $OCF_RESKEY_dampen $attrd_options return $OCF_SUCCESS