cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2007-12-19 20:54 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2007-12-19 20:54 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2007-12-19 20:54:07

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	fix typo in clusterfs.sh

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&r1=1.21&r2=1.22

--- cluster/rgmanager/src/resources/clusterfs.sh	2007/12/05 17:42:48	1.21
+++ cluster/rgmanager/src/resources/clusterfs.sh	2007/12/19 20:54:07	1.22
@@ -918,7 +918,7 @@
 	while [ $tries -lt 3 ]; do
 		startFilesystem
 		rv=$?
-		if [ rv -eq 0 ]; then
+		if [ $rv -eq 0 ]; then
 			exit 0
 		fi
 



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2007-12-19 20:53 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2007-12-19 20:53 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	lhh at sourceware.org	2007-12-19 20:53:35

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	fix typo in clusterfs.sh

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.15.2.5&r2=1.15.2.6

--- cluster/rgmanager/src/resources/clusterfs.sh	2007/12/05 17:42:11	1.15.2.5
+++ cluster/rgmanager/src/resources/clusterfs.sh	2007/12/19 20:53:35	1.15.2.6
@@ -918,7 +918,7 @@
 	while [ $tries -lt 3 ]; do
 		startFilesystem
 		rv=$?
-		if [ rv -eq 0 ]; then
+		if [ $rv -eq 0 ]; then
 			exit 0
 		fi
 



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2007-12-05 17:42 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2007-12-05 17:42 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2007-12-05 17:42:49

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Preliminary GFS2 support in clusterfs.sh

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&r1=1.20&r2=1.21

--- cluster/rgmanager/src/resources/clusterfs.sh	2007/11/30 20:06:55	1.20
+++ cluster/rgmanager/src/resources/clusterfs.sh	2007/12/05 17:42:48	1.21
@@ -288,7 +288,7 @@
 	[ -z "$OCF_RESKEY_fstype" ] && return $OCF_SUCCESS
 
 	case $OCF_RESKEY_fstype in
-	gfs)
+	gfs|gfs2)
 		return $OCF_SUCCESS
 		;;
 	*)
@@ -333,8 +333,13 @@
 					;;
 			esac
 			;;
+		gfs2)
+			# XXX
+			continue
+			;;
 		esac
 
+
 		ocf_log err "Option $o not supported for $OCF_RESKEY_fstype"
 		ret=$OCF_ERR_ARGS
 	done



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2007-12-05 17:42 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2007-12-05 17:42 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	lhh at sourceware.org	2007-12-05 17:42:11

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Preliminary GFS2 support in clusterfs.sh

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.15.2.4&r2=1.15.2.5

--- cluster/rgmanager/src/resources/clusterfs.sh	2007/11/30 19:44:34	1.15.2.4
+++ cluster/rgmanager/src/resources/clusterfs.sh	2007/12/05 17:42:11	1.15.2.5
@@ -288,7 +288,7 @@
 	[ -z "$OCF_RESKEY_fstype" ] && return $OCF_SUCCESS
 
 	case $OCF_RESKEY_fstype in
-	gfs)
+	gfs|gfs2)
 		return $OCF_SUCCESS
 		;;
 	*)
@@ -333,8 +333,13 @@
 					;;
 			esac
 			;;
+		gfs2)
+			# XXX
+			continue
+			;;
 		esac
 
+
 		ocf_log err "Option $o not supported for $OCF_RESKEY_fstype"
 		ret=$OCF_ERR_ARGS
 	done



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2007-11-13 17:38 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2007-11-13 17:38 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL5
Changes by:	lhh at sourceware.org	2007-11-13 17:38:02

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Add self_fence support to RHEL5 branch for clusterfs

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.15.2.2&r2=1.15.2.3

--- cluster/rgmanager/src/resources/clusterfs.sh	2007/05/21 15:57:29	1.15.2.2
+++ cluster/rgmanager/src/resources/clusterfs.sh	2007/11/13 17:38:02	1.15.2.3
@@ -133,6 +133,18 @@
 	    <content type="string"/>
         </parameter>
 
+	<parameter name="self_fence">
+	    <longdesc lang="en">
+	        If set and unmounting the file system fails, the node will
+		immediately reboot.  Generally, this is used in conjunction
+		with force-unmount support, but it is not required.
+	    </longdesc>
+	    <shortdesc lang="en">
+	        Seppuku Unmount
+	    </shortdesc>
+	    <content type="boolean"/>
+	</parameter>
+
 	<parameter name="fsid">
 	    <longdesc lang="en">
 	    	File system ID for NFS exports.  This can be overridden
