Code: Select all
ExecStartPre=/bin/sleep 15
Trying to figure this problem out.
On my fresh install of Mint 19.2 (Cinnamon), I set up NFS sharing as I didn't want to bother with Samba. Here are a few variants of my exportfs file:
Code: Select all
/mnt/md0/pics 192.168.1.1/24(ro,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
/mnt/md0/Home\040Movies 192.168.1.1/24(ro,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
/mnt/md0/pics pc1(ro,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
/mnt/md0/Home\040Movies pc1(ro,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
/mnt/md0/pc1\040backup 192.168.1.1/24(rw,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
/mnt/md0/incoming 192.168.1.1/24(rw,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
/mnt/md0/pc2\040backup 192.168.1.1/24(rw,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
/mnt/md0 192.168.1.1/24(ro,insecure,sync,all_squash,nohide,no_subtree_check,anonuid=1000,anongid=1000)
Here's what will happen.
I'll get on the server and do an 'exportfs -avr' then 'showmount -e my server ip' from a client and the nfs-server status on the Mint 19.2 box comes up as 'active/running' and showmount from the client shows all the shares and I can map them perfectly fine. I can reboot my client boxes and they reboot and can see the NFS shares. All is well in the universe.
Here is where things go off the rails. If I reboot the server, this is what I get on the server box:
Code: Select all
gene@server-pc:~$ sudo systemctl status nfs-server
● nfs-server.service - NFS server and services
Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-08-29 19:27:58 EDT; 49min ago
Process: 1625 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
Process: 1624 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
Process: 1623 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=1/FAILURE)
Aug 29 19:27:58 server-pc systemd[1]: Starting NFS server and services...
Aug 29 19:27:58 server-pc exportfs[1623]: exportfs: Failed to stat /mnt/md0/ally backup: No such file or directory
Aug 29 19:27:58 server-pc exportfs[1623]: exportfs: Failed to stat /mnt/md0/marinaresume: No such file or directory
Aug 29 19:27:58 server-pc exportfs[1623]: exportfs: Failed to stat /mnt/md0/marina backup: No such file or directory
Aug 29 19:27:58 server-pc exportfs[1623]: exportfs: Failed to stat /mnt/md0/Home Movies: No such file or directory
Aug 29 19:27:58 server-pc exportfs[1623]: exportfs: Failed to stat /mnt/md0/Pictures: No such file or directory
Aug 29 19:27:58 server-pc systemd[1]: nfs-server.service: Control process exited, code=exited status=1
Aug 29 19:27:58 server-pc systemd[1]: nfs-server.service: Failed with result 'exit-code'.
Aug 29 19:27:58 server-pc systemd[1]: Stopped NFS server and services.
When I was rolling with Mint 19.1, I used Samba. It was a minor pain to get it completely set up and working perfectly so when I installed a fresh copy of Mint 19.2, I thought I'd go with NFS but now, I think I'm just going to go back to Samba since it would work no matter how many times the server would reboot and clients would ALWAYS be able to access the shares. Samba was just 10,000% more reliable.
What newbie mistake am I making here?