ceph troubleshooting

1 输入ceph -s,出现如下内容


原因:ceph cluster中osd的数量较少,但是又创建了多个pool。

改正方法:

在ceph.conf文件中添加内容:mon_pg_warn_max_per_osd = 1000,然后重新mon服务,接着查看就会看到如下内容:


PS: 重启ceph mon服务的命令为:systemctl start(stop/status) ceph-mon@monnodename.service,其中monnodename可以通过如下命令查看: systemctl list-units --type=service | grep ceph

上述fix 方法只适用于v12.x.x版本以前,v12版本以后配置参数mon_pg_warn_max_per_osd已经被取消了,官方内容为;

The maximum number of PGs per OSD before the monitor issues a warning has been reduced from 300 to 200 PGs. 200 is still twice the generally recommended target of 100 PGs per OSD. This limit can be adjusted via the mon_max_pg_per_osd option on the monitors. The older mon_pg_warn_max_per_osd option has been removed.

可以通过如下命令查看mon_max_pg_per_osd的大小:


可以通过修改 mon_max_pg_per_osd的值来消除warning。在/etc/ceph/ceph.conf 文件中加入mon_mon_pg_per_osd然后重启mgr进程就可以消除warning。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值