ceph錯誤application not enabled on 1 pool(s)解決方法
阿新 • • 發佈:2021-12-06
錯誤提示
使用 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