Skip to contentSkip to conversation

Cluster Project branch, master, updated. gfs-kernel_0_1_22-111-gce24486

Cluster-devel [email protected] 1 participant 1 message Mar 31, 2008

lore
Share & tools
lore
#0 lore raw

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=ce24486a968d36e3c7852ba02a38384929ca809a

The branch, master has been updated

       via  ce24486a968d36e3c7852ba02a38384929ca809a (commit)
       via  04461948958ab1a505b66decd5221b389e27f22b (commit)
       via  2b6e388e72e6a35f2133c98a714dc49ab747cf80 (commit)
      from  543a08056e9f2d6189d1b85242343fb2fe6bf75b (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit ce24486a968d36e3c7852ba02a38384929ca809a

Author: Lon Hohberger <[email protected]>
Date:   Fri Mar 7 14:26:50 2008 -0500

[CMAN] Make cman init script start qdiskd intelligently

Resolves qdiskd/cman start ordering so gfs file systems are mounted reliably in 1-node+qdisk boot situations.

commit 04461948958ab1a505b66decd5221b389e27f22b

Author: Lon Hohberger <[email protected]>
Date:   Mon Mar 31 11:11:33 2008 -0400

Revert "[CMAN] Make cman init script start qdiskd intelligently"

This reverts commit 2b6e388e72e6a35f2133c98a714dc49ab747cf80.

Need review.

commit 2b6e388e72e6a35f2133c98a714dc49ab747cf80

Author: Lon Hohberger <[email protected]>
Date:   Fri Mar 7 14:26:50 2008 -0500

[CMAN] Make cman init script start qdiskd intelligently

Resolves qdiskd/cman start ordering so gfs file systems are mounted reliably in 1-node+qdisk boot situations.

-----------------------------------------------------------------------

Summary of changes:

 cman/init.d/cman.in |   32 ++++++++++++++++++++++++++++++++
 cman/init.d/qdiskd  |   21 +++++++++++++++++++--
 2 files changed, 51 insertions(+), 2 deletions(-)
cman/init.d/cman.in +32 -0
index e357934..a08d4dd 100644
@@ -107,6 +107,35 @@ start_cman()
     return 0
 }
 
+
+start_qdiskd()
+{
+    declare current_runlevel
+
+    current_runlevel=$(/sbin/runlevel 2>/dev/null | awk '{ print $2 }' 2>/dev/null)
+    #
+    # Start qdiskd before fenced to resolve bug #436381.  This only
+    # happens if qdiskd is configured to run in the runlevel we are in
+    #
+    /sbin/chkconfig --levels "$current_runlevel" qdiskd 2>/dev/null
+    if [ $? -ne 0 ]; then
+        # qdiskd doesn't start at this runlevel.
+        return 0
+    fi
+
+    echo -n "   Starting qdiskd... "
+    /sbin/service qdiskd start &> /dev/null
+    if [ $? -eq 0 ] 
+    then
+	echo "done"
+    else
+	echo "failed"
+	return 1
+    fi
+    return 0
+}
+
+
 start_daemons()
 {
     status groupd &> /dev/null
@@ -294,6 +323,9 @@ start()
 	echo "failed"
 	return 1
     fi
+
+    start_qdiskd
+
     echo -n "   Starting daemons... "
     start_daemons
     if [ $? -eq 0 ] 
cman/init.d/qdiskd +19 -2
index f1c02aa..0a2c97a 100755
@@ -19,9 +19,26 @@ retries=0
 # See how we were called.
 case "$1" in
   start)
-	action "Starting the Quorum Disk Daemon:" qdiskd -Q
+	echo -n "Starting the Quorum Disk Daemon:"
+
+	$0 status >/dev/null
+	if [ $? -eq 0 ]; then
+		echo_success
+		echo
+		exit 0
+	fi
+
+	qdiskd -Q
 	rtrn=$?
-	[ $rtrn = 0 ] && touch $LOCK_FILE
+	if [ $rtrn = 0 ]; then
+		touch $LOCK_FILE
+		echo_success
+		echo
+	else
+		echo_failure
+		echo
+	fi
+		
 	;;
 
   stop)

hooks/post-receive
--
Cluster Project