NFS Services Administrator's Guide (762805-001, March 2014)

Notes on Direct Maps....................................................................................................62
Sample File Entries for NFS Direct Automounts..................................................................63
Automounting a remote directory using an indirect map..........................................................63
Notes on Indirect Maps.................................................................................................64
Sample File Entries for NFS Indirect Automounts................................................................64
Using environment variables as shortcuts in AutoFS maps.............................................................65
Using wildcard characters as shortcuts in AutoFS maps................................................................66
Notes on using wildcard characters as shortcuts in maps.........................................................66
Automounting home directories.................................................................................................67
Example of automounting a user’s home directory..................................................................68
Special maps.........................................................................................................................68
Automounting all exported directories from any host using the -hosts map..................................68
Notes on the -hosts Map................................................................................................69
Turning off an AutoFS map using the -null map.......................................................................70
Notes on the -null Map..................................................................................................70
Using executable maps.......................................................................................................70
Advanced AutoFS administration..............................................................................................71
Automounting multiple directories (Multiple Mounts)...............................................................71
Configuring replicated servers for an AutoFS directory............................................................71
Example of using the /etc/netmasks File..........................................................................72
Notes on Configuring Replicated Servers..........................................................................72
Including a map in another map..........................................................................................73
Creating a hierarchy of AutoFS maps...................................................................................73
Sample map hierarchy...................................................................................................73
Modifying or removing an Automounted directory from a map.....................................................74
Verifying the AutoFS configuration............................................................................................74
Disabling AutoFS....................................................................................................................75
Restarting AutoFS....................................................................................................................75
Troubleshooting AutoFS...........................................................................................................76
AutoFS logging..................................................................................................................76
To Start AutoFS Logging.................................................................................................76
To Stop AutoFS Logging.................................................................................................77
AutoFS tracing...................................................................................................................77
To Start and Stop AutoFS Detailed Tracing........................................................................77
To Start AutoFS Basic Tracing..........................................................................................77
To Stop AutoFS Basic Tracing .........................................................................................78
AutoFS Tracing Output...................................................................................................78
Mount Event Tracing Output.......................................................................................78
Unmount Event Tracing Output...................................................................................79
AutoFS configuration in build environment.............................................................................79
4 Configuring and administering a cache filesystem.........................................81
CacheFS overview..................................................................................................................81
CacheFS terms.......................................................................................................................81
How CacheFS works...............................................................................................................82
Features of CacheFS...............................................................................................................83
Configuring and administering CacheFS....................................................................................84
Creating a CacheFS cache..................................................................................................84
Mounting an NFS filesystem using CacheFS...........................................................................85
Switching Mount Options...............................................................................................85
Automounting a filesystem using CacheFS.............................................................................86
Enabling logging in CacheFS..............................................................................................86
Disabling logging in CacheFS.............................................................................................87
Caching a complete binary.................................................................................................87
Packing a Cached filesystem................................................................................................88
Contents 5