Ceph 集群提示池未启用应用程序告警 | IT运维网
  • 本站启用了账户登录密码错误就锁定模式,如有人误操作被锁请邮件(yvan.lu@ityww.cn)告知我账户名。
  • 本站为个人技术性站点,上面会更新一些系统、网络、虚拟化及云计算等相关的文章,与大家一起参考、学习和交流。
  • 欢迎访问本网站;本站QQ交流群:654792529;如果您觉得本站非常有看点,那么赶紧使用Ctrl+D收藏吧!

Ceph 集群提示池未启用应用程序告警

Ceph yvan 1周前 (09-28) 86次浏览 已收录 0个评论 扫描二维码

现象:

  Ceph集群健康状态提示“pool(s) do not have an application enabled”

[root@ceph1 ~]# ceph -s
  cluster:
    id:     65eec0fe-7b48-11ef-8331-0050562d5487
    health: HEALTH_WARN
            1 pool(s) do not have an application enabled

  services:
    mon: 3 daemons, quorum ceph1,ceph3,ceph2 (age 5m)
    mgr: ceph1.rayllt(active, since 18m), standbys: ceph3.vtywtw
    osd: 3 osds: 3 up (since 18m), 3 in (since 3d)

  data:
    pools:   2 pools, 33 pgs
    objects: 13 objects, 3.5 MiB
    usage:   876 MiB used, 599 GiB / 600 GiB avail
    pgs:     33 active+clean

原因:

  创建池时未配置应用程序导致

解决:

  1、通过命令(ceph health detail)查看提示对应的池名称

[root@ceph1 ~]# ceph health detail
HEALTH_WARN 1 pool(s) do not have an application enabled
[WRN] POOL_APP_NOT_ENABLED: 1 pool(s) do not have an application enabled
    application not enabled on pool 'rbd'
    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.

  2、通过命令(ceph osd pool application enable PoolName cephfs|rbd|rgw)启用解决

[root@ceph1 ~]# ceph osd pool application enable rbd rbd
enabled application 'rbd' on pool 'rbd'
[root@ceph1 ~]# ceph -s
  cluster:
    id:     65eec0fe-7b48-11ef-8331-0050562d5487
    health: HEALTH_OK

  services:
    mon: 3 daemons, quorum ceph1,ceph3,ceph2 (age 7m)
    mgr: ceph1.rayllt(active, since 20m), standbys: ceph3.vtywtw
    osd: 3 osds: 3 up (since 21m), 3 in (since 3d)

  data:
    pools:   2 pools, 33 pgs
    objects: 13 objects, 3.5 MiB
    usage:   876 MiB used, 599 GiB / 600 GiB avail
    pgs:     33 active+clean

IT运维网 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明Ceph 集群提示池未启用应用程序告警
喜欢 (0)
yvan
关于作者:
聪明来自勤奋、知识在于积累、好记性不如烂键盘!

您必须 登录 才能发表评论!