검색

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

download PDF

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

추가 리소스

2.5.2. Ceph Orchestrator를 사용하여 클러스터의 전원을 끄고 재부팅

Ceph Orchestrator의 기능을 사용하여 Red Hat Ceph Storage 클러스터의 전원을 끄고 재부팅할 수도 있습니다. 대부분의 경우 클러스터 전원을 끄는 데 도움이 될 수 있는 단일 시스템 로그인입니다.

Ceph Orchestrator는 start,stop, restart 와 같은 여러 작업을 지원합니다. systemctl 에서 이러한 명령을 사용할 수 있습니다. 경우에 따라 클러스터 전원을 끄거나 재부팅할 수 있습니다.

사전 요구 사항

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

프로세스

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

  1. 이 클러스터 및 기타 클라이언트에서 사용자 Block Device Image 및 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 mds fail FS_NAME:N

    예제

    [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
    [ceph: root@host01 /]# ceph mds fail cephfs:1

  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

  6. MDS 서비스를 중지합니다.

    1. MDS 서비스 이름을 가져옵니다.

      예제

      [ceph: root@host01 /]# ceph orch ls --service-type mds

    2. 이전 단계에서 가져온 이름을 사용하여 MDS 서비스를 중지합니다.

      구문

      ceph orch stop SERVICE-NAME

  7. Ceph Object Gateway 서비스를 중지합니다. 배포된 각 서비스에 대해 반복합니다.

    1. Ceph Object Gateway 서비스 이름을 가져옵니다.

      예제

      [ceph: root@host01 /]# ceph orch ls --service-type rgw

    2. 가져온 이름을 사용하여 Ceph Object Gateway 서비스를 중지합니다.

      구문

      ceph orch stop SERVICE-NAME

  8. Alertmanager 서비스를 중지합니다.

    예제

    [ceph: root@host01 /]# ceph orch stop alertmanager

  9. 모니터링 스택의 일부인 node-exporter 서비스를 중지합니다.

    예제

    [ceph: root@host01 /]# ceph orch stop node-exporter

  10. Prometheus 서비스를 중지합니다.

    예제

    [ceph: root@host01 /]# ceph orch stop prometheus

  11. Grafana 대시보드 서비스를 중지합니다.

    예제

    [ceph: root@host01 /]# ceph orch stop grafana

  12. 크래시 서비스를 중지합니다.

    예제

    [ceph: root@host01 /]# ceph orch stop crash

  13. cephadm 노드에서 OSD 노드를 하나씩 종료합니다. 클러스터의 모든 OSD에 대해 이 단계를 반복합니다.

    1. OSD ID를 가져옵니다.

      예제

      [ceph: root@host01 /]# ceph orch ps --daemon-type=osd

    2. 가져온 OSD ID를 사용하여 OSD 노드를 종료합니다.

      예제

      [ceph: root@host01 /]# ceph orch daemon stop osd.1
      Scheduled to stop osd.1 on host 'host02'

  14. 모니터를 하나씩 중지합니다.

    1. 모니터를 호스팅하는 호스트를 식별합니다.

      예제

      [ceph: root@host01 /]# ceph orch ps --daemon-type mon

    2. 각 호스트에서 모니터를 중지합니다.

      1. systemctl 장치 이름을 확인합니다.

        예제

        [ceph: root@host01 /]# systemctl list-units ceph-* | grep mon

      2. 서비스를 중지합니다.

        구문

        systemct stop SERVICE-NAME

  15. 모든 호스트를 종료합니다.

Red Hat Ceph Storage 클러스터 재부팅

  1. 네트워크 장비가 관련된 경우 모든 Ceph 호스트 또는 노드의 전원을 켜기 전에 전원이 켜져 있고 안정적인지 확인하십시오.
  2. 모든 Ceph 호스트 전원을 켭니다.
  3. Cephadm 쉘에서 관리 노드에 로그인합니다.

    예제

    [root@host01 ~]# cephadm shell

  4. 모든 서비스가 실행 중인지 확인합니다.

    예제

    [ceph: root@host01 /]# ceph orch ls

  5. 클러스터 상태가 'Health_OK'status인지 확인합니다.

    예제

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

  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 소개

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

© 2024 Red Hat, Inc.