NFS on Ubuntu 12.04 (Perfect Server) not working

Discussion in 'Installation/Configuration' started by profm2, Jul 4, 2012.

  1. profm2

    profm2 New Member

    Hi all,

    I'm trying to get NFS setup on my Ubuntu 12.04 that was initially installed using the perfect server guide.

    Running netstat -antp yields:

    Code:
    tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      948/mysqld      
    tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      565/rpcbind     
    tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2031/nginx
    tcp        0      0 0.0.0.0:732             0.0.0.0:*               LISTEN      2252/rpc.rquotad
    tcp        0      0 0.0.0.0:55901           0.0.0.0:*               LISTEN      17227/rpc.mountd
    tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -               
    tcp        0      0 0.0.0.0:43585           0.0.0.0:*               LISTEN      816/rpc.statd   
    tcp        0      0 0.0.0.0:34662           0.0.0.0:*               LISTEN      17227/rpc.mountd
    tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      2048/php-fpm.conf)
    
    It would appear that 2049 is not bound to any program ... and rpcbind is running on port 111.

    From my Linux laptop, when I run nmap -O server ... I get:

    Code:
    Nmap scan report for server (192.168.xxx.xxx)
    Host is up (0.0011s latency).
    Not shown: 985 filtered ports
    PORT      STATE  SERVICE
    20/tcp    closed ftp-data
    21/tcp    open   ftp
    22/tcp    open   ssh
    25/tcp    open   smtp
    53/tcp    open   domain
    80/tcp    open   http
    110/tcp   open   pop3
    143/tcp   open   imap
    443/tcp   open   https
    993/tcp   open   imaps
    995/tcp   open   pop3s
    3306/tcp  open   mysql
    8080/tcp  open   http-proxy
    8081/tcp  open   blackice-icecap
    10000/tcp closed snet-sensor-mgmt
    ...
    
    So, from my laptop, I don't see port 2049 or 111 ... the two that I should see.

    I also have a NAS that I'm running NFS on and when I run nmap -O data ... I get:

    Code:
    Nmap scan report for data (192.168.xxx.xxx)
    Host is up (0.0025s latency).
    Not shown: 989 closed ports
    PORT     STATE SERVICE
    22/tcp   open  ssh
    80/tcp   open  http
    111/tcp  open  rpcbind
    139/tcp  open  netbios-ssn
    443/tcp  open  https
    445/tcp  open  microsoft-ds
    515/tcp  open  printer
    1025/tcp open  NFS-or-IIS
    1026/tcp open  LSA-or-nterm
    1027/tcp open  IIS
    2049/tcp open  nfs
    
    So, based on that info, I'm sure my server isn't opening the ports.

    I've followed the HowTo from the Ubuntu site SettingUpNFSHowTo to the letter, multiple times, but still I cannot get NFS to work correctly. One thing I did notice, is that rpcbind is running in place of portmap.

    Code:
    Note, selecting 'rpcbind' instead of 'portmap'
    rpcbind is already the newest version.
    Any thoughts?
     
  2. falko

    falko Super Moderator

  3. profm2

    profm2 New Member

    Hi Falko,

    I've looked in the logs, but haven't found anything useful.

    I did notice "gaps" in rpcinfo -p

    Code:
       program vers proto   port  service
        100000    4   tcp    111  portmapper
        100000    3   tcp    111  portmapper
        100000    2   tcp    111  portmapper
        100000    4   udp    111  portmapper
        100000    3   udp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  38217  status
        100024    1   tcp  56720  status
        100003    2   tcp   2049  nfs
        100003    3   tcp   2049  nfs
        100003    4   tcp   2049  nfs
        100227    2   tcp   2049
        100227    3   tcp   2049
        100003    2   udp   2049  nfs
        100003    3   udp   2049  nfs
        100003    4   udp   2049  nfs
        100227    2   udp   2049
        100227    3   udp   2049
        100021    1   udp  60615  nlockmgr
        100021    3   udp  60615  nlockmgr
        100021    4   udp  60615  nlockmgr
        100021    1   tcp  58173  nlockmgr
        100021    3   tcp  58173  nlockmgr
        100021    4   tcp  58173  nlockmgr
        100005    1   udp  49889  mountd
        100005    1   tcp  50031  mountd
        100005    2   udp  40699  mountd
        100005    2   tcp  38482  mountd
        100005    3   udp  45412  mountd
        100005    3   tcp  42249  mountd
        100011    1   udp    974  rquotad
        100011    2   udp    974  rquotad
        100011    1   tcp    975  rquotad
        100011    2   tcp    975  rquotad
    
    One thing I forgot to test, was turning off my NFS client to a network attached storage drive that I have around. I would assume that I should be able to run the client and server at the same time, but maybe not.
     

Share This Page