mcraidy Posted October 26, 2023 Share Posted October 26, 2023 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 and and NFS enabled under settings 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. Quote Link to comment
mcraidy Posted January 13 Author Share Posted January 13 Does anyone have any suggestions?! NFS still isn't working - have upgraded now to 6.12.6 hoping it'd work, but still nothing! Quote Link to comment
mcraidy Posted January 13 Author Share Posted January 13 (edited) 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 January 15 by mcraidy Removal of diagnostics package Quote Link to comment
mcraidy Posted January 14 Author Share Posted January 14 Looking around at /etc/rc.d/rc.nfs I found some of the stuff in /proc which also seems to indicate that nothing is exported: root@storage:~# cat /proc/fs/nfsd/exports # Version 1.1 # Path Client(Flags) # IPs Quote Link to comment
Solution mcraidy Posted January 15 Author Solution Share Posted January 15 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: 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. Quote Link to comment
Recommended Posts
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.