'# ceph -s

[root@node01 ~]#ceph -s
cluster:
id: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
health: HEALTH_WARN
application not enabled on 1 pool(s)

services:
mon: 3 daemons, quorum a,b,c
mgr: a(active), standbys: b, c
osd: 6 osds: 6 up, 6 in

data:
pools: 17 pools, 472 pgs
objects: 16 objects, 1.9 KiB
usage: 360 MiB used, 3.4 TiB / 3.4 TiB avail
pgs: 472 active+clean

 

 

根据提示把pool设置

[root@localhost Keyring]# ceph health detail
HEALTH_WARN application not enabled on 1 pool(s)
POOL_APP_NOT_ENABLED application not enabled on 1 pool(s)
application not enabled on pool ‘.rgw.root’
use ‘ceph osd pool application enable <pool-name> <app-name>’, where <app-name> is ‘cephfs’, ‘rbd’, ‘rgw’, or freeform for custom applications.

 

 

[root@localhost Keyring]# ceph osd pool application enable .rgw.root rgw
enabled application ‘rgw’ on pool ‘.rgw.root’