Jump to content

NFS Issues (?)


mcraidy
Go to solution Solved by mcraidy,

Recommended Posts

I've been unable to get NFS shares exported on my Unraid set up for some time now and was wondering if anyone has any tips!

 

SMB seems to work fine however when I set up NFS shares I don't seem to see the exports on the Unraid system or remote servers I'm trying to connect to the export.

 

Share shows NFS config

image.thumb.png.c557f17f471f2e0b5cfa38cdcb561b94.png

and

image.png.4c8a0df2973c0d7b26837eededf77656.png

and NFS enabled under settings

image.png.2e3b13327f2a98d5e34c1ad8d4313b71.png

 

On the Unraid server /etc/exports is populated

# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.

"/mnt/user/backup" -fsid=102,async,no_subtree_check 172.24.15.51(sec=sys,rw),subtree_check
"/mnt/user/frigate" -fsid=103,async,no_subtree_check *(rw,sec=sys,insecure,anongid=100,anonuid=99,all_squash)
"/mnt/user/isos" -fsid=100,async,no_subtree_check *(rw,sec=sys,insecure,anongid=100,anonuid=99,all_squash)
"/mnt/user/proxmox-backups" -fsid=101,async,no_subtree_check *(rw,sec=sys,insecure,anongid=100,anonuid=99,all_squash)

 

BUT showmount -e localhost returns nothing

root@storage:~# showmount -e localhost
Export list for localhost:

 

Anyone have any golden tips?

 

FYI the nfsd module is installed and seen with lsmod too.

 

 

Link to comment
  • 2 months later...

Have just enabled local syslog as I was sending all remotely.

 

Diagnostics dump attached.

 

