赞
踩
执行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
由于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.
报错信息是mypool没有指定应用类型,应用类型可以是3个中的任意一个那么这里就把它作为cephfs
ceph osd pool application enable mypool cephfs
enabled application 'cephfs' on pool 'mypool'
再次查看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
好了报错消失
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。