non-power-of-two pg_num

2020-05-26  本文已影响0人  Joncc

问题

当 pg_num 不是 2 的幂会进行告警

[root@node201~]# ceph -s
  cluster:
    id:     e1aaecb6-fdcb-4921-80bd-263b21e4d6cf
    health: HEALTH_WARN
            2 pool(s) have non-power-of-two pg_num
 
  services:
    mon: 1 daemons, quorum node205 (age 109m)
    mgr: node205(active, since 109m)
    mds: cephfs:1 {0=node205=up:active(laggy or crashed)}
    osd: 12 osds: 12 up (since 33m), 12 in (since 33m)
 
  data:
    pools:   2 pools, 200 pgs
    objects: 31 objects, 35 MiB
    usage:   15 GiB used, 44 TiB / 44 TiB avail
    pgs:     200 active+clean

解决:

在 /etc/ceph/ceph.conf中添加mon_warn_on_pool_pg_num_not_power_of_two = false

[global]
fsid = e1aaecb6-fdcb-4921-80bd-263b21e4d6cf
...
mon_warn_on_pool_pg_num_not_power_of_two = false

重启mon

上一篇下一篇

猜你喜欢

热点阅读