NFS server on openSUSE 13.1 does not start

I am trying to start the NFS server on an openSUSE13.1 system. It does not complete starting. Looking through the forum I see NFS issues, but not one that looks like mine…

I am doing this as follows:

  1. Add entries to: /etc/exports. Mine contains:

/home *(rw,no_root_squash,sync,no_subtree_check)
/tftpboot *(rw,no_root_squash,sync,no_subtree_check)
/usr/local *(rw,no_root_squash,sync,no_subtree_check)
/opt/rsoft *(rw,no_root_squash,sync,no_subtree_check)

  1. Run: /etc/init.d/nfsserver start

I have also tried ‘systemctl start nfsserver.service’ and yast. But the symptoms are the same.

The only status message is:

  Starting LSB: Start the kernel based NFS daemon...

and then it waits. The server never starts. Eventually it times out.

I am not sure where to look. Any missing components would have been added by Yast (or that was the case in the past). So I think everything is present. How can I find what it is waiting for? There are no additional messages in /var/log/messages beyond the status message above.

I have checked http://www.unixmen.com/setup-nfs-server-opensuse-13-1/ but that does not say too much.

rpcbind is running:

rpcbind.service - RPC Bind
Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; enabled)
Active: active (running) since Wed 2014-10-15 08:11:19 CEST; 1h 23min ago
Main PID: 770 (rpcbind)
CGroup: /system.slice/rpcbind.service
└─770 /sbin/rpcbind -w -f

Oct 15 08:11:19 rst38 systemd[1]: Starting RPC Bind…
Oct 15 08:11:19 rst38 systemd[1]: Started RPC Bind.

Kernel modules loaded:

lsmod | grep nfs

nfsd 272387 1
nfs_acl 12733 1 nfsd
auth_rpcgss 52768 3 nfsd,rpcsec_gss_krb5
nfsv4 244507 3
nfs 176850 2 nfsv4
fscache 60454 2 nfsv4,nfs
lockd 86710 2 nfsd,nfs
sunrpc 254787 18 nfsd,nfs_acl,rpcsec_gss_krb5,auth_rpcgss,nfsv4,nfs,lockd

The FQDN is resolvable (via /etc/hosts)

Something is not happy…


Roger Oberholtzer

Did you try good old YaST?

Check your configuration with YaST > Network Services > NFS Server (it will not only show your /etc/export entries, which will be allright, but also some other parameters like NFS version).

And, while the starting of it is one of the options of this YaST mudule. you can also enable/disable and start/stop from YaST > System > Services Manager.

I did try YAST, as I mentioned. All was the same.

Odd thing is that another system with a very similar software install is starting up just fine. I cannot see the difference. The /etc/exports file in both are the same. The options as seen in YAST look the same for both. In fact, it is the default that openSUSE 13.1 provides. All we do is add entries to /etc/exports.

If I could just find out who is blocking… Or appears to be blocking…

Did you check if processes are listening? This is on my system:

boven:~ # netstat -tulp | grep nfs
tcp        0      0 *:nfs                   *:*                     LISTEN      -                   
tcp        0      0 *:nfs                   *:*                     LISTEN      -                   
udp        0      0 *:nfs                   *:*                                 -                   
udp        0      0 *:nfs                   *:*                                 -                   
boven:~ # netstat -tulp | grep rpc
tcp        0      0 *:39182                 *:*                     LISTEN      1551/rpc.statd      
tcp        0      0 *:sunrpc                *:*                     LISTEN      1/init              
tcp        0      0 *:mountd                *:*                     LISTEN      1546/rpc.mountd     
tcp        0      0 *:sunrpc                *:*                     LISTEN      1/init              
tcp        0      0 *:mountd                *:*                     LISTEN      1546/rpc.mountd     
tcp        0      0 *:46835                 *:*                     LISTEN      1551/rpc.statd      
udp        0      0 *:mountd                *:*                                 1546/rpc.mountd     
udp        0      0 *:rmc                   *:*                                 481/rpcbind         
udp        0      0 localhost:879           *:*                                 1551/rpc.statd      
udp        0      0 *:48191                 *:*                                 1551/rpc.statd      
udp        0      0 *:sunrpc                *:*                                 1/init              
udp        0      0 *:mountd                *:*                                 1546/rpc.mountd     
udp        0      0 *:rmc                   *:*                                 481/rpcbind         
udp        0      0 *:sunrpc                *:*                                 1/init              
udp        0      0 *:39049                 *:*                                 1551/rpc.statd      
boven:~ #