You are not logged in.

#26 2007-08-26 09:59:27

RedShift
Member
From: Belgium
Registered: 2004-07-16
Posts: 230

Re: possible bug in the arch NFS server package?

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

#27 2007-09-06 16:09:06

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: possible bug in the arch NFS server package?

shazeal's fix was working, now apparently the script has changed and it's not working again. anyone have an update?

Offline

#28 2007-09-10 05:40:23

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: possible bug in the arch NFS server package?

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}"  
 esac

Last edited by shazeal (2007-09-10 05:42:28)

Offline

#29 2007-09-20 16:54:39

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: possible bug in the arch NFS server package?

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

#30 2007-09-22 00:05:29

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: possible bug in the arch NFS server package?

Here ya go, works fine with the newer package. big_smile

--- 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 0

Offline

#31 2007-09-22 08:30:29

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: possible bug in the arch NFS server package?

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

#32 2007-09-22 09:19:31

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: possible bug in the arch NFS server package?

Thanks smile. Also to shazeal, whose nfsd init script fix made my mounts work again smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#33 2007-09-22 13:19:42

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: possible bug in the arch NFS server package?

Oh sweet, installed that new build it works great big_smile

Offline

#34 2007-09-23 23:03:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: possible bug in the arch NFS server package?

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

#35 2007-10-02 12:58:41

Echo
Member
From: Ohio, United States
Registered: 2006-05-16
Posts: 239

Re: possible bug in the arch NFS server package?

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

#36 2008-11-25 21:46:43

jordz
Member
Registered: 2006-02-01
Posts: 248

Re: possible bug in the arch NFS server package?

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

#37 2010-11-22 23:39:06

mclaud2000
Member
Registered: 2010-10-23
Posts: 4

Re: possible bug in the arch NFS server package?

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

#38 2010-11-23 00:54:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: possible bug in the arch NFS server package?

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


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB