[CentOS] NFS issue

Sat May 5 15:04:47 UTC 2007
Andrew Bogecho <andrewb at cs.mcgill.ca>

>>>
>>> Try adding nohide as an option to /etc/exports. See exports(5) for
>>> more information about nohide and exporting filesystems with mount
>>> points.
>>>
>>
>> Most interesting.
>>
>>
>> Looked, and applied...
>>
>>
>> no change..
>>
>> these are the relevant lines in the /etc/exports
>>
>> /data/shared/   172.16.1.0/255.255.255.0(sync,rw,nohide)
>> /data/shared/   172.16.4.0/255.255.255.0(sync,rw,nohide)
>>

Hi,

I was under the impression that nfs exports a filesystem in its entirety.
Therefore, if you have another filesytem mounted in a subdirectory, you
have to export it too, as it will not be exported for you. You therefore
might have to have two entries:

/data/shared/   172.16.1.0/255.255.255.0(sync,rw,nohide)
/data/shared/Photos/Archive1   172.16.1.0/255.255.255.0(sync,ro)

I hope that helps. If nohide does not work, then you will have you use two
mounts on the clients.

A.

>>
>> (need to export to different subnets, anything else doesn't work)
>>
>>
>> Cheers
>>
>
> Did have another look at the nohide option after some sleep, and there
> is a rather special caveat...
>
> <quote>
> The nohide option is currently only effective on single host exports.
> It does not work  reliably  with  netgroup, subnet, or wildcard exports.
> </quote>
>
>
> Not really good enough as this data needs to be exported to a whole lot
> of machines, i.e. two subnets..
>
> Any other thoughts ?
>
>
> AM
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>