7장. OSD removal tool


7.1. Removing object storage devices using an automated tool

OpenShift Data Foundation provides a tool to automate the process of object storage device (OSD) removal. This tool helps to avoid the possible data loss while removing OSDs.

Prerequisites

  • Download the OSD removal tool to your local machine:

    $ oc image extract --registry-config <pull_secret_path> registry.redhat.io/odf4/odf4-odf-cli-rhel9:v4.15 --confirm --path <architecture_path>:<local_dir>

    Replace <architecture_path> depending on your local machine architecture:

    Linux:

  • /usr/share/odf/linux/odf-amd64
  • /usr/share/odf/linux/odf-ppc64le
  • /usr/share/odf/linux/odf-s390x
  • /usr/share/odf/linux/odf-arm64

    MAC:

  • /usr/share/odf/linux/odf-amd64/macosx/odf

    Windows:

  • /usr/share/odf/linux/odf-amd64/windows/odf

Procedure

  1. Identify the OSD that needs to be removed. The OSD that needs removal is in CrashLoopBackOff or Error state. The example below removes OSD 0:

    $ oc get -n openshift-storage pods -l app=rook-ceph-osd -o wide

    Example output:

    rook-ceph-osd-0-6d77d6c7c6-m8xj6    0/1    CrashLoopBackOff    0    24h   10.129.0.16   compute-2   <none>           <none>
  2. Run the following command to remove OSD 0:

    $ odf purge-osd 0

    If removal of the OSD affects placement group (PG) status, you are prompted to enter yes-force-destroy-osd.

  3. Verify that the last line of the command output contains cephosd: completed removal of OSD 0.
  4. Verify the corresponding deployment is removed using oc get deployment rook-ceph-osd-0.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

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

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

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

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동