Skip to contentSkip to conversation

Missing xtab entry after nfsd startup

DISCUSSION Shehjar Tikoo 1 participant 1 message Jun 24, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi All

I am running into a "Permission denied" at the client when I try to do a mount of an exported directory.

Looking at the HOWTO, I see that there seems to be some inconsistency as the entries for the export are missing from the /var/lib/nfs/xtab.

For eg:

On the Server:
[root@192 shehjart]# cat /etc/exports
/data/shehjart/volumes/disk1 *(rw,no_root_squash)
[root@192 shehjart]# /etc/init.d/nfs start

Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]

[root@192 shehjart]# cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
[root@192 shehjart]# cat /var/lib/nfs/xtab
[root@192 shehjart]#

On the client, after the above commands:

root@indus:~# mount 192.168.1.201:/data/shehjart/volumes/disk1 /mnt/
mount.nfs: 192.168.1.201:/data/shehjart/volumes/disk1 failed, reason given by server: Permission denied

After this failed mount, the server says:
[root@192 shehjart]# cat /proc/fs/nfs/exports
# Version 1.1
# Path Client(Flags) # IPs
/data/shehjart/volumes/disk1 *(rw,no_root_squash,sync,wdelay,no_subtree_check) [root@192 shehjart]# cat /var/lib/nfs/xtab
[root@192 shehjart]#

even with:
[root@192 shehjart]# exportfs -ra
[root@192 shehjart]# cat /var/lib/nfs/xtab
[root@192 shehjart]#

And the "Permission denied" persists.

tshark shows that the MNT request fails because the server returns a MNT3ERR_ACCES.

Server is:
[root@192 shehjart]# uname -a
Linux n1 2.6.18-128.1.10.el5xen #1 SMP Thu May 7 11:07:18 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

Client is a debian testing:
Linux indus 2.6.18-5-amd64 #1 SMP Thu May 31 23:51:05 UTC 2007 x86_64 GNU/Linux

Thanks
Shehjar