4.11. 启用客户端应用程序
Red Hat Ceph Storage 为池提供额外的保护,以防止未经授权的客户端将数据写入池。这意味着系统管理员必须以表达方式启用池,以便从 Ceph 块设备、Ceph 对象网关、Ceph Filesystem 或自定义应用接收 I/O 操作。
启用客户端应用程序对池执行 I/O 操作:
语法
ceph osd pool application enable POOL_NAME APP {--yes-i-really-mean-it}
其中 APP 是:
-
cephfs用于 Ceph 文件系统。 -
rbd,表示 Ceph 块设备。 -
rgw用于 Ceph 对象网关。
注意
为自定义应用程序指定不同的 APP 值。
重要
未启用的池将生成 HEALTH_WARN 状态。在这种情况下,ceph health detail -f json-pretty 的输出给出以下输出:
{
"checks": {
"POOL_APP_NOT_ENABLED": {
"severity": "HEALTH_WARN",
"summary": {
"message": "application not enabled on 1 pool(s)"
},
"detail": [
{
"message": "application not enabled on pool '_POOL_NAME_'"
},
{
"message": "use 'ceph osd pool application enable _POOL_NAME_ _APP_', where _APP_ is 'cephfs', 'rbd', 'rgw', or freeform for custom applications."
}
]
}
},
"status": "HEALTH_WARN",
"overall_status": "HEALTH_WARN",
"detail": [
"'ceph health' JSON format has changed in luminous. If you see this your monitoring system is scraping the wrong fields. Disable this with 'mon health preluminous compat warning = false'"
]
}
注意
使用 rbd 池 init POOL_NAME 初始化 Ceph 块设备的池。