You are not logged in.
I've installed nfs-utils-1.2.1-3 and rpcbind-0.2.0-1.
My exports look like this
/home 192.168.1.1/24(rw,sync,no_root_squash,no_subtree_check)
in rc.conf rpcbind starts before netfs. When i can start up rpcbind and nfs-common manually without any problems, but when is start nfs-server i get this
rpc.nfsd: Setting version failed: errno 16 (Device or resource busy)
rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
rpc.nfsd: unable to set any sockets for nfsd
/var/log/messages tells me this
Jan 12 13:19:20 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 12 13:19:20 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 12 13:19:20 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 12 13:19:20 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 12 13:19:20 frigg kernel: svc: failed to register lockdv1 RPC service (errno 13).
Jan 12 13:19:20 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 12 13:19:20 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 12 13:19:20 frigg kernel: RPC: server localhost requires stronger authentication.
I've added the following to hosts.allow
nfsd: 192.168.1.0/255.255.255.0
rpcbind: 192.168.1.0/255.255.255.0 EXCEPT PARANOID
mountd: 192.168.1.0/255.255.255.0
I've set up dosens of NFS servers before, but this is a first. Any help would be heavensent
Thanks in advance.
Del Pede
Offline
I'm suspecting this to be a RPC releated problem. I can't get ypserv and ypbind to register to RPC either
Jan 12 14:57:42 frigg ypserv[5003]: unable to register (YPPROG, YPVERS, udp).
rpcinfo gives
program version netid address service owner
100000 4 tcp6 ::.0.111 portmapper superuser
100000 3 tcp6 ::.0.111 portmapper superuser
100000 4 udp6 ::.0.111 portmapper superuser
100000 3 udp6 ::.0.111 portmapper superuser
100000 4 tcp 0.0.0.0.0.111 portmapper superuser
100000 3 tcp 0.0.0.0.0.111 portmapper superuser
100000 2 tcp 0.0.0.0.0.111 portmapper superuser
100000 4 udp 0.0.0.0.0.111 portmapper superuser
100000 3 udp 0.0.0.0.0.111 portmapper superuser
100000 2 udp 0.0.0.0.0.111 portmapper superuser
100000 4 local /var/run/rpcbind.sock portmapper superuser
100000 3 local /var/run/rpcbind.sock portmapper superuser
portmap is running, so i don't really get it
Last edited by Del Pede (2010-01-12 14:05:47)
Offline
Reason for changing nfs-utils to version 1.2.1-3 is given in http://bugs.archlinux.org/task/17738. Apparently this introduced problems for you. Did you have problems with version 1.2.1-3 also?
Offline
I had the same problem with the version before. I read there where some bugs with nfs-utils, and enabled testing, and upgraded. Still the problem persist. And it's not only with NFS. ypserv won't start either, so i think it might be a problem with rpcbind
Offline
All right. I have NO idea what happend. Did a update today. Moved nfs-common and nfs-server down after netfs in my rc.conf file and then rebooted.
Now rpcinfo tells me, that nfs is running,
rpcinfo
program version netid address service owner
100000 4 tcp6 ::.0.111 portmapper superuser
100000 3 tcp6 ::.0.111 portmapper superuser
100000 4 udp6 ::.0.111 portmapper superuser
100000 3 udp6 ::.0.111 portmapper superuser
100000 4 tcp 0.0.0.0.0.111 portmapper superuser
100000 3 tcp 0.0.0.0.0.111 portmapper superuser
100000 2 tcp 0.0.0.0.0.111 portmapper superuser
100000 4 udp 0.0.0.0.0.111 portmapper superuser
100000 3 udp 0.0.0.0.0.111 portmapper superuser
100000 2 udp 0.0.0.0.0.111 portmapper superuser
100000 4 local /var/run/rpcbind.sock portmapper superuser
100000 3 local /var/run/rpcbind.sock portmapper superuser
100024 1 udp 0.0.0.0.144.217 status superuser
100024 1 tcp 0.0.0.0.176.27 status superuser
100021 1 udp 0.0.0.0.144.235 nlockmgr unknown
100021 3 udp 0.0.0.0.144.235 nlockmgr unknown
100021 4 udp 0.0.0.0.144.235 nlockmgr unknown
100021 1 tcp 0.0.0.0.169.86 nlockmgr unknown
100021 3 tcp 0.0.0.0.169.86 nlockmgr unknown
100021 4 tcp 0.0.0.0.169.86 nlockmgr unknown
100021 1 udp6 ::.160.197 nlockmgr unknown
100021 3 udp6 ::.160.197 nlockmgr unknown
100021 4 udp6 ::.160.197 nlockmgr unknown
100021 1 tcp6 ::.212.188 nlockmgr unknown
100021 3 tcp6 ::.212.188 nlockmgr unknown
100021 4 tcp6 ::.212.188 nlockmgr unknown
100003 2 tcp 0.0.0.0.8.1 nfs unknown
100003 3 tcp 0.0.0.0.8.1 nfs unknown
100003 4 tcp 0.0.0.0.8.1 nfs unknown
100003 2 udp 0.0.0.0.8.1 nfs unknown
100003 3 udp 0.0.0.0.8.1 nfs unknown
100003 4 udp 0.0.0.0.8.1 nfs unknown
But when i restart nfs-server it still gives me an error
/etc/rc.d/nfs-server restart
:: Stopping rpc.mountd daemon [DONE]
:: Stopping rpc.nfsd daemon [DONE]
:: Unexporting all directories [DONE]
:: Mounting nfsd filesystem [DONE]
:: Exporting all directories [DONE]
:: Starting rpc.nfsd daemon [BUSY] rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
rpc.nfsd: unable to set any sockets for nfsd
still rpcinfo gives me the same output, but in /var/log/messages i get this output
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 13 13:56:53 frigg kernel: svc: failed to register lockdv1 RPC service (errno 13).
Jan 13 13:56:53 frigg kernel: lockd_up: makesock failed, error=-13
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 13 13:56:53 frigg kernel: RPC: server localhost requires stronger authentication.
at least i'm now getting a different error in kernel: lockd_up: makesock failed, error=-13
But I'm still completly lost here, so any help would be deeply appreciated
Thanks in advance
Del Pede
Offline
Right. one of the things that failed, was a misconfiguration in the network part in rc.conf. rpcbind really need the loopback interface, and lo was missing. So i configured it, and rebooted the server. Now when i do /etc/rc.d/nfs-server status i get
:: Checking nfs-server status [STARTED]
:: Daemon rpc.nfsd running [DONE]
:: Daemon rpc.mountd running [DONE]
That's nice and all. But a when i restart the service, it's back to the old error
/etc/rc.d/nfs-server restart
:: Stopping rpc.mountd daemon [DONE]
:: Stopping rpc.nfsd daemon [DONE]
:: Unexporting all directories [DONE]
:: Mounting nfsd filesystem [DONE]
:: Exporting all directories [DONE]
:: Starting rpc.nfsd daemon [BUSY]
rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
rpc.nfsd: unable to set any sockets for nfsd
[FAIL]
The log offers nothing newJan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 14 12:00:11 frigg kernel: svc: failed to register lockdv1 RPC service (errno 13).
Jan 14 12:00:11 frigg kernel: lockd_up: makesock failed, error=-13
Jan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Jan 14 12:00:11 frigg kernel: RPC: server localhost requires stronger authentication.
Now i've run through hosts.allow, hosts.deny, hosts, rc.conf, nfs-common and nfs-server in /etc/conf.d, and still i can't find what gives me those errors.
Offline
I've managed to get ypbind and ypserv running aswell, but ONLY if they start up at boot. Logically that would mean, that all services needs to be started in one specific order
Here is the daemon list from my rc.conf
DAEMONS=(syslog-ng network rpcbind nfs-common nfs-server ypbind yppassd ypserv netfs crond sshd cups samba dnsmasq iptables ntpd bridge_devices)
I find it very strange, that i can't restart services manully, but only reload them through a reboot
Offline
I am not sure whether my issue is the same as yours, but...
I started getting the same error messages when I added the following lines to /etc/hosts.allow
nfsd: 192.168.1.
rpcbind: 192.168.1.
mountd: 192.168.1.
When I removed these lines, nfs appears to work normally again.
Does omitting these lines compromise network security severely?
The wiki for nfsv4 does not mention these configurations at all:
https://wiki.archlinux.org/index.php/NFSv4
Last edited by rWarrior (2010-12-15 05:52:44)
Offline