[CentOS] NFS mount problems

Sat Apr 26 13:05:34 UTC 2008
Anne Wilson <cannewilson at googlemail.com>

On Saturday 26 April 2008 13:24, Craig White wrote:
> On Sat, 2008-04-26 at 13:11 +0100, Anne Wilson wrote:
> > On Saturday 26 April 2008 11:16, Anne Wilson wrote:
> > > On Saturday 26 April 2008 10:49, Anne Wilson wrote:
> > > > This morning my laptop could not connect to the server by its fstab
> > > > mounts. I restarted nfs and restarted the network on the server, all
> > > > without making any difference.  Restarting the network brought
> > > >
> > > > Bringing up interface borg2:  RTNETLINK answers: File exists
> > > > Error adding address 192.168.0.40 for eth0.
> > > >
> > > > but ifconfig shows the correct address for eth0.
> > > >
> > > > What else should I look for?
> > >
> > > I presume these lines are relevant -
> > >
> > > Apr 26 11:11:52 borg2 automount[2547]: create_udp_client: hostname
> > > lookup failed: No such process
> > > Apr 26 11:11:52 borg2 automount[2547]: create_tcp_client: hostname
> > > lookup failed: No such process
> > > Apr 26 11:11:52 borg2 automount[2547]: lookup_mount: exports lookup
> > > failed for .directory
> > >
> > > What is the cause of this?  Thanks
> >
> > This is a firewall issue.  If I turn off the firewall everything works. 
> > NFS and SMB are marked as trusted services, but it seems that is not
> > enough. Which ports need to be opened to use these services?  I googled
> > and followed that advice, which didn't work, so now I have to ask here.
>
> ----
> https://www.redhat.com/archives/fedora-list/2008-March/msg02366.html
>
Hmmm - I had opened 111 and 4000-4004, but it seems that they may be the wrong 
ones.  OTOH, this is a huge list.  Do I need all these open?

rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp    855  status
    100024    1   tcp    858  status
    100011    1   udp    804  rquotad
    100011    2   udp    804  rquotad
    100011    1   tcp    807  rquotad
    100011    2   tcp    807  rquotad
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  32768  nlockmgr
    100021    3   udp  32768  nlockmgr
    100021    4   udp  32768  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  55766  nlockmgr
    100021    3   tcp  55766  nlockmgr
    100021    4   tcp  55766  nlockmgr
    100005    1   udp    820  mountd
    100005    1   tcp    823  mountd
    100005    2   udp    820  mountd
    100005    2   tcp    823  mountd
    100005    3   udp    820  mountd
    100005    3   tcp    823  mountd

Anne