Okay, it took a few minutes, but I figure it out.  Seems that Scientific Linux 
eems to regress a bit in this area. 

With Centos, you need to bind like so:

/home/share             /exports/share          none    bind    0 0
/home/vhosts            /exports/vhosts         none    bind    0 0

And then specify the options (including fsid0):

in /etc/exports

/exports        *(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)
/exports/vhosts *(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)
/exports/share  *(rw,fsid=0,insecure,no_subtree_check,sync,no_root_squash)
[root@centos home]# 

In order for clients to mount via NFS4 (with all the usual stuff about 
specifying in the ports in /etc/sysconfig/nfs) in thisfmat :

mount -t nfs4 192.168.15.200:/ /mnt

Which is apparently the correct way of mount via NFS

HOWEVER, in Scientific Linux, you can get way with a) not binding the 
directories and b) go back to this format:

/home/exports   *(ro,sync)
/opt    *(ro,sync)


And still be able to mount:

mount -t nfs4  192.168.15.100:/opt /mnt


I have to double check the mounts to confirm that I am mount via NFS4.

Centos box (mounting SL box via NFS4):

192.168.15.100:/opt /mnt nfs4 rw,addr=192.168.15.100 0 

SL Box (mounting Centos box via NFS4):

192.168.15.200:/ /mnt nfs4 rw,addr=192.168.15.200,clientaddr=192.168.15.100 0 0

Huh.

Thanks a lot for the pointers, guys.  It has been interesting. :)

On Jun 2, 2011, at 8:50 PM, RILINDO FOSTER wrote:

> Here you go. Nothing too fancy:
> 
> [root@centos ~]# cat /etc/exports
> /home *(ro,sync)
> /opt/company_data *(rw,sync)
> 
> 
> 
> On Jun 2, 2011, at 2:07 PM, Louis Lagendijk wrote:
> 
>> On Thu, 2011-06-02 at 14:01 -0400, RILINDO FOSTER wrote:
>>> It is actually commented out in SL6.
>>> 
>>> 
>>> On Jun 2, 2011, at 11:56 AM, Tom H wrote:
>>> 
>>>> On Mon, May 30, 2011 at 10:53 PM, RILINDO FOSTER <rili...@me.com> wrote:
>>>>> On May 30, 2011, at 10:29 PM, Tom H wrote:
>>>>>> 
>>>>>> Are the values of "Domain" in "/etc/idmapd.conf" the same on the
>>>>>> client and the server?
>>>>>> 
>>>>>> FYI: For nfsv4, there's no need to have any ports other than 111 and 
>>>>>> 2049.
>>>>>> 
>>>>>> (Are you using "fsid=0" as an option?)
>>>>> 
>> Can you please show your /etc/exports? I remember that in Fedora some
>> changes were made which probably included in RHEL6 as well that made
>> fsid superfluous. Here is mine in case it helps you:
>> /export  gss/krb5(fsid=0,sync,insecure,no_subtree_check,no_root_squash)
>> /export/home1
>> gss/krb5(rw,nohide,sync,insecure,no_subtree_check,no_root_squash)
>> /export/home2
>> gss/krb5(rw,nohide,sync,insecure,no_subtree_check,no_root_squash)
>> 
>> Louis
>> 
>> _______________________________________________
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
> 
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to