当前位置:   article > 正文

Ceph故障排除: 1 pool(s) do not have an application enabled

1 pool(s) do not have an application enabled

1. 现象

执行ceph -s时有报错:1 pool(s) do not have an application enabled

root@ceph-mgr01:/apps# ceph -s
  cluster:
    id:     86c42734-37fc-4091-b543-be6ff23e5134
    health: HEALTH_WARN
            1 pool(s) do not have an application enabled
 
  services:
    mon: 3 daemons, quorum ceph-mon01,ceph-mon02,ceph-mon03 (age 4h)
    mgr: ceph-mgr01(active, since 84m)
    mds: 2/2 daemons up, 2 standby
    osd: 16 osds: 16 up (since 4h), 16 in (since 5d)
    rgw: 2 daemons active (2 hosts, 1 zones)
 
  data:
    volumes: 1/1 healthy
    pools:   10 pools, 273 pgs
    objects: 1.13k objects, 17 MiB
    usage:   1.1 GiB used, 15 GiB / 16 GiB avail
    pgs:     273 active+clean

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

2. 故障排除

由于ceph -s报错内容不是很明确,只是说了有个pool 没有启用应用,
运行 ceph health detail 查看报错详情

# 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 'mypool'
    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.
  • 1
  • 2
  • 3
  • 4
  • 5

报错信息是mypool没有指定应用类型,应用类型可以是3个中的任意一个那么这里就把它作为cephfs

ceph osd pool application enable mypool cephfs
enabled application 'cephfs' on pool 'mypool'
  • 1
  • 2

再次查看ceph状态

root@ceph-mgr01:/apps# ceph health detail 
HEALTH_OK
root@ceph-mgr01:/apps# ceph -s
  cluster:
    id:     86c42734-37fc-4091-b543-be6ff23e5134
    health: HEALTH_OK
 
  services:
    mon: 3 daemons, quorum ceph-mon01,ceph-mon02,ceph-mon03 (age 4h)
    mgr: ceph-mgr01(active, since 95m)
    mds: 2/2 daemons up, 2 standby
    osd: 16 osds: 16 up (since 4h), 16 in (since 5d)
    rgw: 2 daemons active (2 hosts, 1 zones)
 
  data:
    volumes: 1/1 healthy
    pools:   10 pools, 273 pgs
    objects: 1.13k objects, 17 MiB
    usage:   1.1 GiB used, 15 GiB / 16 GiB avail
    pgs:     273 active+clean
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

好了报错消失

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/491063
推荐阅读
相关标签
  

闽ICP备14008679号