NFSREF(8) | System Manager's Manual | NFSREF(8) |
nfsref - manage NFS referrals
nfsref [-?d] [-t type] add pathname server export [ server export ... ]
nfsref [-?d] [-t type] remove pathname
nfsref [-?d] [-t type] lookup pathname
NFS version 4 introduces the concept of file system referrals to NFS. A file system referral is like a symbolic link on a file server to another file system share, possibly on another file server. On an NFS client, a referral behaves like an automounted directory. The client, under the server's direction, mounts a new NFS export automatically when an application first accesses that directory.
Referrals are typically used to construct a single file name space across multiple file servers. Because file servers control the shape of the name space, no client configuration is required, and all clients see the same referral information.
The Linux NFS server supports NFS version 4 referrals. Administrators can specify the refer= export option in /etc/exports to configure a list of exports from which the client can choose. See exports(5) for details.
The nfsref(8) command is a simple way to get started managing junction metadata. Other administrative commands provide richer access to junction information.
Valid nfsref(8) subcommands are:
Suppose you have two file servers, top.example.net and home.example.net. You want all your clients to mount top.example.net:/ and then see the files under home.example.net:/ automatically in top:/home.
On top.example.net, you might issue this command as root:
# mkdir /home
# nfsref --type=nfs-basic add /home home.example.net /
Created junction /home.
exports(5)
RFC 5661 for a description of NFS version 4 referrals
Chuck Lever <chuck.lever@oracle.com>
9 Jan 2018 |