You are not logged in.
shazeal's fix works for me too. Excellent find, I've been wondering about this issue for some time now. Shazeal, where did you find this information?
:?
Offline
shazeal's fix was working, now apparently the script has changed and it's not working again. anyone have an update?
Offline
This is the patch I am using, works fine with current NFSD. The fix was taken from the Gentoo init script for NFSD.
--- /etc/rc.d/nfsd      2007-09-10 17:11:21.000000000 +1200
+++ /home/test/nfsd   2007-09-10 17:35:52.000000000 +1200
@@ -13,6 +13,14 @@
 case "$1" in
   start)
     stat_busy "Starting $DAEMON_NAME"
+
+    # This is the new "kernel 2.6 way" to handle the exports file
+    if grep -qs nfsd /proc/filesystems ; then
+        if ! grep -qs "^nfsd[[:space:]]/proc/fs/nfsd[[:space:]]" /proc/mounts ; then
+            mount -t nfsd nfsd /proc/fs/nfsd
+        fi
+    fi
+
     /usr/sbin/exportfs -r
     if [ ! -f /var/run/daemons/portmap ]; then 
                echo "ERROR: portmap is not running"
@@ -75,7 +83,11 @@
     #  kill -9 $RQUOTAD_PID &> /dev/null
     #  rm /var/run/rpc.rquotad.pid
     #fi
-    /usr/sbin/exportfs -au
+
+    if [ "$RUNLEVEL" = "0" ]; then
+      /usr/sbin/exportfs -au
+    fi
+
     rm_daemon $DAEMON_NAME
     stat_done
     ;;
@@ -84,6 +96,12 @@
     /usr/sbin/exportfs -au
     ;;
 
+   reload)
+     /usr/sbin/exportfs -au
+     sleep 2
+     ;;
   *)
     echo "usage: $0 {start|stop|restart}"  
 esacLast edited by shazeal (2007-09-10 05:42:28)
Offline
have you tried with the new nfs-utils package? it's not working for me with the new package. I also got this error while patching:
missing header for unified diff at line 3 of patch
patching file nfsd
Hunk #1 succeeded at 13 with fuzz 1.
patch: **** malformed patch at line 41:Offline
Here ya go, works fine with the newer package. ![]()
--- nfsd    2007-09-11 10:01:22.000000000 +1200
+++ nfsd.new    2007-09-22 12:01:08.000000000 +1200
@@ -13,6 +13,14 @@
 case "$1" in
   start)
     stat_busy "Starting $DAEMON_NAME"
+
+    # This is the new "kernel 2.6 way" to handle the exports file
+    if grep -qs nfsd /proc/filesystems ; then
+        if ! grep -qs "^nfsd[[:space:]]/proc/fs/nfsd[[:space:]]" /proc/mounts ; then
+            mount -t nfsd nfsd /proc/fs/nfsd
+        fi
+    fi
+
     /usr/sbin/exportfs -r
     if [ ! -f /var/run/daemons/portmap ]; then 
         echo "ERROR: portmap is not running"
@@ -75,7 +83,11 @@
     #  kill -9 $RQUOTAD_PID &> /dev/null
     #  rm /var/run/rpc.rquotad.pid
     #fi
-    /usr/sbin/exportfs -au
+
+    if [ "$RUNLEVEL" = "0" ]; then
+      /usr/sbin/exportfs -au
+    fi
+
     rm_daemon $DAEMON_NAME
     stat_done
     ;;
@@ -86,7 +98,12 @@
     $0 start
     ;;
 
+  reload)
+    /usr/sbin/exportfs -au
+    sleep 2
+    ;;   
+
   *)
-    echo "usage: $0 {start|stop|restart}"  
+    echo "usage: $0 {start|stop|restart|reload}"  
 esac
 exit 0Offline
People who participated to this thread might be interested in this :
http://archlinux.org/pipermail/arch-dev … 01756.html
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
Thanks 
. Also to shazeal, whose nfsd init script fix made my mounts work again 
.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Oh sweet, installed that new build it works great ![]()
Offline
slackhack - assuming the new 1.1.0-2 package works as intended for you, could you post a comment to that effect in Bug #7368? I'd like to close it.
Offline
Thanks for the work guys. I just got around to figuring out why I was being denied permision to mount a shared directory on a laptop running Debian Etch. I remembered scanning this article... Anyway, the work has already been done, restarted the service and I'm back in business.
Offline
I still have this problem with nfs-utils 1.1.3-2 with my shared pacman cache:
[root ~]# ls /var/cache/pacman/pkg 
ls: cannot access /var/cache/pacman/pkg: Permission denied
Hosts.allow got all these:
nfsd: ALL
portmap: ALL
mountd:ALL
Anyone else still got this problem?
Offline
I'm having this problem too with nfs-utils 1.2.2-3
It has been a couple years since last post, but the problem I'm having is the same reported here.
Offline
Please don't necro-bump: https://wiki.archlinux.org/index.php/Fo … Bumping.27
Open a new thread with all of the relevant details. Link to this one if there is an obvious correlation.
Closing
Offline