[CentOS] NFSv4 on CentOS 4.5

Thu Aug 16 02:38:09 UTC 2007
Anoop Rajendra <anoop.rajendra at gmail.com>

Hi. I'm having trouble accessing a shared directory over NFSv4 on a
CentOS 4.5 machine.

My export file reads

/test   10.0.0.0/255.0.0.0(ro,async,insecure,nohide,no_subtree_check)


Running the mount command with NFSv4 as the filesystem gives me a
permission denied error.

[root at pebble-anoop ~]# mount -v -t nfs4  pebble-anoop:/test/ /mnt/
mount: pinging: prog 100003 vers 4 prot tcp port 2049
mount: permission denied

I've also tried to include the fsid=0 argument in my /etc/exports
file. That gives me a whole different error

[root at pebble-anoop ~]# mount -v -t nfs4  pebble-anoop:/test/ /mnt/
mount: pinging: prog 100003 vers 4 prot tcp port 2049
mount: special device pebble-anoop:/test/ does not exist

Also, the parameter root_squash or no_root_squash don't make any
difference whatsoever.

Any ideas how I can solve this? It is imperative that I use NFSv4.
NFSv3 won't do.

Thanks.
-anoop