From 47f56c9d5b633f5573cfbbe65d9a1ea2ac47a9f5 Mon Sep 17 00:00:00 2001 From: Harry-zklcdc Date: Wed, 12 Feb 2025 20:58:56 +0800 Subject: [PATCH] =?UTF-8?q?[Feat]=20=E2=9C=A8=20Add=20FAQ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FAQ.md | 31 +++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 FAQ.md diff --git a/FAQ.md b/FAQ.md new file mode 100644 index 0000000..8410fa8 --- /dev/null +++ b/FAQ.md @@ -0,0 +1,31 @@ +# 常见问题 + +## 1. 在 Ubuntu 24.04 系统部署的被控端, 监控显示的核心数有问题 + +### 解决办法 + +> [!NOTE] +> 重启 lxcfs 前, 请先关闭该节点上的所有容器, 否则可能造成未知错误 + +Ubuntu 24.04 的 lxcfs 服务添加 `--enable-cfs` 特性 + +```bash +vim /usr/lib/systemd/system/lxcfs.service +``` + +这一行 +```bash +ExecStart=/usr/bin/lxcfs /var/lib/lxcfs +``` + +修改为 +```bash +ExecStart=/usr/bin/lxcfs /var/lib/lxcfs --enable-cfs +``` + +重启 lxcfs 服务 + +```bash +systemctl daemon-reload +service lxcfs restart +``` \ No newline at end of file diff --git a/README.md b/README.md index d111cfd..4b8505e 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,4 @@ * [主程序](megrez/README.md) * [被控端](controler/README.md) - +* [常见问题](FAQ.md)