2.5. Red Hat Ceph Storage 클러스터 전원 끄기 및 재부팅


systemctl 명령과 Ceph Orchestrator의 두 가지 접근 방식을 사용하여 Red Hat Ceph Storage 클러스터의 전원을 끄고 재부팅할 수 있습니다. 전원을 끄고 클러스터를 재부팅하는 방법을 선택할 수 있습니다.

2.5.1. systemctl 명령을 사용하여 클러스터 전원을 끄고 재부팅

systemctl 명령 접근 방식을 사용하여 Red Hat Ceph Storage 클러스터의 전원을 끄고 재부팅할 수 있습니다. 이 접근 방식은 서비스를 중지하는 Linux 방법을 따릅니다.

사전 요구 사항

  • 실행 중인 Red Hat Ceph Storage 클러스터.
  • 루트 수준 액세스.

프로세스

Red Hat Ceph Storage 클러스터 전원 끄기

  1. Block Device 이미지 RADOS 게이트웨이 - 이 클러스터 및 기타 모든 클라이언트에서 Ceph Object Gateway를 사용하지 못하도록 합니다.
  2. Cephadm 쉘에 로그인합니다.

    [root@host01 ~]# cephadm shell

  3. 클러스터를 진행하기 전에 정상 상태(Health_OK 및 모든 PGs active+clean)이어야 합니다. 클라이언트 인증 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)를 사용하여 호스트에서 ceph 상태를 실행하여 클러스터가 정상인지 확인합니다.

    [ceph: root@host01 /]# ceph -s

  4. Ceph 파일 시스템(CephFS)을 사용하는 경우 CephFS 클러스터를 가져옵니다.

    구문

    ceph fs set FS_NAME max_mds 1
    ceph fs fail FS_NAME
    ceph status
    ceph fs set FS_NAME joinable false

    [ceph: root@host01 /]# ceph fs set cephfs max_mds 1
    [ceph: root@host01 /]# ceph fs fail cephfs
    [ceph: root@host01 /]# ceph status
    [ceph: root@host01 /]# ceph fs set cephfs joinable false

  5. noout,norecover,norebalance,nobackfill,nodown, pause 플래그를 설정합니다. 클라이언트 인증 키가 있는 노드에서 다음을 실행합니다(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드).

    [ceph: root@host01 /]# ceph osd set noout
    [ceph: root@host01 /]# ceph osd set norecover
    [ceph: root@host01 /]# ceph osd set norebalance
    [ceph: root@host01 /]# ceph osd set nobackfill
    [ceph: root@host01 /]# ceph osd set nodown
    [ceph: root@host01 /]# ceph osd set pause

    중요

    위의 예제는 OSD 노드에서 서비스와 각 OSD를 중지하는 데만 사용되며 각 OSD 노드에서 반복해야 합니다.

  6. MDS 및 Ceph Object Gateway 노드가 전용 노드에 있는 경우 전원을 끕니다.
  7. 데몬의 systemd 대상을 가져옵니다.

    [root@host01 ~]# systemctl list-units --type target | grep ceph
    ceph-0b007564-ec48-11ee-b736-525400fd02f8.target loaded active active Ceph cluster 0b007564-ec48-11ee-b736-525400fd02f8
    ceph.target                                      loaded active active All Ceph clusters and services

  8. 클러스터 FSID를 포함하는 대상을 비활성화합니다.

    [root@host01 ~]# systemctl disable ceph-0b007564-ec48-11ee-b736-525400fd02f8.target
    
    Removed "/etc/systemd/system/multi-user.target.wants/ceph-0b007564-ec48-11ee-b736-525400fd02f8.target".
    Removed "/etc/systemd/system/ceph.target.wants/ceph-0b007564-ec48-11ee-b736-525400fd02f8.target".

  9. 대상을 중지합니다.

    [root@host01 ~]# systemctl stop ceph-0b007564-ec48-11ee-b736-525400fd02f8.target

    이렇게 하면 중지해야 하는 호스트의 모든 데몬이 중지됩니다.

  10. 노드를 종료합니다.

    [root@host01 ~]# shutdown
    Shutdown scheduled for Wed 2024-03-27 11:47:19 EDT, use 'shutdown -c' to cancel.

  11. 클러스터의 모든 노드에 대해 위의 단계를 반복합니다.

Red Hat Ceph Storage 클러스터 재부팅

  1. 네트워크 장비가 관련된 경우 모든 Ceph 호스트 또는 노드의 전원을 켜기 전에 전원이 켜져 있고 안정적인지 확인하십시오.
  2. 관리 노드의 전원을 켭니다.
  3. systemd 대상을 활성화하여 모든 데몬을 실행합니다.

    [root@host01 ~]# systemctl enable ceph-0b007564-ec48-11ee-b736-525400fd02f8.target
    Created symlink /etc/systemd/system/multi-user.target.wants/ceph-0b007564-ec48-11ee-b736-525400fd02f8.target  /etc/systemd/system/ceph-0b007564-ec48-11ee-b736-525400fd02f8.target.
    Created symlink /etc/systemd/system/ceph.target.wants/ceph-0b007564-ec48-11ee-b736-525400fd02f8.target  /etc/systemd/system/ceph-0b007564-ec48-11ee-b736-525400fd02f8.target.

  4. systemd 대상을 시작합니다.

    [root@host01 ~]# systemctl start ceph-0b007564-ec48-11ee-b736-525400fd02f8.target

  5. 모든 노드가 표시될 때까지 기다립니다. 모든 서비스가 작동하고 노드 사이에 연결 문제가 없는지 확인합니다.
  6. noout,norecover,norebalance,nobackfill,nodownpause 플래그를 설정 해제합니다. 클라이언트 인증 키가 있는 노드에서 다음을 실행합니다(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드).

    [ceph: root@host01 /]# ceph osd unset noout
    [ceph: root@host01 /]# ceph osd unset norecover
    [ceph: root@host01 /]# ceph osd unset norebalance
    [ceph: root@host01 /]# ceph osd unset nobackfill
    [ceph: root@host01 /]# ceph osd unset nodown
    [ceph: root@host01 /]# ceph osd unset pause

  7. Ceph File System(CephFS)을 사용하는 경우 joinable 플래그를 true 로 설정하여 CephFS 클러스터를 백업합니다.

    구문

    ceph fs set FS_NAME joinable true

    예제

    [ceph: root@host01 /]# ceph fs set cephfs joinable true

검증

  • 클러스터가 정상 상태인지 확인합니다(Health_OK 및 모든 PGs active+clean). 클라이언트 인증 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)가 있는 노드에서 ceph 상태를 실행하여 클러스터가 정상인지 확인합니다.

[ceph: root@host01 /]# ceph -s

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

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

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

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

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동