cancel
Showing results for 
Search instead for 
Did you mean: 
Marcus26
Mission Specialist
Mission Specialist
  • 266 Views

Question able Autofs Map files

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.

2 Replies
ARoumiantsev
Flight Engineer
Flight Engineer
  • 251 Views

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

Chetan_Tiwary_
Community Manager
Community Manager
  • 220 Views

@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 

Chetan_Tiwary__0-1754672732080.png

So, as per your query : server:/local/dir1  this seems NFS export from server so you dont need to create it. 

0 Kudos
Join the discussion
You must log in to join this conversation.