4.3.2.2. ストレッチモードの検証
この情報を使用して、実装された CRUSH ルールを使用してストレッチモードが正しく作成されたことを確認します。
手順
すべてのプールが Ceph クラスターで作成された CRUSH ルールを使用していることを確認します。これらの例では、CRUSH ルールは ストレッチモード用の CRUSH マップの設定 で作成された設定に従って、
stretch_ruleとして設定されています。構文
for pool in $(rados lspools);do echo -n "Pool: ${pool}; ";ceph osd pool get ${pool} crush_rule;done例
[ceph: root@host01 /]# for pool in $(rados lspools);do echo -n "Pool: ${pool}; ";ceph osd pool get ${pool} crush_rule;done Pool: device_health_metrics; crush_rule: stretch_rule Pool: cephfs.cephfs.meta; crush_rule: stretch_rule Pool: cephfs.cephfs.data; crush_rule: stretch_rule Pool: .rgw.root; crush_rule: stretch_rule Pool: default.rgw.log; crush_rule: stretch_rule Pool: default.rgw.control; crush_rule: stretch_rule Pool: default.rgw.meta; crush_rule: stretch_rule Pool: rbdpool; crush_rule: stretch_ruleストレッチモードが有効になっていることを確認します。
stretch_mode_enabledがtrueに設定されていることを確認します。構文
ceph osd dump出力には次の情報が含まれます。
- stretch_mode_enabled
-
ストレッチモードが有効な場合は
trueに設定します。 - stretch_bucket_count
- OSD を備えたデータセンターの数。
- degraded_stretch_mode
-
デグレードしていない場合は
0を出力します。ストレッチモードがデグレードしている場合は、アップサイトの数を出力します。 - recovering_stretch_mode
-
回復しない場合は
0を出力します。ストレッチモードが回復中の場合、出力は1です。 - stretch_mode_bucket
各 CRUSH バケットタイプに設定される一意の値。この値は通常、データセンターの場合は
8に設定されます。例
"stretch_mode": { "stretch_mode_enabled": true, "stretch_bucket_count": 2, "degraded_stretch_mode": 0, "recovering_stretch_mode": 1, "stretch_mode_bucket": 8
ceph mon dumpを使用して、ストレッチモードが mon マップを使用していることを確認します。以下の点を行うようにしてください。
-
stretch_mode_enabledが1に設定されている -
正しい mon ホストが
tiebreaker_monとして設定されている 正しい mon ホストが
disallowed_leadersとして設定されている構文
ceph mon dump例
[ceph: root@host01 /]# ceph mon dump epoch 16 fsid ff19789c-f5c7-11ef-8e1c-fa163e4e1f7e last_changed 2025-02-28T12:12:51.089706+0000 created 2025-02-28T11:34:59.325503+0000 min_mon_release 19 (squid) election_strategy: 3 stretch_mode_enabled 1 tiebreaker_mon host07 disallowed_leaders host07 0: [v2:10.0.56.37:3300/0,v1:10.0.56.37:6789/0] mon.host01; crush_location {datacenter=DC1} 1: [v2:10.0.59.188:3300/0,v1:10.0.59.188:6789/0] mon.host05; crush_location {datacenter=DC2} 2: [v2:10.0.59.35:3300/0,v1:10.0.59.35:6789/0] mon.host02; crush_location {datacenter=DC1} 3: [v2:10.0.56.189:3300/0,v1:10.0.56.189:6789/0] mon.host07; crush_location {datacenter=DC3} 4: [v2:10.0.56.13:3300/0,v1:10.0.56.13:6789/0] mon.host04; crush_location {datacenter=DC2} dumped monmap epoch 16
-
次のステップ
- Ceph Object Gateway をデプロイ、設定、管理します。詳細は、Ceph Object Gateway を参照してください。
- Ceph ブロックデバイスを管理、作成、設定、および使用します。詳細は、Ceph ブロックデバイス を参照してください。
- Ceph File System (CephFS) を作成、マウント、操作します。詳細は、Ceph File Systems を参照してください。