ファイルシステムが NFS マウントとして設定されているにも関わらず、autofs が bind マウントします
Environment
- Red Hat Enterprise Linux 6
- autofs
- NFS
Issue
- ファイルシステムが NFS マウントとして設定されているにも関わらず、autofs が bind マウントします。
# mount | grep share
/export/share on /mnt/myhost/share type none (rw,bind)
Resolution
/etc/auto.master ファイルに nobind オプションを追加します。
/mnt /etc/auto.share nobind
注意: nobind オプションは autofs-5.0.5-73.el6 に追加されます。詳細については、BZ#846870 を参照してください。
Root Cause
- デフォルトでは、autofs は bind マウントを使用して自身をマウントします。
- 以下の AUTO.MASTER(5) を参照してください。
nobind This is an autofs specific option that is a pseudo mount
option and so is given without a leading dash.It may be
used either in the master map entry (so it effects all
the map entries) or with individual map entries to pre-
vent bind mounting of local NFS filesystems.For direct
mount maps the option is only effective if specified on
the first direct map entry and is applied to all direct
mount maps in the master map.It is ignored if given on
subsequent direct map entries.It may be used on individ-
ual map entries of both types.Bind mounting of NFS file
systems can also be prevented for specific map entrys by
adding the "port=" mount option to the entries.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
