Autofs and Automounter Flashcards
Install all necessary packages for autofs
yum install autofs -y
Check to see if autofs files are present
ls /etc/auto*
What does the automounter do?
Allows you to create dynamic mounts. When you access NFS mounts for can access them but over a period of time they will umount. Its a way to access mountpoints without the system having to maintain those mounts.
Configuration file for timeout
/etc/autofs.conf
Primary configuration file:
/etc/auto.master
Start and enable autofs
systemctl start autofs
systemctl enable autofs
systemctl status autofs
Add nfs mount to the auto.misc
esbdata -ro lx00016140p:/app01/esbdata
ls /misc/esbdata
Steps to create home directories dynamically in the home directory
mkdir /home/ldap
vim /etc/auto.master.d/home.autofs
/home/ldap /etc/auto.home
vim /etc/auto.home
- mount.cert.com:/home/ldap/&
or
vim /etc/auto.master
/home /etc/home.map
vim /etc/home.map
* -rw server:/home/&