Package: initscripts
Version: 2.86.ds1-38
Severity: normal
Tags: patch

OCFS2 requires /etc/init.d/o2cb (from ocfs2-tools package) to be started
first. But current version /etc/network/if-up.d/mountnfs just tries to
mount ocfs2 just like any normal filesystem. More details sent to
debian-devel mailing list yesterday:
http://lists.debian.org/debian-devel/2007/05/msg00132.html

I've added few lines to my /etc/network/if-up.d/mountnfs and it works
for me.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-xen-686
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to pl_PL.UTF-8)

Versions of packages initscripts depends on:
ii  debianut 2.17                            Miscellaneous utilities specific t
ii  e2fsprog 1.39+1.40-WIP-2006.11.14+dfsg-2 ext2 file system utilities and lib
ii  libc6    2.3.6.ds1-13                    GNU C Library: Shared libraries
ii  lsb-base 3.1-23.1                        Linux Standard Base 3.1 init scrip
ii  mount    2.12r-19                        Tools for mounting and manipulatin
ii  sysvinit 2.86.ds1-38                     System-V-like utilities

Versions of packages initscripts recommends:
ii  psmisc                        22.3-1     Utilities that use the proc filesy

-- no debconf information
-- 
Pozdrawiam,                                      JID: [EMAIL PROTECTED]
Patryk Ściborek <[EMAIL PROTECTED]>     http://www.patryk.sciborek.com
Wolne [EMAIL PROTECTED]                      http://wo.student.pw.edu.pl
Sekta Adminów                                                 LU #189887
--- mountnfs	2007-05-06 19:40:50.966516904 +0000
+++ /etc/network/if-up.d/mountnfs	2007-05-06 17:03:30.000000000 +0000
@@ -28,6 +28,7 @@
 	exec 9<&0 </etc/fstab
 
 	portmap=no
+	o2cb=no
 	NETFS=""
 	NETDEV=""
 	gss_or_idmap=no
@@ -61,7 +62,10 @@
 				;;
 			esac
 			;;
-		  smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs)
+		  ocfs2)
+		  	o2cb=yes
+			;;
+		  smbfs|cifs|coda|ncp|ncpfs|gfs)
 			;;
 		  *)
 			FSTYPE=
@@ -105,6 +109,14 @@
 	fi
 
 	#
+	# Initialize OCFS2 cluster if we use OCFS2 mounts.
+	#
+	if [ "$o2cb" = yes ] && [ -x /etc/init.d/o2cb ]
+	then
+		PATH="/sbin:/usr/sbin:/bin:/usr/bin" /etc/init.d/o2cb start
+	fi
+
+	#
 	# Initialize nfs-common (which starts rpc.gssd and/or
 	# rpc.idmapd, and loads the right kernel modules if
 	# applicable) if we use Kerberos and/or NFSv4 mounts.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to