12.7.2. 조각화 확인


BlueStore OSD의 조각화 수준을 확인하는 것은 온라인 또는 오프라인에서 수행할 수 있습니다.

사전 요구 사항

  • 실행 중인 Red Hat Ceph Storage 클러스터.
  • BlueStore OSDs.

온라인 BlueStore 조각화 점수

  1. 실행 중인 BlueStore OSD 프로세스를 검사합니다.

    1. 간단한 보고서:

      구문

      ceph daemon OSD_ID bluestore allocator score block

      예제

      [ceph: root@host01 /]# ceph daemon osd.123 bluestore allocator score block

    2. 더 자세한 보고서:

      구문

      ceph daemon OSD_ID bluestore allocator dump block

      예제

      [ceph: root@host01 /]# ceph daemon osd.123 bluestore allocator dump block

오프라인 BlueStore 조각화 점수

  1. BlueStore OSD를 다시 작성합니다.

    구문

    [root@host01 ~]# cephadm shell --name osd.ID

    [root@host01 ~]# cephadm shell --name osd.2
    Inferring fsid 110bad0a-bc57-11ee-8138-fa163eb9ffc2
    Inferring config /var/lib/ceph/110bad0a-bc57-11ee-8138-fa163eb9ffc2/osd.2/config
    Using ceph image with id `17334f841482` and tag `ceph-7-rhel-9-containers-candidate-59483-20240301201929` created on 2024-03-01 20:22:41 +0000 UTC
    registry-proxy.engineering.redhat.com/rh-osbs/rhceph@sha256:09fc3e5baf198614d70669a106eb87dbebee16d4e91484375778d4adbccadacd

  2. 실행 불가능한 BlueStore OSD 프로세스를 검사합니다.

    1. 간단한 보고서의 경우 다음 명령을 실행합니다.

      구문

      ceph-bluestore-tool --path PATH_TO_OSD_DATA_DIRECTORY --allocator block free-score

      예제

      [root@host01 /]# ceph-bluestore-tool --path /var/lib/ceph/osd/ceph-123 --allocator block free-score

    2. 보다 자세한 보고서를 보려면 다음 명령을 실행합니다.

      구문

      ceph-bluestore-tool --path PATH_TO_OSD_DATA_DIRECTORY --allocator block free-dump
      block:
      {
          "fragmentation_rating": 0.018290238194701977
      }

      예제

      [root@host01 /]# ceph-bluestore-tool --path /var/lib/ceph/osd/ceph-123 --allocator block free-dump
      block:
      {
          "capacity": 21470642176,
          "alloc_unit": 4096,
          "alloc_type": "hybrid",
          "alloc_name": "block",
          "extents": [
              {
                  "offset": "0x370000",
                  "length": "0x20000"
              },
              {
                  "offset": "0x3a0000",
                  "length": "0x10000"
              },
              {
                  "offset": "0x3f0000",
                  "length": "0x20000"
              },
              {
                  "offset": "0x460000",
                  "length": "0x10000"
              },

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

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

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

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

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동