我安装四个服务器(3通过cifs
,经由1 sshfs
)使用autofs
。
auto.master
/- /etc/auto.all --timeout=60 --ghost
Run Code Online (Sandbox Code Playgroud)
auto.all
/mnt \
/server1 -fstype=cifs,rw,credentials=/etc/.smbcredentials.txt,uid=1000,file_mode=0775,dir_mode=0775,users ://server1/ \
/server2/ -fstype=cifs,rw,credentials=/etc/.smbcredentials.txt,uid=1000,file_mode=0775,dir_mode=0775,users ://server2/ \
/server3 -fstype=cifs,rw,credentials=/etc/.smbcredentials.txt,uid=1000,file_mode=0775,dir_mode=0775,users ://server3/ \
/server4 -fstype=fuse,rw,allow_other,uid=1000,users,reconnect,cache=yes,kernel_cache,compression=no,large_read,Ciphers=arcfour :sshfs\#user@server\:/home
Run Code Online (Sandbox Code Playgroud)
``
当我进行干净启动时,一切都很好。我连接到我的网络(使用 VPN)并autofs
安装所有内容。
当网络断开时,例如当我休眠我的笔记本电脑或连接到不同的网络时,autofs
会导致我的资源管理器(海豚)冻结,因为它试图无限加载远程共享。
它变得无响应,甚至不响应 SIGTERM 命令。有时候,我很幸运,并呼吁sudo service autofs stop
并sudo automount
帮助解决问题。然而,它通常仍然保持冻结状态。有时,我的整个 Dock 甚至会因为这使所有应用程序无法选择而冻结。然后我必须完全重新启动..
我已经搜索了数周来寻找如何处理autofs
这种情况的解决方案。在使用 之前autofs
,我通过安装了所有东西,/etc/fstab
但在每次网络中断后也需要手动重新安装。
我以为autofs
会在这里帮助我,但它给我带来了更多的麻烦。
autofs
?PS:我在 Kubuntu 16.04
运行全新的 Ubuntu 16.04 和 Debian 8 服务器。尝试通过 ssh 连接并获得以下奇怪的终端输出。我指的是带有数字的矩形。
语言设置的问题是我自己为了解决刚才提到的问题而引入的,因为我认为一些编码问题是有责任的。经过 3 小时的调试,我需要您的帮助!
也许这只是一个缺少的图书馆?很难搜索这样的图形问题......
local@local:~$ ssh dummy@server
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Jul 9 17:22:43 2016 from x590c3909.dyn.telefonica.de
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale …
Run Code Online (Sandbox Code Playgroud)