On Wed, Nov 02, 2011 at 11:00:35AM -0500, Bruce Dubbs wrote:
> Ken Moffat wrote:
> 
> >  For dhcp, I can report on my changes for 4.2.2 if it's of interest.
> 
> It looks like 4.2.3 is current, but any changes from what's in the book 
> now would be appreciated.  I will need to update the boot/service 
> scripts to 7.0 semantics.
> 
 Will do.

 Meanwhile, I've just sorted out my nfs problem (the error messages
from rpc.mountd in the logs just basically mean "something is
wrong".
after the normal
 authenticated mount request
it then says
 internal: no supported addresses in nfs_client
 getfh failed: Operation not permitted

 The clue was on the console during boot - a message that
/proc/fs/nfsd is already mounted.  I suppose in 7.0 that will be
logged.  Looks as if exportfs is not run.

 Following patch fixes it for me - probably not necessary if the
server is running a 3.0 or later kernel, because the test is for
2.6, but no point in carrying old baggage that allows for a 2.4
kernel.

ĸen

diff -Naur a/blfs/init.d/nfs-server b/blfs/init.d/nfs-server
--- a/blfs/init.d/nfs-server    2006-09-11 01:41:47.000000000 +0100
+++ b/blfs/init.d/nfs-server    2011-11-02 16:43:10.000000000 +0000
@@ -27,15 +27,7 @@
                        loadproc /usr/sbin/rpc.rquotad
                fi
 
-               # NFSD support only in 2.6 kernel
-               /bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
-               if [ $? = 0 ]; then
-                       boot_mesg "Mounting nfsd virtual filesystem..."
-                       /bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
-                       evaluate_retval
-               fi
-
-               # Make ceratin that the list is refreshed on
+               # Make certain that the list is refreshed on
                # a restart.
                boot_mesg "Exporting NFS Filesystems..."
                /usr/sbin/exportfs -ra 2>&1 > /dev/null
@@ -62,14 +54,6 @@
                /usr/sbin/exportfs -au 2>&1 > /dev/null
                evaluate_retval
 
-               # NFSD support only in 2.6 kernel
-                /bin/uname -r | /bin/grep "2.6" 2>&1 > /dev/null
-                if [ $? = 0 ]; then
-                       boot_mesg "Unmounting NFS Virtual Filesystem..."
-                       /bin/umount /proc/fs/nfsd 2>&1 > /dev/null
-                       evaluate_retval
-               fi
-
                # Remove a pid file that isn't done automatically
                boot_mesg "Removing the rpc.statd pid file if it exists"
                if [ -f /var/run/rpc.statd.pid ]; then
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to