@@ -795,6 +807,15 @@
 		esac
 	fi
 
+	if [ -n "$mp" ]; then
+		case ${OCF_RESKEY_self_fence} in
+	        $YES_STR)	self_fence=$YES ;;
+		1)		self_fence=$YES ;;
+	        *)		self_fence="" ;;
+		esac
+	fi
+
+
 	#
 	# Always do this hackery on clustered file systems.
 	#
@@ -870,8 +891,13 @@
 	done # while 
 
 	if [ -n "$umount_failed" ]; then
-		ocf_log err "'umount $dev' failed ($mp), error=$ret_val"
+		ocf_log err "'umount $mp' failed, error=$ret_val"
 
+		if [ "$self_fence" ]; then
+			ocf_log alert "umount failed - REBOOTING"
+			sync
+			reboot -fn
+		fi
 		return $FAIL
 	fi
 



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2006-11-27 22:12 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2006-11-27 22:12 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	lhh at sourceware.org	2006-11-27 22:12:27

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Fix error reporting (#202634)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.11&r2=1.1.2.12

--- cluster/rgmanager/src/resources/clusterfs.sh	2006/10/20 20:34:25	1.1.2.11
+++ cluster/rgmanager/src/resources/clusterfs.sh	2006/11/27 22:12:27	1.1.2.12
@@ -898,7 +898,7 @@
  	isAlive ${OCF_RESKEY_mountpoint}
  	[ $? -eq $YES ] && exit 0
 
-	ocf_log err "fs:${OCF_RESKEY_name}: Mount point is not accessible!"
+	ocf_log err "clusterfs:${OCF_RESKEY_name}: Mount point is not accessible!"
 	exit $OCF_ERR_GENERIC
 	;;
 restart)



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2006-10-25 15:38 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2006-10-25 15:38 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2006-10-25 15:38:55

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Fix #212074

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&r1=1.14&r2=1.15

--- cluster/rgmanager/src/resources/clusterfs.sh	2006/10/20 20:58:43	1.14
+++ cluster/rgmanager/src/resources/clusterfs.sh	2006/10/25 15:38:55	1.15
@@ -836,7 +836,7 @@
 			sync; sync; sync
 			ocf_log info "unmounting $dev ($mp)"
 
-			umount $dev
+			umount $mp
 			if  [ $? -eq 0 ]; then
 				umount_failed=
 				done=$YES



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2006-10-20 20:58 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2006-10-20 20:58 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2006-10-20 20:58:43

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Roll back patch to clusterfs.sh

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&r1=1.13&r2=1.14

--- cluster/rgmanager/src/resources/clusterfs.sh	2006/10/20 20:36:02	1.13
+++ cluster/rgmanager/src/resources/clusterfs.sh	2006/10/20 20:58:43	1.14
@@ -890,16 +890,12 @@
 	;;
 status|monitor)
   	isMounted ${OCF_RESKEY_device} ${OCF_RESKEY_mountpoint}
- 	if [ $? -ne $YES ]; then
-		ocf_log err "fs:${OCF_RESKEY_name}: ${OCF_RESKEY_device} is not mounted on ${OCF_RESKEY_mountpoint}"
-		exit $OCF_ERR_GENERIC
-	fi
+ 	[ $? -ne $YES ] && exit $OCF_ERR_GENERIC
 
  	isAlive ${OCF_RESKEY_mountpoint}
- 	[ $? -eq $YES ] && exit 0
-
-	ocf_log err "fs:${OCF_RESKEY_name}: Mount point is not accessible!"
-	exit $OCF_ERR_GENERIC
+ 	[ $? -ne $YES ] && exit $OCF_ERR_GENERIC
+ 	
+	exit 0
 	;;
 restart)
 	stopFilesystem



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2006-10-20 20:36 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2006-10-20 20:36 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2006-10-20 20:36:02

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Fix 202637 - error reporting missing from some agents

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&r1=1.12&r2=1.13

--- cluster/rgmanager/src/resources/clusterfs.sh	2006/10/16 14:39:02	1.12
+++ cluster/rgmanager/src/resources/clusterfs.sh	2006/10/20 20:36:02	1.13
@@ -890,12 +890,16 @@
 	;;
 status|monitor)
   	isMounted ${OCF_RESKEY_device} ${OCF_RESKEY_mountpoint}
