[Ocfs2-tools-commits] jlbec commits r1055 - trunk/vendor/common

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Aug 18 20:18:52 CDT 2005


Author: jlbec
Date: 2005-08-18 20:18:50 -0500 (Thu, 18 Aug 2005)
New Revision: 1055

Modified:
   trunk/vendor/common/o2cb.init
Log:
o Set heartbeat deadline from o2cb.init

Modified: trunk/vendor/common/o2cb.init
===================================================================
--- trunk/vendor/common/o2cb.init	2005-08-18 19:07:13 UTC (rev 1054)
+++ trunk/vendor/common/o2cb.init	2005-08-19 01:18:50 UTC (rev 1055)
@@ -92,6 +92,9 @@
 # O2CB_BOOTCLUSTER: If not empty, the name of a cluster to start.
 O2CB_BOOTCLUSTER=${O2CB_BOOTCLUSTER}
 
+# O2CB_HEARTBEAT_THRESHOLD: Iterations before a node is considered dead.
+O2CB_HEARTBEAT_THRESHOLD=${O2CB_HEARTBEAT_THRESHOLD}
+
 EOF
 
     if [ $? != 0 ]
@@ -480,6 +483,9 @@
         eval ${LOAD_ACTIONS[i]}
         if_fail "$?"
     done
+    if [ -n "$O2CB_HEARTBEAT_THRESHOLD" ]; then
+        echo "$O2CB_HEARTBEAT_THRESHOLD" > /proc/fs/ocfs2_nodemanager/hb_dead_threshold
+    fi
 }
 
 load_status()



More information about the Ocfs2-tools-commits mailing list