NFS Services Administrator's Guide (B.11.31.02) January 2008
If the NFS server onc21 is down, the client accesses NFS server onc23.
To verify if the failover is in effect, enter the following command:
nfsstat -m
An output similar to the following output is displayed:
/Clay from onc21:/home/Casey,onc23:/home/Casey
Flags:
vers=3,proto=tcp,sec=sys,hard,intr,llock,link,symlink,acl,
devs,rsize=32768,wsize=32768,retrans=5,timeo=600
Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60
Failover: noresponse=0,failover=0,remap=0,currserver=atcux8
The Failover line in the above output indicates that the failover is working.
Examples of NFS Mounts
• Mounting a directory as read-only with no set userid privileges
mount -r -o nosuid broccoli:/usr/share/man /usr/share/man
In this example, the NFS clients mount the /usr/share/man directory from the NFS server
broccoli. The local mount-point is also /usr/share/man. The directory is mounted as
read-only.
Figure 2-3 illustrates this example.
Figure 2-3 NFS Mount of manpages
NFS Server "Broccoli"
Local NFS Client
/
/usr /etc /opt
/share
/man
/man1 /man2 /man3
/
/usr /etc /opt
/share
/man
/man1 /man2 /man3
• Mounting a Home directory
mount -r -o nosuid broccoli:/home/broccoli /home/broccoli
mount -r -o nosuid cauliflower:/home/cauliflower /home/cauliflower
In this example, the NFS client mounts the home directories from NFS servers broccoli
and cauliflower . The nosuid option prevents programs with setuid permission from
executing on the local client.
Figure 2-4 illustrates this example.
Figure 2-4 NFS Mount of Home Directories
NFS Server cauliflower
Local NFS Client
/
/home /etc/usr
/cauliflower
/
/home /etc/usr
/cauliflower
/broccoli
NFS Server broccoli
/
/home /etc/usr
/broccoli
/sandra
/wendy
/claudia
/ann
/sandra
/wendy
/claudia
/ann
42 Configuring and Administering NFS Services