Hi All,

This patch revises the next point. 

* Correction of the log wrong at the time of status practice.

Please confirm my patch. 
And please commit a patch. 

Best Regards, 
Hideo Yamauchi
diff -r 46f87af89d20 heartbeat/LVM
--- a/heartbeat/LVM     Mon Dec 05 19:21:11 2011 +0900
+++ b/heartbeat/LVM     Mon Dec 05 19:21:44 2011 +0900
@@ -162,12 +162,14 @@
   fi
 
   # Report on LVM volume status to stdout...
-  if
-    echo "$VGOUT" | grep -i 'Access.*read/write' >/dev/null
-  then
-    ocf_log debug "Volume $1 is available read/write (running)"
-  else
-    ocf_log debug "Volume $1 is available read-only (running)"
+  if [ $rc -eq 0 ]; then
+    if
+       echo "$VGOUT" | grep -i 'Access.*read/write' >/dev/null
+    then
+       ocf_log debug "Volume $1 is available read/write (running)"
+    else
+       ocf_log debug "Volume $1 is available read-only (running)"
+    fi
   fi
  
   return $OCF_SUCCESS
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to