no entry in /proc/fs/nfs/exports

Hello All,

 I have external storage and I have mounted it on /backup. Now I want to export this Filesystem as NFS share. I have edited /etc/exports directory. I am getting error  in client machine saying failed, reason given by server: Permission denied. I checked the entry in /proc/fs/nfs/exports, but there is no export entry. I restarted the services, tried the command exportfs -ra, but no luck. 

Can anyone please help regarding this.

Below are some details for this:

/etc/exports: /backup 192.168.1.10*(rw,no_root_squash,async,no_subtree_check)
There are 4 machines to export 101,102,103,104, so I have used wild card *.

Details of rpcinfo -p,
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 32782 mountd
100005 1 tcp 42911 mountd
100005 2 udp 32782 mountd
100005 2 tcp 42911 mountd
100005 3 udp 32782 mountd
100005 3 tcp 42911 mountd
100021 1 udp 32783 nlockmgr
100021 3 udp 32783 nlockmgr
100021 4 udp 32783 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 tcp 42057 nlockmgr
100021 3 tcp 42057 nlockmgr
100021 4 tcp 42057 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100024 1 udp 32784 status
100024 1 tcp 53504 status

No entry in /var/lib/nfs/xtab either. So can you please help me how to deal with this problem. I really appreciate your help.

Thanks,
Giridhar.

On Tue, 27 Sep 2011 22:46:02 +0000, giridshar wrote:

> I am getting error in client machine saying
> _failed,_reason_given_by_server:Permission_denied. I checked the entry
> in /proc/fs/nfs/exports, but there is no export entry. I restarted the
> services, tried the command exportfs -ra, but no luck.

Can the server resolve a name from the IP address? I’ve found this to be
necessary using NFS myself. (There’s probably an override for it, but I
just added the client to the /etc/hosts file on the server and that
resolved it).

You might also take a look at /var/log/messages on the server to see what
it says when you try to mount the filesystem. My guess is the message
will indicate a name lookup failure for the client.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

From one of the clients, what do these commands return:

rpcinfo -p nfs.server.ip
showmount -e nfs.server.ip

Cheers,
Pete

Hello Jim,

 I looked into the entry /var/log/messages, it says  msvlsi65 mountd[22559]: refused mount request from msvlsi62.ecen.okstate.edu for /test_export (/): no export entry

And also both can resolve names. I checked it through nslookup.

Hello pete:
rpcinfo -p server_ip: gives the original output as that in server.

showmount: shows the exact directory which is exported from the server
Export list for 139.78.76.95:
/backup 192.168.1.10*

On Wed, 28 Sep 2011 02:16:02 +0000, giridshar wrote:

> Hello Jim,
>
> I looked into the entry /var/log/messages, it says
> _msvlsi65_mountd
[22559]:refused_mount_request_from_msvlsi62.ecen.okstate.edu_for/
test_export
(/):no_export_entry

This indicates a path of “/test export” - what is the mount command
you’re trying to do?

You’ve exported /backup so that’s what you should be trying to mount.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hello Jim,

I am sorry for the confusion. When I tried to mount the /backup also I am getting the same error. Since /backup is external raid array and I thought its giving me some problem. So I created a directory called test_export and tried to export it. But none of these worked. I am getting the same error in /var/log/messages

mountd[22559]: refused mount request from msvlsi62.ecen.okstate.edu for /backup (/): no export entry

On Wed, 28 Sep 2011 03:06:03 +0000, giridshar wrote:

> Hello Jim,
>
> I am sorry for the confusion. When I tried to mount the /backup also I
> am getting the same error. Since /backup is external raid array and I
> thought its giving me some problem. So I created a directory called
> test_export and tried to export it. But none of these worked. I am
> getting the same error in /var/log/messages
>
> mountd[22559]: refused mount request from msvlsi62.ecen.okstate.edu for
> /backup (/): no export entry

What’s the IP address of the client? Is it in the range specified?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hi Jim,

Ya its in the range specified. There are two cards one connects to internet and has ip address 139.78.76.55 and the other to communicate with the server and has the IP 192.168.1.102

Likewise even server has two cards and one has the ip address in range of 139.78.x.x and other has 192.168 range…

Both can be pinged from each other using both the ips

On Wed, 28 Sep 2011 18:26:03 +0000, giridshar wrote:

> Hi Jim,
>
> Ya its in the range specified. There are two cards one connects to
> internet and has ip address 139.78.76.55 and the other to communicate
> with the server and has the IP 192.168.1.102
>
> Likewise even server has two cards and one has the ip address in range
> of 139.78.x.x and other has 192.168 range…
>
> Both can be pinged from each other using both the ips

Try using the specific IP address - I’m thinking the wildcard might be
causing the problem (it’s not usual to use a wildcard as a string match,
and I’m not sure that’ll actually work).

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hi Jim,

I had tried even removing *.I found a temporary solution for this problem. I exported the filesystem using 139.78.x.x ip address. It now mounts fine. :)

Now I don’t know why it was not mounting with the other 192.x.x.x, did I miss any entry into some file. For further details I can ping the using this IP, but when I do nslookup, it says no host. So ultimately there is some problem here in this IP configuration. Can you please suggest anything regarding this.

Thanks,
Giridhar.

On Thu, 29 Sep 2011 03:16:02 +0000, giridshar wrote:

> Hi Jim,
>
> I had tried even removing *.I found a temporary solution for this
> problem. I exported the filesystem using 139.78.x.x ip address. It now
> mounts fine. :slight_smile:
>
> Now I don’t know why it was not mounting with the other 192.x.x.x, did I
> miss any entry into some file. For further details I can ping the using
> this IP, but when I do nslookup, it says no host. So ultimately there is
> some problem here in this IP configuration. Can you please suggest
> anything regarding this.

If it’s not coming back from nslookup, then the host name isn’t
resolving. To work around it, you can add the host name/IP address to
the /etc/hosts file on the client, or talk to your DNS administrator to
get the address added into the DNS server. :slight_smile:

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C