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
分类:
ceph
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
2019-12-06 Redis 5.0.7 讲解,单机、集群模式搭建
2019-12-06 Redis 单机模式,主从模式,哨兵模式(sentinel),集群模式(cluster),第三方模式优缺点分析