How to disable use of bind mounts in autofs when the fs is exported from the local system in RHEL

Solution Verified - Updated -

Issue

  • When autofs is configured with an entry for an NFS filesystem that is exported from the local system, it will bind mount the exported directory instead of mounting it through NFS. Is there a way to disable this functionality so its always mounted via NFS?

    # 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content