Skip to contentSkip to conversation

cluster/gfs2/init.d gfs2

Cluster-devel [email protected] 1 participant 1 message Jul 10, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: adas at sourceware.org 2006-07-10 22:17:48

Modified files:
gfs2/init.d : gfs2

Log message:
gfs2 init script. Minor changes. Works just fine

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/init.d/gfs2.diff?cvsroot=cluster&r1=1.1&r2=1.2

gfs2/init.d/gfs2 +4 -8
@@ -24,11 +24,6 @@
   start)
         if [ -n "$GFS2FSTAB" ] 
 	then
-		#load_module lock_harness MODULE_LOCK_HARNESS
-		#load_module crc32        MODULE_CRC32
-		#load_module lock_gulm    MODULE_LOCK_GULM
-		#load_module gfs2          MODULE_GFS2
-
 		action $"Mounting GFS2 filesystems: " mount -a -t gfs2
 	fi
 	touch /var/lock/subsys/gfs2
@@ -53,16 +48,17 @@
 			sleep 2
 			remaining=`LC_ALL=C awk '!/^#/ && $3 ~ /^gfs2/ && $2 != "/" {print $2}' /proc/mounts`
 			[ -z "$remaining" ] && break
-			/sbin/fuser -k -m $sig $remaining >/dev/null
+			/sbin/fuser -k -m $sig $remaining &> /dev/null
 			sleep 10
 			retry=$(($retry - 1))
 			sig=-9
 		done
 	fi
 
-	modprobe -r gfs2
-	modprobe -r lock_gulm
+	modprobe -r lock_nolock
 	modprobe -r lock_dlm
+	modprobe -r gfs2
+
 	rm -f /var/lock/subsys/gfs2
 	;;