How to disable use of bind mounts in autofs when the fs is exported from the local system in RHEL
Issue
-
When
autofs
is configured with an entry for anNFS
filesystem that is exported from the local system, it willbind
mount the exported directory instead of mounting it throughNFS
. Is there a way to disable this functionality so its always mounted viaNFS
?# mount | grep share /export/share on /mnt/myhost/share type none (rw,bind)
-
I want to disable use of
bind
mounts when the fs mount is local.
Environment
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
autofs
NFS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.