Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Once upon a time, this used to work, and I kept the configuration the same, but... now nothing.

I'm just trying to get an NFS server set up on a FreeBSD 4.9 server. The process should be about as complicated as this:

Add this entry to /etc/exports:

/var/home /var/vpopmail/domains -maproot=root XXX.XX.XX.XXX

Execute this:

portmap
nfsd -u -t -n 4
mountd -r

Then this should work, regardless of network and firewall issues:

showmount -e localhost

But showmount -e localhost fails with the following error:

RPC: Port mapper failure
showmount: can't do exports rpc

And even if I kill off the NFS daemon, and try a rpcinfo -p localhost, I get this error:

rpcinfo: can't contact portmapper: rpcinfo: RPC: Unable to receive; errno = Connection reset by peer

The portmapper is still running. Why the heck does nothing work as if it isn't?

Edit to add:

FYI: Sockstat gives me this:

$ sockstat |egrep "(nfsd|portmap)"
root     nfsd     86310    3 udp4   *:2049                *:*                  
root     nfsd     86310    4 udp4   *:973                 *:*                  
root     portmap  45920    0 tcp4   *:111                 *:*

Then, at a later time (say, 5 minutes) it's as if nfsd isn't acting as a server:

$ sockstat |egrep "(nfsd|portmap)"
root     portmap  45920    0 tcp4   *:111                 *:*

But the nfs daemon is still running:

$ ps ax |grep nfsd
86311  ??  I      0:00.00 nfsd: server (nfsd)
86312  ??  I      0:00.00 nfsd: server (nfsd)
86313  ??  I      0:00.00 nfsd: server (nfsd)
86314  ??  I      0:00.00 nfsd: server (nfsd)
share|improve this question
add comment

1 Answer

The 4.9 is a bit out of date and not supported anymore, I would consider to upgrade to a supported version of FreeBSD. Anyhow, pls check the following:

sockstat | grep portmap
sockstat | grep nfsd
share|improve this answer
    
Thanks. I'll replace this mail server with Debian the first chance I get. Until then... –  Ernie Nov 4 '09 at 22:32
    
So go ahead with Debian then. Btw. I would also check the firewall and the rc.conf. –  Istvan Nov 4 '09 at 22:39
    
There is no firewall beyond hosts.allow, which allows all connections from localhost. –  Ernie Nov 4 '09 at 22:45
    
what does the /var/log/messages say? –  Istvan Nov 4 '09 at 23:16
    
Nov 5 09:01:44 pop nfsd:[49627]: can't register with udp portmap Nov 5 09:04:04 pop mountd[50063]: can't register mount –  Ernie Nov 5 '09 at 17:04
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.