24 Star 23 Fork 332

openGauss / openGauss-OM

 / 详情

gs_checkos A6检查项无法消除warning

已完成
缺陷
创建于  
2022-11-26 18:42

【标题描述】:
gs_checkos A6检查项无法消除warning

【测试类型:工具功能】【测试版本:2.0.0】
问题描述
gs_checkos A6检查项无法消除warning

A6项目vm.min_free_kbytes值手动改为期待值后执行gs_checkos,vm.min_free_kbytes会被改为不符合期待值。

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
FusionOS release 22
Linux wuxshcsitd05975 4.19.90-2112.8.0.0131.u32.fos22.x86_64 #1 SMP Tue Apr 5 16:46:02 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
1主1备
【被测功能】:

【测试类型】:

【数据库版本】(查询命令: gaussdb –V):

【预置条件】:

【操作步骤】(请填写详细的操作步骤):

  1. sysctl -p
  2. cat /proc/sys/vm/min_free_kbytes
    1619740
  3. ./gs_checkos -i A -h wuxshcsitd05975,wuxshcsitd05985 --detail
    Warning reason: variable 'vm.min_free_kbytes' RealValue '112640' ExpectedValue '1619740'.
  4. cat /proc/sys/vm/min_free_kbytes
    112640

【预期输出】:
没有warning

【实际输出】:
有warning

【原因分析】:

  1. 这个问题的根因
  2. 问题推断过程
  3. 还有哪些原因可能造成类似现象
  4. 该问题是否有临时规避措施
  5. 问题解决方案
  6. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (4)

姜植皓 创建了缺陷

Hey @姜植皓, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

Hi @姜植皓,
if you want to get quick review about your issue, please contact the owner in first: @Dawson ,
and then any of the maintainers: @Dawson , @qiumc
and then any of the committers: @joker , @hangjin2020 , @travelliu , @vimiix , @刘珲
if you have any question, please contact the SIG: OM.

opengauss-bot 添加了
 
sig/om
标签
yansong_lee 负责人设置为周斌
yansong_lee 优先级设置为不重要
周斌 添加协作者周斌
周斌 负责人周斌 修改为liuheng
周斌 取消协作者周斌
liuheng 任务状态待办的 修改为已确认
liuheng 任务状态已确认 修改为修复中

修改参数,建议在 /etc/sysctl.conf 中修改

操作步骤:
1.修改之前的参数,可以看到vm.min_free_kbytes=8:q88918
输入图片说明

2.执行./gs_checkos,vm.min_free_kbytes有warning
输入图片说明

3.修改参数 vim /etc/sysctl.conf,改成期望的值
输入图片说明

4.执行sysctl -p 生效参数
输入图片说明
再次执行 ./gs_checkos ,可以看到已经,vm.min_free_kbytes的warning已经消失了
输入图片说明

该问题由于联系不到提单人,已在社区公示2个月,非问题,所以将问题单关闭

liuheng 任务状态修复中 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5622128 opengauss bot 1581905080 7504334 heng5938 1646112316
1
https://gitee.com/opengauss/openGauss-OM.git
git@gitee.com:opengauss/openGauss-OM.git
opengauss
openGauss-OM
openGauss-OM

搜索帮助