zoukankan      html  css  js  c++  java
  • 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
    
  • 相关阅读:
    在编码转错的情况下,如何恢复
    【娱乐】给你的电脑检查兼容性,并获取你的电脑上安装的软件
    发布一个纯PHP的中文关键字自动提取工具
    [转]程序员能力矩阵 Programmer Competency Matrix
    解决PHP数组内存耗用太多的问题
    哈希表之数学原理
    PHP高级编程之单线程实现并行抓取网页
    如何自动的检测字符串编码
    如何检测网络中断, 并自动重启网卡
    完全二叉树判断,简单而复杂
  • 原文地址:https://www.cnblogs.com/leffss/p/15651294.html
Copyright © 2011-2022 走看看