NFS4 does (not) mount locally depending on multiple entries in /etc/exports
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So the first question is why are you trying to make it a local NFS4 mount to the exporting server rather than simply creating a symbolic link to the local filesystem? e.g.
ln -s /mnt/platte /mnt/test
Alternatively you could do a loop back mount locally.
Assuming you have a reason to use an NFS4 mount rather than a symbolic link on the export server, 192.168.122.1, why bother with 127.0.0.1 if you've exported with the IP 192.168.122.1. You could mount on client 192.168.122.1 from server 192.168.122.1 just as you did on client 192.168.122.2 from server 192.168.122.1.
Thanks. Mounting via public IP does work locally, indeed.
Why I do this:
I somehow wanted to make sure there are no conflicts, when I am changing files in a shared directory from remote and locally at the same time.
My hope was, if all changes go through NFS4, the NFS server takes care of that.
I was afraid that changing files under NFS's ass would perhaps result in conflicts.
Can that be ruled out?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.