NFS Services Administrator's Guide

Contents
4
Deciding Between Standard-Mounted Directories and Automounted Directories. . 75
Enabling an NFS Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Mounting Remote Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Enabling Client-Side Failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Secure Mounting of Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Changing the Default Mount Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Unmounting (Removing) a Mounted Directory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Disabling NFS Client Capability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
NFS Client and Server Transport Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Supporting 1MB Transfer for TCP mounts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Changes to the NFS Server Daemon. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Configuring and Using NFS Netgroups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Creating Netgroups in the /etc/netgroup File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Using Netgroups in Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Configuring RPC-based Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Enabling Other RPC Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Restricting Access to RPC-based Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
3. Configuring and Administering AutoFS
How AutoFS Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Supported Filesystems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
On-Demand Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Browsability for Indirect Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
NFS Loopback Mount. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Map Locations (Backends) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Enabling AutoFS for LDAP Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Enabling AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Disabling AutoFS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Restarting AutoFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
AutoFS Configuration Prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Deciding Between Direct and Indirect NFS Automounts . . . . . . . . . . . . . . . . . . . . . . 114
How AutoFS Sets Up Direct and Indirect Mounts . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Automounting a Remote Directory Using a Direct Map . . . . . . . . . . . . . . . . . . . . . . . 116
Notes on Direct Maps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Sample File Entries for NFS Direct Automounts. . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Automounting a Remote Directory Using an Indirect Map. . . . . . . . . . . . . . . . . . . . . 120