The two Linux automounters that can be configured and used on the Red Hat Linux system are:
autofs
systemd.automount
amd is not an automounter, but a package manager for AMD64 systems.
autofs is the traditional automounter for Linux. It has been around for many years and is very powerful and flexible. However, it can be complex to configure.
systemd.automount is a newer automounter that is integrated with the systemd system and service manager.
It is simpler to configure than autofs, but it is not as powerful. Which automounter you choose depends on your needs and preferences. If you need a powerful and flexible automounter, autofs is a good choice. If you need a simpler and easier-to-configure automounter, systemd.automount is a good choice.
Here is a table comparing the two automounters:
Feature
autofs
systemd.automount
Maturity
Mature
Newer
Power and flexibility
Powerful and flexible
Less powerful and flexible
Complexity
Complex to configure
Simpler to configure
Integration with systemd
Not integrated
Integrated
There are two Linux automounters that can be configured and used on the Linux system:
Automounters in Red Hat Linux
Automounting is a mechanism that provides automatic mounting and unmounting of filesystems, typically upon access or after a specified period of inactivity. On Red Hat Linux systems, two predominant automounters can be configured and utilized: `autofs` and `amd`.
1. autofs
Description: `autofs` is the default automount daemon used in Red Hat Linux and its derivatives. It uses kernel-based automounting facilities and manages the automatic mounting and unmounting of filesystems defined in its configuration.
Configuration File: The main configuration file for `autofs` is `/etc/auto.master`. Secondary or map files, often named `/etc/auto.*`, are specified within this main file. These map files define specific mount points and their associated sources.
Service Management:
Starting: `systemctl start autofs`
Stopping: `systemctl stop autofs`
Enabling on Boot: `systemctl enable autofs`
Key Features:
Supports a variety of map sources, including local files, NIS, and LDAP.
Can mount NFS, CIFS, and other network and local filesystems.
Provides timeout-based unmounting to free resources when not in use.
2. amd (Automounter Daemon)
Description: `amd` is an alternative automounter that predates `autofs`. While less commonly used today in Red Hat environments than `autofs`, `amd` remains a viable choice for certain scenarios, especially in environments with legacy configurations or specific needs.
Configuration File: The primary configuration file for `amd` is `/etc/amd.conf`. Mount maps are defined in separate map files referenced from the main configuration.
Service Management:
Starting: `systemctl start amd`
Stopping: `systemctl stop amd`
Enabling on Boot: `systemctl enable amd`
Key Features:
Provides advanced features like caching and replication.
Supports hierarchical mounts.
Possesses a more complex configuration than `autofs`, but offers finer control in some aspects.
Both `autofs` and `amd` offer robust solutions for automounting needs on Red Hat Linux. While `autofs` is more commonly employed due to its simplicity and integration into modern Red Hat systems, `amd` remains a powerful tool, especially for specialized use cases. Administrators should assess their specific requirements to determine the best choice for their environment.
amd and autofs. amd is user-level and requires no kernel support; autofs requires kernel support, but is simpler to administer. autofs kernel support is built into the stock kernel installed by the Red Hat Linux distribution.
However, the autofs RPM must be installed and local configuration may be required.
map file definition: "in automounter parlance, a configuration file that associates a directory key with a device to mount when that directory key is accessed."
autofs has a master configuration file and a second type of configuration file, a map file for each autofs filesystem mount point.
autofs master file | Entry in /etc/auto.master
The master configuration file /etc/auto.master contains the overall automount configuration, illustrated in the following diagram.
autofs map file
The map file /etc/auto.misc has entries such as the following:
/etc/rc.d/init.d/autofs status will report the status and location of all automounter active mount points. Other options that can be used with autofs include start, stop, and reload, which perform the obvious actions. For example, /etc/rc.d/init.d/autofs stop will stop the automounter and deactivate any currently active automatic mount points.
If you make changes to the automounter, you should reboot to verify that it comes up. If it fails, you should make autofs automatically run with the command
chkconfig, add autofs.
The following simulation walks you through the process of setting up the automounter. Perform Redhat Automounter Steps
The next lesson describes network file synchronization.
SettingUp Automounter
The following paragraph checks your understanding of how to set up the automounter.
Setting up automounter
This exercise asked you to simulate the process required to install and configure the automounter to automount your CD-ROM and make it accessible at
/local_cd
.
The following screen illustrates the results.
File systems
Kernel automounter version 4 support (also supports v3) N