[CentOS] cannot mount NFS share, portmap problems, what todo?

Wed Feb 3 12:05:39 UTC 2010
Eero Volotinen <eero.volotinen at iki.fi>

2010/2/3 Rudi Ahlers <Rudi at softdux.com>:
> Hi all,
> I want to map an NFS share from a remote server to a local CentOS 5.4
> server, but have a problem with portmap:
> root at mercury:[~]$ service portmap restart
> pmap_getmaps rpc problem: RPC: Unable to receive; errno = Connection reset
> by peer
> Stopping portmap:                                          [FAILED]
> Starting portmap:                                          [  OK  ]
> root at mercury:[~]$ service portmap status
> portmap dead but subsys locked
> root at mercury:[~]$
>
> What is "subsys", and how do I "unlock it"?
>
>
> /var/log/messages gives me this:
> Feb  3 13:44:23 mercury portmap[2221]: cannot bind udp: Address already in
> use
>
> Which address is it referring to? Portmap isn't running so I don't see how
> it can be in use. Or should I be looking for the problem elsewhere?
> Google search results sugested opening port 111 in the firewall, which I
> have, but still get the error. And I cannot, at any costs, reboot this
> server. So, is there a way to fix this?

Check if there is lock file for portmap under /var/run and remove it
and try again.

Use also netstat -lp --ip to check if portmap is already running.

--
Eero