I understand how to configure the /etc/auto.master file. My question is about the mount point in the second map file: is it something we create, or does it originate from somewhere else, such as the NFS server?
I hope someone can clarify this for me.
/etc/auto.master - /mnt /etc/auto.test
/etc/auto.test - /dir11 -rw server:/local/dir1 (Do we create /dir1, or do we get this from the server?)
Thanks.
Hi @Marcus26
The answer to your question you can see in man pages: "Directories of automount points (and any parent directories) are automatically created if needed." However I see misundestending of subj in you example:
/etc/auto.master - /mnt /etc/auto.test is example of using indirect map
/etc/auto.test - /dir1 -rw server:/local/dir1 is example of second map file for using direct map
It should be:
/etc/auto.master - /- /etc/auto.test
/etc/auto.test - /dir1 -rw server:/local/dir1 for direct map using or
/etc/auto.master - /mnt /etc/auto.test
/etc/auto.test - dir1 -rw server:/local/dir1 for indirect map using
Good luck
@Marcus26 Please find your answer in the official documentation here : https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/managing_file_systems/mount... under Map files
So, as per your query : server:/local/dir1 this seems NFS export from server so you dont need to create it.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.