###有两个警告
[root@ceph01 myceph]# ceph -s
cluster:
id: 3a10f3b9-4469-44a7-817a-df5cdc8e65da
health: HEALTH_WARN
application not enabled on 2 pool(s)
1 pools have pg_num > pgp_num
###查看警告 detail
[root@ceph01 myceph]# ceph health detail
HEALTH_WARN application not enabled on 2 pool(s)
POOL_APP_NOT_ENABLED application not enabled on 2 pool(s)
application not enabled on pool 'images2'
application not enabled on pool 'images3'
use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.
SMALLER_PGP_NUM 1 pools have pg_num > pgp_num
pool images pg_num 32 > pgp_num 23
###修复
###enable 起来
[root@ceph01 myceph]# ceph osd pool application enable images2 --yes-i-really-mean-it
enabled application '--yes-i-really-mean-it' on pool 'images2'
[root@ceph01 myceph]# ceph osd pool application enable images3 --yes-i-really-mean-it
enabled application '--yes-i-really-mean-it' on pool 'images3'
##设置pg_num 和pgp_num 一致
[root@ceph01 ~]# ceph osd pool set images pgp_num 32
set pool 1 pgp_num to 32
###再次检查
[root@ceph01 ~]# ceph -s
cluster:
id: 3a10f3b9-4469-44a7-817a-df5cdc8e65da
health: HEALTH_OK