date: 2021-02-22title: ceph集群状态warning排查 #标题
tags: ceph #标签
categories: 存储 # 分类
问题
集群状态报warning,具体信息如下:
排查
$ ceph health detail # 查看健康细节如下
HEALTH_WARN application not enabled on 1 pool(s)
POOL_APP_NOT_ENABLED application not enabled on 1 pool(s)
application not enabled on pool 'ceph-demo'
use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.
上述信息发现,原因在于我们创建资源池时,没有使用init指令对池进行初始化,所以并没有对池进行分类,我们手动对池进行下分类就好了。
问题解决
# 将 ceph-demo 池分类为 rbd
$ ceph osd pool application enable ceph-demo rbd
enabled application 'rbd' on pool 'ceph-demo'
确定warning信息已解决: