Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Apr 2008 19:02:06 +0800
From:      Nawfal bin Mohmad Rouyan <nawfal@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   NFS and /etc/exports
Message-ID:  <1208170926.12349.20.camel@nawfal-desktop>

next in thread | raw e-mail | index | archive | help
Hi Everyone,

I have an issue with NFS /etc/exports file. The entry in my exports file
is as below:

/usr -alldirs -maproot=0:0 zerg hulk protoss terran

I can't mount the directory from the first host listed which according
to above entry is 'zerg'. Any other hosts after the first host can mount
the directory. I get "Permission Denied" everytime I try to mount the
directory.

zerg# mount /usr/src
[tcp] build:/usr/src: Permission denied
^C

If I move 'zerg' to become the last host in the list, I can mount the
directory on 'zerg' but then 'hulk' would not be able to mount the
directory.

I'm using TCP and the entry in /etc/fstab on all clients is as below:

build:/usr/ports        /usr/ports      nfs
tcp,intr,nfsv3,-w=32768,-r=32768,rw,noauto      0       0
build:/usr/src          /usr/src        nfs
tcp,intr,nfsv3,-w=32768,-r=32768,rw,noauto      0       0
build:/usr/obj          /usr/obj        nfs
tcp,intr,nfsv3,-w=32768,-r=32768,rw,noauto      0       0

All the machines have the options below in /etc/rc.conf file:

nfs_server_enable="YES"
nfs_client_enable="YES"
nfs_server_flags="-t -n 6"
nfs_reserved_port_only="YES"
rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"

and all machines are FreeBSD 7.0-STABLE #0: Fri Apr 11 13:18:25 MYT 2008

OK just tested again, this only happens right after freshly booting
'build'. If I do 

kill -s HUP `cat /var/run/mountd.pid`

to reread the /etc/exports fileon 'build', then I have no problem
mounting the shared directory from the first host in the list. Is this a
bug or is the entry in the /etc/exports file is wrong?

Thanks!

-- 
Nawfal bin Mohmad Rouyan <nawfal@googlemail.com>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1208170926.12349.20.camel>