4.4.2. 스트레치 모드 확인


이 정보를 사용하여 구현된 CRUSH 규칙으로 스트레치 모드가 올바르게 생성되었는지 확인합니다.

프로세스

  1. 모든 풀이 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

  2. 스트레치 모드가 활성화되었는지 확인합니다. stretch_mode_enabledtrue 로 설정되어 있는지 확인합니다.

    구문

    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

  3. ceph mon dump 를 사용하여 mon 맵을 사용하고 있는지 확인합니다.

    다음을 확인하십시오.

    • stretch_mode_enabled1로 설정
    • 올바른 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

다음에 수행할 작업

  1. Ceph Object Gateway를 배포, 구성 및 관리합니다. 자세한 내용은 Ceph Object Gateway 를 참조하십시오.
  2. Ceph 블록 장치를 관리, 생성, 구성 및 사용합니다. 자세한 내용은 Ceph 블록 장치를 참조하십시오.
  3. Ceph 파일 시스템(CephFS)을 생성, 마운트 및 작업합니다. 자세한 내용은 Ceph 파일 시스템을 참조하십시오.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동