[SOLVED] NFS exports do not show up in /proc/fs/nfs/exports
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
NFS exports do not show up in /proc/fs/nfs/exports
Hey there,
I installed Debian on my NAS and I installed nfs to share the files, but I cannot mount anything over nfs with the it. it seems that I dont get the exports right.
I added the IP to the hosts.allow, I added it to the exports.
to make it easier, shananigen has the IP 192.168.10.33 and is the server
debian has the IP 192.168.1.34 and is the client
/proc/fs/nfs/exports contains information about what filesystems are exported to actual client (individual, not subnet or whatever) at the moment. Once you mount shared NFS directory on client it will show you entry on server side.
i.e
gerard@debian:~$ mount Sound/
mount.nfs: 192.168.10.33:/home/gerard failed, reason given by server: Permission denied
Normal user can't mount share directory. so use sudo command or run as root user.
As your export file configuration /home/gerard directory is exported for only 192.168.1.34 IP. so cross check once again.
thanks for the reply. It helped understanding that this is not the porblem, so I looked further.
one problem was, that I am crossing two switches, so the IP from the client doesnt show as the requestee IP on the server. Looking into the syslog file of the server I found the following
Sep 7 22:00:27 shananigen mountd[3027]: refused mount request from 192.168.10.35 for /home/gerard (/home/gerard): illegal port 60781
So first the sever thinks that the client is connecting from 192.168.10.35. the second thing is that the server doesnt like the port.
Changing the IP in the server exportfs and putting 'insecure' in to allow all ports, it works like a charm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.