PDA

View Full Version : NFS Issue


danielch
28th July 2010, 01:19 AM
I upgraded fedora from fc13 to f14, and found nfs couldn't start. After I installed "avahi", nfs worked.

-- Why nfs needs avahi?
-- I noticed there is no portmap package anymore, how come?


# /etc/init.d/nfs restart
Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: [FAILED]
Shutting down NFS services: [FAILED]
Starting NFS services: [ OK ]
Starting NFS daemon: rpc.nfsd: Setting version failed: errno 16 (Device or resource busy)
rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
[FAILED]
# rpcinfo -p
rpcinfo: can't contact portmapper: RPC: Remote system error - No such file or directory

# yum install avahi
Installing : libdaemon-0.14-1.fc13.i686
Installing : avahi-0.6.27-1.fc14.i686

# uname -r
2.6.35-0.49.rc5.git2.fc14.i686.PAE

jpollard
28th July 2010, 02:30 AM
I don't see any relation -

But you do have a timing possibility along with a possible firewall change.

The rpcinfo -p (without host name) is only checking the local host entry - since
it can't contact the portmapper (rpcbind) that will prevent NFS from starting.

Now if rpcbind was actually in the process of starting (the timing issue), then
that might explain why the nfs daemon failed (connection refused).

rpcbind needs to be enabled and started before NFS can be started. This is the
normal case from a reboot (after both "chkconfig rpcbind on" and "chkconfig nfs on"
are done. Since you are doing this manually, I would expect that "service rpcbind start"
might take a while to get started. (I've had this occur because of outside
activity delayed the network setup).

portmap got replaced by rpcbind back in 2001:

http://www.mail-archive.com/freebsd-current@freebsd.org/msg26344.html

It seems it was done for naming compatibility with System V.

danielch
28th July 2010, 06:36 PM

Actually I disabled iptables and selinux before starting nfs. "timing possibility" may be a good explanation though.

It's good to know that portmap has been renamed to rpbbind. I noticed that centos 5.5 still has the portmap package. When did fedora start using rpcbind?