Testing NFS v4 referrals

Steve Dickson SteveD at redhat.com
Thu Jun 28 12:26:13 EDT 2007



Shirish Pargaonkar wrote:
> Hello,
> 
> I am working on validating the replication and migration functionality 
> in NFS.
> I started with testing referrals but do not see client being directed
> to another server.
> Here is the setup, two NFS v4 servers (one RHEL5 and one SLES10) and
> one NFS v4 client (RHEL5).
> 
> -------------------------------------------------------------------------------------------- 
> 
> 
> NFS server 1 RHEL5 (linux-nfs1)
> 
> kernel    2.6.22-rc2
> nfs-utils 1.10.12
> 
> #cat /etc/exports
> /export     *(rw,fsid=0,insecure,no_root_squash,sync,no_subtree_check)
> /export/fs1 *(rw,nohide,insecure,no_root_squash,sync,no_subtree_check)
> /export/fs2 
> *(rw,nohide,insecure,no_root_squash,sync,no_subtree_check,refer=/fs2 at cifstest6) 
> 
> /export/fs3 *(rw,nohide,insecure,no_root_squash,sync,no_subtree_check)
> /noacl      *(rw,subtree_check,no_root_squash,no_acl)
> 
> #/etc/init.d/idmapd start
> #/etc/init.d/nfs    start
> 
> 
> #mount
> /nfsv4fs/fs1 on /export/fs1 type none (rw,bind)
> /nfsv4fs/fs2 on /export/fs1 type none (rw,bind)
> /nfsv4fs/fs3 on /export/fs1 type none (rw,bind)
> 
> --------------------------------------------------------------------------------------------- 
> 
> 
> NFS server 2 SLES10  (cifstest6)
> 
> kernel      2.6.16.20-0.12-smp
> nfs-utils   1.0.7-36
> 
> 
> #cat /etc/exports
> /export     *(rw,fsid=0,insecure,no_root_squash,sync,no_subtree_check)
> /export/fs1 *(rw,nohide,insecure,no_root_squash,sync,no_subtree_check)
> /export/fs2 *(rw,nohide,insecure,no_root_squash,sync,no_subtree_check)
> 
> #/etc/init.d/idmapd start
> #/etc/init.d/nfs    start
> 
> #mount
> /path/fs1 on /export/fs1 type none (rw,bind)
> /path/fs2 on /export/fs1 type none (rw,bind)
> 
> --------------------------------------------------------------------------------------------- 
> 
> 
> NFS client 1 RHEL5 (linux-nfs2)
> 
> kernel    2.6.22-rc2
> nfs-utils 1.10.12
> 
> #/etc/init.d/idmapd start
> 
> #mount
> linux-nfs1:/ /mnt type nfs4 (rw,addr=1.2.345.67)
> cifstest6:/ /mnt2 type nfs4 (rw,addr=2.3.456.78)
> 
> 
> --------------------------------------------------------------------------------------------- 
> 
> 
> After I unmount /mnt2 (which was done to verify that nfsv4 mounts from
> cifstest6 work),
> when I do ls on /mnt/fs2, I do not see any traffic between the client
> and second server
> 
> 
> # ls /mnt/fs1
> file1
> 
> # ls /mnt/fs2
> ls: /mnt/fs2: No such file or directory
> 
> I do see server 1 (linux-nfs1) sending NFs4ERR_MOVED as a response
> getfh request for fs2
> and client 1 (linux-nfs2) getattr'ing for FS_LOCATIONS attribute and
> receiving that data,
> but client 1 is not contacting server 2 (cifstest6) to mount the
> filesystem after obtaining
> data for fs_locations attribute, instead client 2 (linux-nfs2) keeps
> asking for attributes
> from server 1 (linux-nfs1)
> 
> 
> What am I missing here?
Make sure you have the latest and greatest nfs-utils version (at
least on the RHEL side) since there is some mountd support
that is needed...


steved.


More information about the NFSv4 mailing list