February 18, 2009

Centos5: nfs clients get premission denied

While working on ny NFS cluster project , I could not mount my nfs exports from clients ( FreBSD & Centos ).

on the FreeBSD client I got these responses :
[udp] server:/data/dir1: Permission denied
on the CentOS client I got these responses:
mount: server:/data/dir1 failed, reason given by server: Permission denied

On the Centos NFS server the logs showed :
mountd[12377]: authenticated mount request from client1:984 for /data/dir1 (/data/dir1)

Turns out there’s a bug in CentOS and modprobe does not mount the nfsd procs , you can fix the issue by adding :

none /proc/fs/nfsd nfsd auto 0 0

to /etc/fstab
or manually ( if you want to make sure that is the issue ) :

/bin/mount -t nfsd nfsd /proc/fs/nfsd