[Ocfs2-tools-commits] smushran commits r1148 - trunk/vendor/common
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Mon Jan 23 19:46:04 CST 2006
Author: smushran
Date: 2006-01-23 19:46:03 -0600 (Mon, 23 Jan 2006)
New Revision: 1148
Modified:
trunk/vendor/common/o2cb.init
Log:
o2cb.init checks existence of cluster.conf during online
Modified: trunk/vendor/common/o2cb.init
===================================================================
--- trunk/vendor/common/o2cb.init 2006-01-24 01:43:17 UTC (rev 1147)
+++ trunk/vendor/common/o2cb.init 2006-01-24 01:46:03 UTC (rev 1148)
@@ -17,6 +17,8 @@
# Force LC_ALL=C
export LC_ALL=C
+CLUSTERCONF=/etc/ocfs2/cluster.conf
+
if [ -f /etc/sysconfig/o2cb ]
then
# Red Hat and Novell
@@ -550,6 +552,12 @@
return
fi
+ if ! [ -f ${CLUSTERCONF} ]
+ then
+ echo -n "Checking cluster configuration : "
+ if_fail 1
+ fi
+
echo -n "Starting cluster ${CLUSTER}: "
OUTPUT="`o2cb_ctl -H -n "${CLUSTER}" -t cluster -a online=yes 2>&1`"
if [ $? = 0 ]
More information about the Ocfs2-tools-commits
mailing list