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 is there a problem if I go across subnets? anyway, here we go shananigen:/etc# cat exports # /home/gerard 192.168.1.34(rw,sync,no_subtree_check,root_squash) /home/gerard/Sound 192.168.1.34(rw,sync,no_subtree_check,root_squash) /home/gerard/Progs 192.168.1.33(rw,sync,no_subtree_check,root_squash) then I do exportfs -rav shananigen:/etc# exportfs -rav exporting 192.168.1.33:/home/gerard/Progs exporting 192.168.1.34:/home/gerard/Sound exporting 192.168.1.34:/home/gerard shananigen:/etc# exportfs /home/gerard 192.168.1.34 /home/gerard/Sound 192.168.1.34 /home/gerard/Progs 192.168.1.33 shananigen:/etc# showmount -e Export list for shananigen: /home/gerard/Progs 192.168.1.33 /home/gerard/Sound 192.168.1.34 /home/gerard 192.168.1.34 but still it doesnt show up in /proc/fs/nfs/exports shananigen:/etc# cat /proc/fs/nfs/exports # Version 1.1 # Path Client(Flags) # IPs I have put a line in fstab that looks like this 192.168.10.33:/home/gerard /home/gerard/Sound nfs rw,user,noauto 0 0 and when I do want to mount it it goes like this: gerard@debian:~$ mount Sound/ mount.nfs: 192.168.10.33:/home/gerard failed, reason given by server: Permission denied on the server rpcinfo -p gives: shananigen:/etc# rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 59855 status 100024 1 tcp 44706 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100021 1 udp 50243 nlockmgr 100021 3 udp 50243 nlockmgr 100021 4 udp 50243 nlockmgr 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100021 1 tcp 44735 nlockmgr 100021 3 tcp 44735 nlockmgr 100021 4 tcp 44735 nlockmgr 100005 1 udp 46727 mountd 100005 1 tcp 57545 mountd 100005 2 udp 46727 mountd 100005 2 tcp 57545 mountd 100005 3 udp 46727 mountd 100005 3 tcp 57545 mountd shananigen:/etc# and on the client: debian:/home/gerard# rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 42452 status 100024 1 tcp 51989 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100021 1 udp 34847 nlockmgr 100021 3 udp 34847 nlockmgr 100021 4 udp 34847 nlockmgr 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100021 1 tcp 39760 nlockmgr 100021 3 tcp 39760 nlockmgr 100021 4 tcp 39760 nlockmgr 100005 1 udp 45107 mountd 100005 1 tcp 54604 mountd 100005 2 udp 45107 mountd 100005 2 tcp 54604 mountd 100005 3 udp 45107 mountd 100005 3 tcp 54604 mountd debian:/home/gerard# why doesnt the exports show up in /proc/fs/nfs/exports? Thanks for your help |
Quote:
i.e Code:
[root@localhost ~]# cat /proc/fs/nfs/exports Quote:
As your export file configuration /home/gerard directory is exported for only 192.168.1.34 IP. so cross check once again. Hope this help |
Hey there 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. thanks for the help. |
All times are GMT -5. The time now is 02:41 PM. |