After disabling NFS a tail of /var/log/*log when enabling has provided

 

Jan 14 09:46:47 storage root: Starting NFS server daemons:
Jan 14 09:46:47 storage root:   /usr/sbin/exportfs -r
Jan 14 09:46:47 storage root:   /usr/sbin/rpc.nfsd -u -s -H 172.24.0.16 -H 127.0.0.1 8
Jan 14 09:46:48 storage kernel: NFSD: Using UMH upcall client tracking operations.
Jan 14 09:46:48 storage kernel: NFSD: starting 90-second grace period (net f0000000)
Jan 14 09:46:48 storage root:   /usr/sbin/rpc.mountd
Jan 14 09:46:48 storage rpc.mountd[12052]: Version 2.6.2 starting
Jan 14 09:46:48 storage emhttpd: shcmd (83699): /etc/rc.d/rc.avahidaemon restart
Jan 14 09:46:48 storage root: Stopping Avahi mDNS/DNS-SD Daemon: stopped
Jan 14 09:46:48 storage avahi-daemon[11390]: Got SIGTERM, quitting.
Jan 14 09:46:48 storage avahi-dnsconfd[11401]: read(): EOF
Jan 14 09:46:48 storage avahi-daemon[11390]: Leaving mDNS multicast group on interface br0.IPv4 with address 172.24.0.16.
Jan 14 09:46:48 storage avahi-daemon[11390]: avahi-daemon 0.8 exiting.
Jan 14 09:46:48 storage root: Starting Avahi mDNS/DNS-SD Daemon: /usr/sbin/avahi-daemon -D
Jan 14 09:46:48 storage avahi-daemon[12088]: Found user 'avahi' (UID 61) and group 'avahi' (GID 214).
Jan 14 09:46:48 storage avahi-daemon[12088]: Successfully dropped root privileges.
Jan 14 09:46:48 storage avahi-daemon[12088]: avahi-daemon 0.8 starting up.
Jan 14 09:46:48 storage avahi-daemon[12088]: Successfully called chroot().
Jan 14 09:46:48 storage avahi-daemon[12088]: Successfully dropped remaining capabilities.
Jan 14 09:46:48 storage avahi-daemon[12088]: Loading service file /services/sftp-ssh.service.
Jan 14 09:46:48 storage avahi-daemon[12088]: Loading service file /services/smb.service.
Jan 14 09:46:48 storage avahi-daemon[12088]: Loading service file /services/ssh.service.
Jan 14 09:46:48 storage avahi-daemon[12088]: Joining mDNS multicast group on interface br0.IPv4 with address 172.24.0.16.
Jan 14 09:46:48 storage avahi-daemon[12088]: New relevant interface br0.IPv4 for mDNS.
Jan 14 09:46:48 storage avahi-daemon[12088]: Network interface enumeration completed.
Jan 14 09:46:48 storage avahi-daemon[12088]: Registering new address record for 172.24.0.16 on br0.IPv4.
Jan 14 09:46:48 storage emhttpd: shcmd (83700): /etc/rc.d/rc.avahidnsconfd restart
Jan 14 09:46:48 storage root: Stopping Avahi mDNS/DNS-SD DNS Server Configuration Daemon: stopped
Jan 14 09:46:48 storage root: Starting Avahi mDNS/DNS-SD DNS Server Configuration Daemon:  /usr/sbin/avahi-dnsconfd -D
Jan 14 09:46:48 storage avahi-dnsconfd[12097]: Successfully connected to Avahi daemon.
Jan 14 09:46:49 storage avahi-daemon[12088]: Server startup complete. Host name is storage.local. Local service cookie is 352015384.
Jan 14 09:46:50 storage avahi-daemon[12088]: Service "storage" (/services/ssh.service) successfully established.
Jan 14 09:46:50 storage avahi-daemon[12088]: Service "storage" (/services/smb.service) successfully established.
Jan 14 09:46:50 storage avahi-daemon[12088]: Service "storage" (/services/sftp-ssh.service) successfully established.

 

Although I've tried many times to get NFS going - the latest attempt was with the "photos" share.

 

Any further help would be fantastic

 

Edited by mcraidy
Removal of diagnostics package
Link to comment
  • Solution

FIXED

 

As seen in the logs:

Quote

Jan 15 12:58:41 storage emhttpd: shcmd (87058): /etc/rc.d/rc.nfsd start
Jan 15 12:58:41 storage root: Starting NFS server daemons:
Jan 15 12:58:41 storage root:   /usr/sbin/exportfs -r
Jan 15 12:58:41 storage root:   /usr/sbin/rpc.nfsd -u -s -H 172.24.0.16 -H 127.0.0.1 8
Jan 15 12:58:42 storage kernel: NFSD: Using UMH upcall client tracking operations.
Jan 15 12:58:42 storage kernel: NFSD: starting 90-second grace period (net f0000000)
Jan 15 12:58:42 storage root:   /usr/sbin/rpc.mountd
Jan 15 12:58:43 storage rpc.mountd[5424]: Version 2.6.2 starting

 

I ran exportfs -r manually and finally saw an error:

root@storage:~# /usr/sbin/exportfs -r
exportfs: /etc/exports:2: syntax error: bad option list

 

I disabled the 2nd NFS share as seen in `/etc/exports`:

# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.

"/mnt/user/backup" -fsid=102,async,no_subtree_check 172.24.15.51(sec=sys,rw),subtree_check
"/mnt/user/frigate" -fsid=103,async,no_subtree_check *(rw,sec=sys,insecure,anongid=100,anonuid=99,all_squash)
"/mnt/user/photos" -fsid=104,async,no_subtree_check *(rw,sec=sys,insecure,anongid=100,anonuid=99,all_squash)

 

And NFS now seems to start (running showmount -e on the server returns the exports).

 

FYI the bad config for the backup share was:

image.png.f7e002ef5c64c87ae5aa0b573115cf89.png

 

I've now fixed and all working.

 

For the devs - it'd be great if there was some sort of validation of the config and/ or some indication that NFS isn't actually running.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...