ceph错误application not enabled on 1 pool(s)解决方法

错误提示

使用 ceph -s 提示集群状态 HEALTH_WARN

[root@ceph01 ~]# ceph -s
  cluster:
    id:     b356ff71-d7e6-4bdf-abae-9bbd141567c3
    health: HEALTH_WARN
            application not enabled on 1 pool(s)
            clock skew detected on mon.ceph02, mon.ceph03
 
  services:
    mon: 3 daemons, quorum ceph01,ceph02,ceph03
    mgr: ceph01(active)
    mds: cephfs-1/1/1 up  {0=ceph02=up:active}, 2 up:standby
    osd: 13 osds: 13 up, 13 in
 
  data:
    pools:   3 pools, 256 pgs
    objects: 24 objects, 121KiB
    usage:   13.1GiB used, 637GiB / 650GiB avail
    pgs:     256 active+clean
 
  • clock skew detected on mon.ceph02, mon.ceph03 集群时间不同步,测试环境忽略,如果是生产环境建议同步集群时间

解决方法

查看具体信息

[root@ceph01 ~]# ceph health detail
HEALTH_WARN application not enabled on 1 pool(s); clock skew detected on mon.ceph02, mon.ceph03
POOL_APP_NOT_ENABLED application not enabled on 1 pool(s)
    application not enabled on pool 'k8s'
    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.
MON_CLOCK_SKEW clock skew detected on mon.ceph02, mon.ceph03
    mon.ceph02 addr 10.10.10.52:6789/0 clock skew 0.663051s > max 0.05s (latency 0.00209386s)
    mon.ceph03 addr 10.10.10.53:6789/0 clock skew 0.221461s > max 0.05s (latency 0.000864047s)

意思是 k8s 存储池未设置应用,设置一个即可

[root@ceph01 ~]# ceph osd pool application enable k8s rbd
enabled application 'rbd' on pool 'k8s'

再次查看应该就不会报错了

[root@ceph01 ~]# ceph -s
  cluster:
    id:     b356ff71-d7e6-4bdf-abae-9bbd141567c3
    health: HEALTH_WARN
            clock skew detected on mon.ceph02, mon.ceph03
 
  services:
    mon: 3 daemons, quorum ceph01,ceph02,ceph03
    mgr: ceph01(active)
    mds: cephfs-1/1/1 up  {0=ceph02=up:active}, 2 up:standby
    osd: 13 osds: 13 up, 13 in
 
  data:
    pools:   3 pools, 256 pgs
    objects: 24 objects, 121KiB
    usage:   13.1GiB used, 637GiB / 650GiB avail
    pgs:     256 active+clean
原文地址:https://www.cnblogs.com/leffss/p/15651294.html