While trying to setup a OCFS2 cluster using pacemaker+corosync+cman, we
found that the RA was unable to mount the FS because it didn't detect the
"cluster type", in this case cman.

The attached patch provided by Andrew Beekhof fixes the issue.

diff -r 71b1377f907c heartbeat/Filesystem
--- a/heartbeat/Filesystem Wed Oct 06 17:29:35 2010 +0200
+++ b/heartbeat/Filesystem Mon Feb 14 16:42:25 2011 +0100
@@ -307,7 +307,9 @@ ocfs2_init()
  # not need this:

  OCFS2_SLES10=""
- if [ "X$HA_cluster_type" != "Xopenais" ]; then
+ if [ "X$HA_cluster_type" = "Xcman" ]; then
+    return
+ elif [ "X$HA_cluster_type" != "Xopenais" ]; then
  if grep -q "SUSE Linux Enterprise Server 10" /etc/SuSE-release >/dev/null
2>&1 ; then
  OCFS2_SLES10="yes"
  ocf_log info "$DEVICE: Enabling SLES10 compatibility mode for OCFS2."

-- 
Andres Rodriguez (RoAkSoAx)
Ubuntu MOTU Developer
Systems Engineer
diff -r 71b1377f907c heartbeat/Filesystem
--- a/heartbeat/Filesystem	Wed Oct 06 17:29:35 2010 +0200
+++ b/heartbeat/Filesystem	Mon Feb 14 16:42:25 2011 +0100
@@ -307,7 +307,9 @@ ocfs2_init()
 	# not need this:
 
 	OCFS2_SLES10=""
-	if [ "X$HA_cluster_type" != "Xopenais" ]; then
+	if [ "X$HA_cluster_type" = "Xcman" ]; then
+	    return
+	elif [ "X$HA_cluster_type" != "Xopenais" ]; then
 		if grep -q "SUSE Linux Enterprise Server 10" /etc/SuSE-release >/dev/null 2>&1 ; then
 			OCFS2_SLES10="yes"
 			ocf_log info "$DEVICE: Enabling SLES10 compatibility mode for OCFS2."
_______________________________________________________
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