![]() Maps are a collection of automounts that are related by mount point organized in the same file or location in directory services. auto_master The /etc/auto_master file defines which maps are available. The /etc/nf file also has settings related to logging, tracing, and general mount options. Administrators can set the duration before an unused export or share is unmounted by editing the /etc/nf file and changing the AUTOMOUNT_TIMEOUT option. In Mac OS X, this is set by default for 60 minutes. Automount Timeout and Other Autofs Options One of the advantages of using autofs is that it will mount exports or shares when the mount point is accessed, or triggered, and unmount them when they have not been used for a specified time. Note that the -v option is only useful for verifying whether automount understood any changes. Following is the command for running automount: sudo automount -vc Autofs will attempt to unmount exports or shares that have been removed and create triggers and mounts for any automounts added to the configuration. If the -c flag is specified, the cache will be cleared. If the -v flag is specified, it will run with verbose output. This allows administrators to make changes in one place and automatically propagate the maps to client systems.Ĥ 4 Applying Changes Any changes made to the autofs configuration and maps can be applied immediately by running automount. All maps are stored in directory services (either NIS or LDAP) and discovered through directory service calls. ![]() Autofs needs to automatically discover NFS servers with exports and create mounts as administrators navigate to folders with the same name as the export using the -hosts map. Autofs can either mount them in the same place (the -fstab maps) or in the location specified by the fstab entry using -static maps. fstab format entries can come from /etc/fstab, local directory services, or Open Directory. Autofs needs to mount maps in fstab format. A list of mounts exists in a format that autofs cannot understand (configured in autofs by calling a script for the mount whenever a local directory is accessed the script passes back the path to be mounted using an executable map). ![]() A number of exports or file shares from different servers or the same server need to be mounted inside the same directory (configured in autofs using indirect maps). ![]() It addresses a multitude of scenarios: A number of exports or file shares need to be mapped to different places in the local file system (configured in autofs using direct maps). Background Autofs solves the problem of mounting and unmounting volumes to client machines. This how-to guide for system administrators covers the features of autofs, describes how to set it up, and offers tips on how to integrate it into directory services. Administrators can specify automount paths for an entire organization using the same standard automounter maps supported by Linux or Solaris to provide greater compatibility with other UNIX-based systems. The Finder and other applications do not have to wait for one mount to be completed before requesting another, resulting in increased responsiveness. The autofs file system in Mac OS X is multithreaded, keeps track of which paths are located on remote Apple Filing Protocol (AFP), Server Message Block (SMB), or Network File System (NFS) file servers even across symlinks and automatically mounts the appropriate server. Autofs uses standard autofs maps already familiar to Solaris and Linux administrators, and the new automounting capabilities in Leopard offer a robust and expanded feature set for automatically mounting file shares in Mac OS X systems. Mounting network file shares is a useful technique when a directory or file share on one server needs to be accessible from other servers or client machines on the network. 1 Autofs: Automatically Mounting Network File Shares in Mac OS X Technical White Paper June 2009Ģ 2 Contents Overview Background Applying Changes Automount Timeout and Other Autofs Options auto_master Direct, Indirect, and Executable Maps Direct Maps Indirect Maps Executable Maps Wildcards and Submounts Mount Options Special Maps fstab Static Automounts Directory Utility Server Admin Hosts Automounts File System Options Maps in Directory Services Autofs Maps and Automounts via LDAP Advanced LDAP Configuration Configuring Mac OS X to Access Maps in LDAP Setting Up Autofs to Use Directory Services NIS Schema Example Autofs in Mac OS X Dots Versus Underscores automountinformation Format Wildcards Finder Integration Kerberized NFS Other Ways to Mount User Home Directories Deep Mounts Conclusion Glossary Appendix: Test Source Codeģ 3 Overview Mac OS X v10.5 Leopard offers a new way of automatically mounting network file shares: autofs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |