Did you have NFS working before ? For NFS version 3 and below you will need to have rpcbind running, and years ago that changed the default to listening on 127.0.0.1 on some Linux distributions. Here's a quick search result for NFS4 : https://www.suse.com/support/kb/doc/?id=000019530 And from the best Linux wiki of late : https://wiki.archlinux.org/title/NFS
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
No, I've never used NFS. I've solved with this export:
/mnt/pool/vm_docker/ 172.31.0.0/24(rw,fsid=1,sync,no_root_squash,no_subtree_check)
And this mount:
sudo mount -t nfs -o vers=3 172.31.0.1:/mnt/pool/vm_docker /mnt/nfs/
Made it permanent with this /etc/fstab
:
172.31.0.1:/mnt/pool/vm_docker /mnt/nfs nfs vers=3,rw 0 0
As an aside, these are the client logs, check the /var/log/ auth.log or secure files or journalctl to see if the server logged why the access was denied.
Try mounting it without the mount options. Also why -vvvv?
nfsvers=2 or nfsvers=3 — Specifies which version of the NFS protocol to use. This is useful for hosts that run multiple NFS servers. If no version is specified, NFS uses the highest supported version by the kernel and mount command. This option is not supported with NFSv4 and should not be used.