|
Over the past 9 months or so, this problem has been a recurring issue.
It would go away only to return at a later date. It was getting to be very
annoying. The crunch came this morning when I opened the XEON
box in order to disconnect a noisy fan on a video card. Don't worry, the card
actually has lots of ventilation already. It has an exchaust fan right beside it
(less than 4mm from the heatsink on the card. When I restarted the box, which acts both
as an NFS server and an NFS client, the boot process was paused
with the following message:
Mounting NFS file systemsNFS Portmap: RPC: Program not registered
I also found the following messages in /var/log/messages on the NFS
server:
portmap[83487]: connect from 192.168.0.18 to getport(mountd): request from
unauthorized host
portmap[83517]: connect from 192.168.0.18 to getport(nfs): request from unauthorized host
I mentioned this on IRC, and Unfurl suggested it was an /etc/hosts.allow
(i.e. tcpwrappers) issue. He suggested I change allow all for portmap. I did.
Rebooted the client box (as that's the situation under which the problem occurred).
This time, the box rebooted properly and the NFS partitions were properly mounted.
Here's what I had in /etc/hosts.allow:
# Portmapper is used for all RPC services; protect your NFS!
# (IP addresses rather than hostnames *MUST* be used here)
portmap : 192.0.2.32/255.255.255.224 : allow
portmap : 192.0.2.96/255.255.255.224 : allow
portmap : ALL : deny
Here's what I changed it to:
# Portmapper is used for all RPC services; protect your NFS!
# (IP addresses rather than hostnames *MUST* be used here)
portmap : 192.0.2.32/255.255.255.224 : allow
portmap : 192.0.2.96/255.255.255.224 : allow
portmap : 192.168.0.0/255.255.255.0 : allow
portmap : ALL : deny
|