我使用 autofs 挂载我们服务器 (cifs) 的驱动器,这在过去运行良好。将 Ubuntu 从 15.04 (Vivid) 更新到 15.10 (Wily) 后,这些挂载点会定期挂断。ls /mnt/serverdrive/{mountpoint}不会给出任何结果,但会导致终端冻结。我过去在使用 fstab 时遇到过类似的问题 - 并认为这是我们的 Windows 服务器超时。Autofs 是当时的解决方案。
但是,我不知道是什么导致了 autofs 中的这种冻结,也不知道在哪里搜索问题。一段时间后,挂载点偶尔会再次访问。不过,通过 Nautilus 访问没有问题。
升级到 15.10 时,我将我的配置复制到新的(默认)auto.master 中。我的auto.master配置如下。auto.cifs-shares中的配置是我之前的配置,没有变化。
sudo service restart autofs也无济于事。
是我的配置有问题还是新的 autofs-packages 有问题?最终还与:https : //bugs.launchpad.net/ubuntu/+source/autofs/+bug/1503034 ?
谢谢大家!
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
# The included files must conform to the format of this file.
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
# Own configs from ubuntu 15.04
/mnt/merkur /etc/auto.cifs-shares
Run Code Online (Sandbox Code Playgroud)
小智 5
你可以得到一些线索,按照调试步骤:
如果在自动挂载文件系统时遇到问题,在前台运行 automount 可能会很有用。
停止 autofs 守护进程
sudo service autofs stop
Run Code Online (Sandbox Code Playgroud)使用详细信息在前台运行自动挂载
sudo automount -f -v
Run Code Online (Sandbox Code Playgroud)从另一个终端,尝试通过将目录更改为挂载点来挂载您的文件系统。
https://help.ubuntu.com/community/Autofs
| 归档时间: |
|
| 查看次数: |
3649 次 |
| 最近记录: |