4.4.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 파일 시스템(CephFS)을 생성, 마운트 및 작업합니다. 자세한 내용은 Ceph 파일 시스템을 참조하십시오.