[CentOS] Problem with NFS4 and CentOs 5.8

Tue Apr 10 10:42:11 UTC 2012
Veli-Pekka Kestilä <centos at vpk.nu>

On 10.4.2012 3:11, Rob Kampen wrote:
> On 04/10/2012 11:08 AM, Veli-Pekka Kestilä wrote:
>> I hope someone could give me help with following problem on centos 5.8
>> kernel and nfs4.
>> On server i have bind mounted directory shared to the client with
>> following setup:
>> mounted directory:
>>        /srv/nfs/imagetest on /exports/imagetest type none (rw,bind)
>> /etc/exports file:
>>        /exports
>>        /exports/imagetest
>> On client I have mounted it with following command:
>> on /media/nfs type nfs4
>> (rw,nodev,sync,proto=tcp,retry=10,rsize=32768,wsize=32768,hard,intr,addr=
> It appears that this client IP is one of the ro list of IPs - thus
> trying to mount rw will be a problem??
It actually isn't a problem, that later rw export overrides the ro 
definition. And the problem still persists even I move the /exports to 
be rw.
>> This works fine with kernel: 2.6.18-274.17.1.el5.centos.plusxen
>> But with 2.6.18-308.1.1.el5.centos.plusxen I get the following error:
>>        -bash: cd: imagetest/: Not a directory when accessing the share.
>> If I disable nohide-option I can access the directory, but with the
>> contents of the original /exports/imagetest without the mounting.