Bonjour,
I try to have nfs working on a private network to allow some machines to mount a directory from the server.
my exports file:
/home/guillaume 192.168.1.0/255.255.255.0(rw,no_root_squash,sync)
hosts.deny:
portmap: ALL lockd : ALL mountd : ALL rquotad : ALL statd : ALL
hosts.allow:
portmap: 127.0.0.1, 192.168.1.0/255.255.255.0 : allow mountd : 127.0.0.1, 192.168.1.0/255.255.255.0 : allow nfsd : 127.0.0.1, 192.168.1.0/255.255.255.0 : allow statd : 127.0.0.1, 192.168.1.0/255.255.255.0 : allow lockd : 127.0.0.1, 192.168.1.0/255.255.255.0 : allow
At nfs start-up:
kernel: NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist kernel: NFSD: starting 90-second grace period rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
At nsf stop:
kernel: rpc.mountd: Caught signal 15, un-registering and exiting. kernel: nfsd: last server has exited kernel: nfsd: unexporting all filesystems kernel: RPC: error 5 connecting to server localhost kernel: RPC: failed to contact portmap (errno -5).
portmap is running
So sometimes (I don't know why!) mountd fails to start and the clients cannot connect....
Thanks for help.
PS. I have a firewall on the server which allows everything on lo and private network:
/sbin/iptables -A INPUT -i lo -j ACCEPT /sbin/iptables -A OUTPUT -o lo -j ACCEPT
/sbin/iptables -A INPUT -i eth1 -s 192.168.1.0/24 -j ACCEPT /sbin/iptables -A OUTPUT -o eth1 -d 192.168.1.0/24 -j ACCEPT
(eth1 is the private network interface)
On Sat, 2006-02-11 at 13:06 +0530, François Patte wrote:
kernel: NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist kernel: NFSD: starting 90-second grace period
I've seen that on all my PCs. I don't know what the directory is supposed to be for, but manually creating it got rid of those two warnings. I can see no difference in operation with or without it, though.
On Sat, 11 Feb 2006 13:06:21 +0530 François Patte francois.patte@math-info.univ-paris5.fr opined:
Bonjour,
I try to have nfs working on a private network to allow some machines to mount a directory from the server.
my exports file:
/home/guillaume 192.168.1.0/255.255.255.0(rw,no_root_squash,sync)
Are you trying NFS4? You can only mount the root directory. I have NFS firewalled (otherwise the following is insecure!!):
/ *.tqmcube.com(anongid=65534,no_subtree_check,no_root_squash,sync,insecure_locks,anonuid=65534,insecure,fsid=0,rw)
This requires nfs,rpcidmapd, and portmap running
fstab looks like: smtp:/ /smtp nfs4 rw,rsize=32768,wsize=32768 0 0