幼敏悟过人,读书辄成诵。这篇文章主要讲述cadvisor 运行报错/sys/fs/cgroup/cpuacct,cpu: no such file or directory相关的知识,希望能为你提供帮助。
【cadvisor 运行报错/sys/fs/cgroup/cpuacct,cpu: no such file or directory】运行docker监控容器cadvisor的时候提示如下错误
Dec 13 17:36:39 prd_java-cc8 dockerd-current[2586]: W1213 17:36:39.1856061 manager.go:349] Could not configure a source for OOM detection, disabling OOM events: open /dev/kmsg: no such file or directory
Dec 13 17:36:39 prd_java-cc8 dockerd-current[2586]: F1213 17:36:39.2520121 cadvisor.go:172] Failed to start container manager: inotify_add_watch /sys/fs/cgroup/cpuacct,cpu: no such file or directory
Dec 13 17:36:39 prd_java-cc8 dockerd-current[2586]: time="2021-12-13T17:36:39.432483334+08:00" level=warning msg="f9d2bf4404dbe433d4fe063483b63f7d3e6222b79e538a66f3a4e92ef2331d68 cleanup: failed to unmount secrets: invalid argument"
解决办法
mount -o remount,rw /sys/fs/cgroup/
ln -s /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/cpuacct,cpu
mount -o remount,ro /sys/fs/cgroup/
推荐阅读
- 1-3年Java开发工程师面试心得分享,精选面试题40道[2021-12-10持续更新]
- #yyds干货盘点#挑战40天从 Python菜鸟变大咖
- #yyds干货盘点#JavaSE系列Java程序设计基础——数据类型变量与运算符
- #yyds干货盘点#Windows/Mac 安装使用 Python 环境 +jupyter notebook
- pxe+kickstart自动安装系统
- Ubuntu12.04可用的源
- #yyds干货盘点#Windows Server之域控转移后清理元数据
- 虚拟机中windows与宿主机文件共享
- Windows和Linux网络威胁入侵的应急响应思路和方法