有时,我的专用服务器的所有网络都会冻结(ssh 也不起作用)。它会随机重复。
操作系统:Ubuntu 14.04.3 LTS
在服务器上安装了docker容器,我看到dmesg 日志:
[1568390.415464] IPv6: ADDRCONF(NETDEV_UP): veth70c3620: link is not ready
[1568390.415571] docker0: port 2(vethfd09262) entered forwarding state
[1568390.415575] docker0: port 2(vethfd09262) entered forwarding state
[1568390.415586] IPv6: ADDRCONF(NETDEV_CHANGE): veth70c3620: link becomes ready
[1568390.453889] eth0: renamed from veth70c3620
[1568405.455565] docker0: port 2(vethfd09262) entered forwarding state
[1568490.807194] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568490.839695] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568490.873185] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.213577] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.248730] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.292433] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.544051] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.571716] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.605760] aufs au_opts_verify:1612:docker[22618]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.858186] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.885767] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568491.919876] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568492.164684] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568492.197225] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568492.233425] aufs au_opts_verify:1612:docker[25041]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568502.618191] veth70c3620: renamed from eth0
[1568502.653605] docker0: port 2(vethfd09262) entered disabled state
[1568502.681529] docker0: port 2(vethfd09262) entered disabled state
[1568502.682111] device vethfd09262 left promiscuous mode
[1568502.682113] docker0: port 2(vethfd09262) entered disabled state
[1568503.037301] aufs au_opts_verify:1612:docker[25411]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568503.071988] aufs au_opts_verify:1612:docker[25370]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568503.102768] aufs au_opts_verify:1612:docker[4932]: dirperm1 breaks the protection by the permission bits on the lower branch
[1568503.103562] device veth6cd39d2 entered promiscuous mode
[1568503.103649] IPv6: ADDRCONF(NETDEV_UP): vethffd65cb: link is not ready
[1568503.103702] docker0: port 2(veth6cd39d2) entered forwarding state
[1568503.103706] docker0: port 2(veth6cd39d2) entered forwarding state
[1568503.103719] IPv6: ADDRCONF(NETDEV_CHANGE): vethffd65cb: link becomes ready
[1568503.146365] eth0: renamed from vethffd65cb
[1568518.132006] docker0: port 2(veth6cd39d2) entered forwarding state
Docker信息:
Containers: 40
Images: 538
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 618
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-25-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 8
Total Memory: 31.29 GiB
Name: crosspromo-inpgngno01.xxxxxxx
ID: EOO2:DMGR:POHZ:VLKM:6KKZ:DX6S:5XIN:X4DA:22HH:L62N:FCI5:O32P
WARNING: No swap limit support
uname -a
Linux crosspromo-inpgngno01.xxxxxxx 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
那么:这是 docker 的问题,还是上行链路接口坏了?
答案1
您正在运行一个已知不能与 Docker 兼容的系统。 从错误来看,它只是反复导致系统崩溃。
- AUFS 不稳定并且已知会导致内核崩溃。
- Ubuntu 14 运行的是旧内核,缺少容器化的关键组件
- Docker 版本较旧,存在大量错误。
您可以先升级到 Ubuntu 16.04 TLS(撰写本文时的最新版本)。祝您好运,Docker 可以正常工作,默认设置通常无法正常工作。
基本上,Docker 在大多数系统上都是完全有问题且不稳定的。请参阅这些文章以了解详细且戏剧性的版本。