4.11. アプリケーションの有効化
Red Hat Ceph Storage は、未承認のクライアントタイプがプールへのデータの書き込みを防ぐために、プールに対する保護を強化します。つまり、システム管理者は、プールが Ceph ブロックデバイス、Ceph オブジェクトゲートウェイ、Ceph ファイルシステムから、またはカスタムアプリケーションの I/O 操作を受信できるように明示的に有効にする必要があります。
クライアントアプリケーションがプールで I/O 操作を実行できるようにするには、次のコマンドを実行します。
構文
ceph osd pool application enable POOL_NAME APPLICATION {--yes-i-really-mean-it}
APPLICATION は次のとおりです。
-
Ceph Filesystem 用の
cephfs。 -
Cephブロックデバイスの rbd。 -
CephObject Gateway の rgw。
カスタムアプリケーションには別の APPLICATION 値を指定します。
有効ではないプールは、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-name>', where <app-name> 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 pool init POOL_NAME を使用して、Ceph ブロックデバイスのプールを初期化します。