Hi,

HealthSMART RA seems not working properly when you specified 'devices' option.
Suggest the attached patch.

Thanks,
-- 
Keisuke MORI
HealthSMART: fix devices option

diff -r cf4e9febed8e extra/resources/HealthSMART
--- a/extra/resources/HealthSMART	Wed Feb 23 14:52:34 2011 +0100
+++ b/extra/resources/HealthSMART	Wed Mar 02 18:45:22 2011 +0900
@@ -254,13 +254,13 @@ HealthSMART_monitor() {
             # Check drive temperature(s)
 	    if [ "${OCF_RESKEY_devices}" ]; then
 		for DEVICE in ${OCF_RESKEY_devices}; do
-		    check_temperature `$SMARTCTL $DEVICE -A ${DRIVE} | awk '/^194/ { print $10 }'`
+		    check_temperature `$SMARTCTL -d $DEVICE -A ${DRIVE} | awk '/^194/ { print $10 }'`
 		    if [ $? != 0 ]; then
 			return $OCF_SUCCESS
 		    fi
 		done
 	    else
-		check_temperature `$SMARTCTL $DEVICE -A ${DRIVE} | awk '/^194/ { print $10 }'`
+		check_temperature `$SMARTCTL -A ${DRIVE} | awk '/^194/ { print $10 }'`
 		if [ $? != 0 ]; then
 		    return $OCF_SUCCESS
 		fi
_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to