- 	[ $? -ne $YES ] && exit $OCF_ERR_GENERIC
+ 	if [ $? -ne $YES ]; then
+		ocf_log err "fs:${OCF_RESKEY_name}: ${OCF_RESKEY_device} is not mounted on ${OCF_RESKEY_mountpoint}"
+		exit $OCF_ERR_GENERIC
+	fi
 
  	isAlive ${OCF_RESKEY_mountpoint}
- 	[ $? -ne $YES ] && exit $OCF_ERR_GENERIC
- 	
-	exit 0
+ 	[ $? -eq $YES ] && exit 0
+
+	ocf_log err "fs:${OCF_RESKEY_name}: Mount point is not accessible!"
+	exit $OCF_ERR_GENERIC
 	;;
 restart)
 	stopFilesystem



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2006-10-16 14:39 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2006-10-16 14:39 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	lhh at sourceware.org	2006-10-16 14:39:02

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Fix #209544 - umount failing on gfs/nfs services

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&r1=1.11&r2=1.12

--- cluster/rgmanager/src/resources/clusterfs.sh	2006/08/18 15:26:22	1.11
+++ cluster/rgmanager/src/resources/clusterfs.sh	2006/10/16 14:39:02	1.12
@@ -802,6 +802,7 @@
 	   [ "$OCF_RESKEY_nfslock" = "1" ]; then
 		ocf_log warning "Dropping node-wide NFS locks"
 		mkdir -p $mp/.clumanager/statd
+		pkill -KILL -x lockd
 		# Copy out the notify list; our 
 		# IPs are already torn down
 		if notify_list_store $mp/.clumanager/statd; then
@@ -889,16 +890,12 @@
 	;;
 status|monitor)
   	isMounted ${OCF_RESKEY_device} ${OCF_RESKEY_mountpoint}
- 	if [ $? -ne $YES ]; then
-		ocf_log err "fs:${OCF_RESKEY_name}: ${OCF_RESKEY_device} is not mounted on ${OCF_RESKEY_mountpoint}"
-		exit $OCF_ERR_GENERIC
-	fi
+ 	[ $? -ne $YES ] && exit $OCF_ERR_GENERIC
 
  	isAlive ${OCF_RESKEY_mountpoint}
- 	[ $? -eq $YES ] && exit 0
-
-	ocf_log err "fs:${OCF_RESKEY_name}: Mount point is not accessible!"
-	exit $OCF_ERR_GENERIC
+ 	[ $? -ne $YES ] && exit $OCF_ERR_GENERIC
+ 	
+	exit 0
 	;;
 restart)
 	stopFilesystem



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh
@ 2006-10-06 15:43 lhh
  0 siblings, 0 replies; 11+ messages in thread
From: lhh @ 2006-10-06 15:43 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4U4
Changes by:	lhh at sourceware.org	2006-10-06 15:43:58

Modified files:
	rgmanager/src/resources: clusterfs.sh 

Log message:
	Port 208656 from RHEL4 branch

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/clusterfs.sh.diff?cvsroot=cluster&only_with_tag=RHEL4U4&r1=1.1.2.9&r2=1.1.2.9.2.1

--- cluster/rgmanager/src/resources/clusterfs.sh	2006/06/16 19:57:52	1.1.2.9
+++ cluster/rgmanager/src/resources/clusterfs.sh	2006/10/06 15:43:58	1.1.2.9.2.1
@@ -802,6 +802,7 @@
 	   [ "$OCF_RESKEY_nfslock" = "1" ]; then
 		ocf_log warning "Dropping node-wide NFS locks"
 		mkdir -p $mp/.clumanager/statd
+		pkill -KILL -x lockd
 		# Copy out the notify list; our 
 			# IPs are already torn down
 			if notify_list_store $mp/.clumanager/statd; then



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-12-19 20:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 20:54 [Cluster-devel] cluster/rgmanager/src/resources clusterfs.sh lhh
  -- strict thread matches above, loose matches on Subject: below --
2007-12-19 20:53 lhh
2007-12-05 17:42 lhh
2007-12-05 17:42 lhh
2007-11-13 17:38 lhh
2006-11-27 22:12 lhh
2006-10-25 15:38 lhh
2006-10-20 20:58 lhh
2006-10-20 20:36 lhh
2006-10-16 14:39 lhh
2006-10-06 15:43 lhh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).