NFS Services Administrator's Guide

Contents
3
1. Installing the NFS Services
Installing the NFS Services Software. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Overview of the NFS Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2. Configuring and Administering NFS
Preparing for NFS Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
To Check the Network Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
To Set User IDs and Group IDs (if neither NIS nor NIS+ is used) . . . . . . . . . . . . . . 23
To Ensure that No User is a Member of Too Many Groups . . . . . . . . . . . . . . . . . . . . 24
Configuring and Administering an NFS Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
To Make Directories Available to NFS Clients (Export Directories) . . . . . . . . . . . . . 26
Examples from /etc/exports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
To Enable NFS Server Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
To Remove (Unexport) an Exported Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
To Enable PC NFS Server Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
To Disable NFS Server Capability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Configuring and Administering an NFS Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Deciding Between Automounter and AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Deciding Between Standard-Mounted Directories and Automounted Directories . . 37
To Mount a Remote Directory Using a Standard NFS Mount . . . . . . . . . . . . . . . . . . 42
Example NFS Mount of man pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Example NFS Mount of Home Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
To Enable NFS Client Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
To Verify Your NFS Client Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
To Change the Default Mount Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
To Ensure Data Integrity Between the Client and Server. . . . . . . . . . . . . . . . . . . . . 55
To Remove (Unmount) a Mounted Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
To Disable NFS Client Capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
NFS Client and Server Transport Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
NFS Client Transport Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Support of 32K Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Specifying TCP or UDP Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
NFS Server Transport Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Changes to the NFS Server Daemon (nfsd). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Severing the Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Configuring and Administering the NFS Automounter . . . . . . . . . . . . . . . . . . . . . . . . 62
To Automount All Exported Directories from Any Host Using the -hosts Map . . . . 63
To Decide Between Direct and Indirect NFS Automounts. . . . . . . . . . . . . . . . . . . . . 66