12.7.2. 조각화 확인
BlueStore OSD의 조각화 수준을 확인하는 것은 온라인 또는 오프라인에서 수행할 수 있습니다.
사전 요구 사항
- 실행 중인 Red Hat Ceph Storage 클러스터.
- BlueStore OSDs.
온라인 BlueStore 조각화 점수
실행 중인 BlueStore OSD 프로세스를 검사합니다.
간단한 보고서:
구문
ceph daemon OSD_ID bluestore allocator score block예제
[ceph: root@host01 /]# ceph daemon osd.123 bluestore allocator score block더 자세한 보고서:
구문
ceph daemon OSD_ID bluestore allocator dump block예제
[ceph: root@host01 /]# ceph daemon osd.123 bluestore allocator dump block
오프라인 BlueStore 조각화 점수
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실행 불가능한 BlueStore OSD 프로세스를 검사합니다.
간단한 보고서의 경우 다음 명령을 실행합니다.
구문
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보다 자세한 보고서를 보려면 다음 명령을 실행합니다.
구문
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" },