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 클러스터 전원 끄기
- Block Device 이미지 RADOS 게이트웨이 - 이 클러스터 및 기타 모든 클라이언트에서 Ceph Object Gateway를 사용하지 못하도록 합니다.
Cephadm 쉘에 로그인합니다.
예
[root@host01 ~]# cephadm shell클러스터를 진행하기 전에 정상 상태(
Health_OK및 모든 PGsactive+clean)이어야 합니다. 클라이언트 인증 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)를 사용하여 호스트에서ceph 상태를실행하여 클러스터가 정상인지 확인합니다.예
[ceph: root@host01 /]# ceph -sCeph 파일 시스템(
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 falsenoout,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 노드에서 반복해야 합니다.
- MDS 및 Ceph Object Gateway 노드가 전용 노드에 있는 경우 전원을 끕니다.
데몬의 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클러스터 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".대상을 중지합니다.
예
[root@host01 ~]# systemctl stop ceph-0b007564-ec48-11ee-b736-525400fd02f8.target이렇게 하면 중지해야 하는 호스트의 모든 데몬이 중지됩니다.
노드를 종료합니다.
예
[root@host01 ~]# shutdown Shutdown scheduled for Wed 2024-03-27 11:47:19 EDT, use 'shutdown -c' to cancel.- 클러스터의 모든 노드에 대해 위의 단계를 반복합니다.
Red Hat Ceph Storage 클러스터 재부팅
- 네트워크 장비가 관련된 경우 모든 Ceph 호스트 또는 노드의 전원을 켜기 전에 전원이 켜져 있고 안정적인지 확인하십시오.
- 관리 노드의 전원을 켭니다.
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. systemd 대상을 시작합니다.
예
[root@host01 ~]# systemctl start ceph-0b007564-ec48-11ee-b736-525400fd02f8.target- 모든 노드가 표시될 때까지 기다립니다. 모든 서비스가 작동하고 노드 사이에 연결 문제가 없는지 확인합니다.
noout,norecover,norebalance,nobackfill,nodown및pause플래그를 설정 해제합니다. 클라이언트 인증 키가 있는 노드에서 다음을 실행합니다(예: 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 pauseCeph File System(
CephFS)을 사용하는 경우joinable플래그를true로 설정하여CephFS클러스터를 백업합니다.구문
ceph fs set FS_NAME joinable true예제
[ceph: root@host01 /]# ceph fs set cephfs joinable true
검증
-
클러스터가 정상 상태인지 확인합니다(
Health_OK및 모든 PGsactive+clean). 클라이언트 인증 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)가 있는 노드에서ceph 상태를실행하여 클러스터가 정상인지 확인합니다.
예
[ceph: root@host01 /]# ceph -s