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。
  • Ceph Object 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 ブロックデバイスのプールを初期化します。