«

ceph-pool识别问题

指尖二进制 • 1 年前 • 773 次点击 • CEPH


[root@controller ~]# ceph -s
  cluster:
    id:     73c4cfc1-af4c-4be5-8ad4-fb0ff78b2efc
    health: HEALTH_WARN
            application not enabled on 3 pool(s)
            mon is allowing insecure global_id reclaim

根据提示,需要在images、volumes、vms上开启应用授权(这里的 images、volumes、vms 是我们手动建的 pool)

[root@controller ~]# ceph health detail
HEALTH_WARN application not enabled on 3 pool(s)
POOL_APP_NOT_ENABLED application not enabled on 3 pool(s)
    application not enabled on pool 'images'
    application not enabled on pool 'volumes'
    application not enabled on pool 'vms'
    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.

[root@controller ~]# ceph osd pool application enable images rbd
enabled application 'rbd' on pool 'images'
[root@controller ~]# ceph osd pool application enable volumes rbd
enabled application 'rbd' on pool 'volumes'
[root@controller ~]# ceph osd pool application enable vms rbd
enabled application 'rbd' on pool 'vms'

然后再看dashboard,已经没有报错了,而且block也能识别到了。
这里我们使用了rbd(块设备),pool只能对一种类型进行enable,另外两种类型是cephfs(文件系统),rgw(对象存储)

[root@controller ~]# ceph -s
  cluster:
    id:     73c4cfc1-af4c-4be5-8ad4-fb0ff78b2efc
    health: HEALTH_OK

  services:
    mon: 1 daemons, quorum controller (age 3h)
    mgr: compute01(active, since 30m), standbys: controller, compute02
    osd: 9 osds: 9 up (since 40m), 9 in (since 47h)

  data:
    pools:   3 pools, 384 pgs
    objects: 796 objects, 3.3 GiB
    usage:   19 GiB used, 431 GiB / 450 GiB avail
    pgs:     384 active+clean

mon is allowing insecure global_id reclaim报错。解决方法:禁用不安全模式

[root@controller ~]# ceph config set mon auth_allow_insecure_global_id_reclaim false
还没收到回复