登陆到ceph图形管理界面,如图提示错误
在这里插入图片描述
而且创建的块设备在这里无法显示

解决办法很简单:
进入到rook-ceph-tools这个 pod 中(需要过安装Rook Toolbox)
进入后,查看健康状态:

[root@k8s-product01-ceph01 /]# ceph health
HEALTH_WARN application not enabled on 1 pool(s)
[root@k8s-product01-ceph01 /]# 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 'sata-pool'
    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.

根据最后一句提示,需要在’sata-pool’上开启应用授权(这里的 sata-pool 是我们手动建的 pool)

[root@k8s-product01-ceph01 /]# ceph osd pool application enable sata-pool rbd
enabled application 'rbd' on pool 'sata-pool'

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

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