NFS and /etc/exports
Nawfal bin Mohmad Rouyan
nawfal at gmail.com
Mon Apr 14 11:28:08 UTC 2008
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 at googlemail.com>
More information about the freebsd-stable
mailing list