netsplit n00b
Joined: 10 Jun 2024 Posts: 7
|
Posted: Sat Dec 14, 2024 11:17 pm Post subject: [solved]nfsv4 server handing out access denieds after reboot |
|
|
Couldn't find any posting of anyone having this problem but me, but for the next person here's the solution.
Problem: You run an nfsv4 server. When you reboot your nfsv4 server it gives everyone of the network clients that try to access it a nice error like:
Code: | netsplit@undisclosed /ultracore $ mount /ultracore/
mount.nfs4: access denied by server while mounting ultracore:/ |
It hands out access denieds like they're cars/bees and it thinks it's Opera Winfrey.
if you restart the service then it suddenly starts working correctly and lets authorized clients access things.
Was banging my head against it and realized I used hostnames for client authentication, not IPs. It probably converts those to IP addresses on start, and the network wasn't available when it was starting so it couldn't get the IP addresses.
Anyway the fix it seems was specifying the IP addresses of my clients in /etc/hosts:
Code: | # IPv4 and IPv6 localhost aliases
127.0.0.1 localhost
::1 localhost
10.0.4.3 undisclosed |
Now clients can connect on boot.
It's working for me, so I'm done, but an alternative fix a future reader could try is using ip addresses in /etc/exports instead of hostnames. |
|