次の行を含む RHEL 7 サーバーがあります/etc/fstab
:
\\10.0.0.1\backup /mnt/backup cifs user,uid=500,rw,suid,username=admin,password=password 0 0
mount -a
これは他の CentOS 6 および RHEL 6 サーバーで使用しているのとまったく同じ行ですが、この単一の RHEL 7 ボックスでは、再起動するたびに接続して実行する必要があるようです。
これを自動的に解決する方法はありますか?
答え1
_netdev
およびマウント オプションを使用して、auto
マウントが起動時に実行され、ネットワークが起動して実行される前に試行されないようにする。
_netdev
The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system). ....
auto
Can be mounted with the -a option.