博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
记录线上问题:服务器docker进程卡死了,打任何命令都无反应,最终是linux内核bug导致的
阅读量:4148 次
发布时间:2019-05-25

本文共 388 字,大约阅读时间需要 1 分钟。

今天遇到了一个线上问题,公司在阿里云上面香港业务的服务器突然从凌晨开始就down了,	重启服务器和程序也没用,看日志是docker 重启后一直加载中。

查了一下网上的资料,说是xfs文件系统的问题。

进去/var/log/message日志

Docker进程卡死原因:	centos7内核跟docker版本之间的一个bug,过于频繁create/destory container、	pull/push image的时候,当thin pool满时,DeviceMapper后端默认文件系统xfs会不断retry 	失败的IO,导致进程挂起。重启docker,那些挂起的进程也会不断地跑,所以需要在启动参数上面	增加dm.xfs_nospace_max_retries=0。	但我直接把这个参数加到 /etc/docker/daemon.json上面,发现启动失败了。

最终看文档发现,是完整的参数是

在这里插入图片描述

又是一个完美的坑。

转载地址:http://skpti.baihongyu.com/

你可能感兴趣的文章
[LeetCode]Wildcard Matching
查看>>
[LeetCode]Word Ladder
查看>>
[LeetCode]Word Ladder II
查看>>
[LeetCode]Word Search
查看>>
[LeetCode]ZigZag Conversion
查看>>
Divide and Conquer
查看>>
Greedy
查看>>
Dynamic Programming
查看>>
Sorting
查看>>
Bit manipulation
查看>>
Swap all odd and even bits
查看>>
Binary representation of a given number
查看>>
Position of rightmost set bit
查看>>
Write one line C function to find whether a no is power of two
查看>>
Efficient way to multiply with 7
查看>>
Write a C program to find the parity of an unsigned integer
查看>>
Write an Efficient Method to Check if a Number is Multiple of 3
查看>>
Next Power of 2
查看>>
Count number of bits to be flipped to convert A to B
查看>>
Count set bits in an integer
查看>>