|Skip Navigation Links|
|Exit Print View|
|System Administration Guide: Network Services Oracle Solaris 11 Express 11/10|
NFS referrals are a way for an NFSv4 server to point to file systems located on other NFSv4 servers, as a way of connecting multiple NFSv4 servers into a uniform namespace.
Add the referral on an NFS-shared file system, pointing to one or more existing NFS-shared file systems.
server1% nfsref add /share/docs server2:/usr/local/docs server3:/tank/docs Created reparse point /share/docs
server1% nfsref lookup /share/docs /share/docs points to: server2:/usr/local/docs server3:/tank/docs
client1% pfexec mount server1:/share/docs /mnt
client1% cd /mnt/docs client1% df -k . /mnt/docs (server2:/usr/local/docs):10372284465 blocks 10372284465 files
Example 5-8 Modifying an Existing Referral
If you wanted to add another file system, such as server4:/tank/docs to the existing referral, you would enter the command from step 2 above with the new file system.
server1% nfsref add /share/docs server2:/usr/local/docs server3:/tank/docs server4:/tank/docs
The add subcommand simply replaces the information in the current referral with the new information from the command. The add subcommand is how you would modify the file systems associated with an existing referral.
Follow this procedure to remove an NFS referral.
server1% nfsref remove /share/docs Removed svc_type 'nfs-basic' from /share/docs