2.6. Red Hat Ceph Storage 클러스터 전원 끄기 및 재부팅
systemctl
명령과 Ceph Orchestrator의 두 가지 접근 방식을 사용하여 Red Hat Ceph Storage 클러스터의 전원을 끄고 재부팅할 수 있습니다. 전원을 끄고 클러스터를 재부팅하는 방법을 선택할 수 있습니다.
2.6.1. systemctl
명령을 사용하여 클러스터 전원을 끄고 재부팅
systemctl
명령 접근 방식을 사용하여 Red Hat Ceph Storage 클러스터의 전원을 끄고 재부팅할 수 있습니다. 이 접근 방식은 서비스를 중지하는 Linux 방법을 따릅니다.
사전 요구 사항
- 실행 중인 Red Hat Ceph Storage 클러스터.
- 루트 수준 액세스.
절차
Red Hat Ceph Storage 클러스터 전원 끄기
- 클라이언트에서 이 클러스터 및 기타 클라이언트에서 Block Device images RADOS Gateway - Ceph Object Gateway를 사용하지 못하도록 중지합니다.
Cephadm 쉘에 로그인합니다.
예제
[root@host01 ~]# cephadm shell
계속하기 전에 클러스터가 정상 상태(
Health_OK
및 모든 PGsactive+clean
)여야 합니다. 클라이언트 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)가 있는 호스트에서ceph 상태를
실행하여 클러스터가 정상인지 확인합니다.예제
[ceph: root@host01 /]# ceph -s
Ceph File System(
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
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 노드에서 반복해야 합니다.
- 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 pause
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
및 모든 PGsactive+clean
). 클라이언트 인증 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)를 사용하여 노드에서ceph 상태를
실행하여 클러스터가 정상인지 확인합니다.
예제
[ceph: root@host01 /]# ceph -s
추가 리소스
- Ceph 설치에 대한 자세한 내용은 Red Hat Ceph Storage 설치 가이드를 참조하십시오.
2.6.2. Ceph Orchestrator를 사용하여 클러스터 전원 끄기 및 재부팅
Ceph Orchestrator의 기능을 사용하여 Red Hat Ceph Storage 클러스터의 전원을 끄고 재부팅할 수도 있습니다. 대부분의 경우 클러스터 전원을 끄는 데 도움이 되는 단일 시스템 로그인입니다.
Ceph Orchestrator는 start
,stop
, restart
와 같은 여러 작업을 지원합니다. 경우에 따라 클러스터의 전원을 끄거나 재부팅할 때 systemctl
과 함께 이러한 명령을 사용할 수 있습니다.
사전 요구 사항
- 실행 중인 Red Hat Ceph Storage 클러스터.
- 노드에 대한 루트 수준 액세스입니다.
절차
Red Hat Ceph Storage 클러스터 전원 끄기
- 이 클러스터 및 기타 클라이언트에서 사용자 Block Device Image 및 Ceph Object Gateway를 사용하지 못하도록 합니다.
Cephadm 쉘에 로그인합니다.
예제
[root@host01 ~]# cephadm shell
계속하기 전에 클러스터가 정상 상태(
Health_OK
및 모든 PGsactive+clean
)여야 합니다. 클라이언트 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)가 있는 호스트에서ceph 상태를
실행하여 클러스터가 정상인지 확인합니다.예제
[ceph: root@host01 /]# ceph -s
Ceph File System(
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
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
MDS 서비스를 중지합니다.
MDS 서비스 이름을 가져옵니다.
예제
[ceph: root@host01 /]# ceph orch ls --service-type mds
이전 단계에서 가져온 이름을 사용하여 MDS 서비스를 중지합니다.
구문
ceph orch stop SERVICE-NAME
Ceph Object Gateway 서비스를 중지합니다. 배포된 각 서비스에 대해 반복합니다.
Ceph Object Gateway 서비스 이름을 가져옵니다.
예제
[ceph: root@host01 /]# ceph orch ls --service-type rgw
가져온 이름을 사용하여 Ceph Object Gateway 서비스를 중지합니다.
구문
ceph orch stop SERVICE-NAME
Alertmanager 서비스를 중지합니다.
예제
[ceph: root@host01 /]# ceph orch stop alertmanager
모니터링 스택의 일부인 node-exporter 서비스를 중지합니다.
예제
[ceph: root@host01 /]# ceph orch stop node-exporter
Prometheus 서비스를 중지합니다.
예제
[ceph: root@host01 /]# ceph orch stop prometheus
Grafana 대시보드 서비스를 중지합니다.
예제
[ceph: root@host01 /]# ceph orch stop grafana
크래시 서비스를 중지합니다.
예제
[ceph: root@host01 /]# ceph orch stop crash
cephadm 노드에서 하나씩 OSD 노드를 종료합니다. 클러스터의 모든 OSD에 대해 이 단계를 반복합니다.
OSD ID를 가져옵니다.
예제
[ceph: root@host01 /]# ceph orch ps --daemon-type=osd
가져온 OSD ID를 사용하여 OSD 노드를 종료합니다.
예제
[ceph: root@host01 /]# ceph orch daemon stop osd.1 Scheduled to stop osd.1 on host 'host02'
모니터를 하나씩 중지합니다.
모니터를 호스팅하는 호스트를 확인합니다.
예제
[ceph: root@host01 /]# ceph orch ps --daemon-type mon
각 호스트에서 모니터를 중지합니다.
systemctl
단위 이름을 확인합니다.예제
[ceph: root@host01 /]# systemctl list-units ceph-* | grep mon
서비스를 중지합니다.
구문
systemct stop SERVICE-NAME
- 모든 호스트를 종료합니다.
Red Hat Ceph Storage 클러스터 재부팅
- 네트워크 장치가 관련된 경우 Ceph 호스트 또는 노드의 전원을 켜기 전에 전원이 켜지고 안정적인지 확인하십시오.
- 모든 Ceph 호스트의 전원을 켭니다.
Cephadm 쉘에서 관리 노드에 로그인합니다.
예제
[root@host01 ~]# cephadm shell
모든 서비스가 실행 중인지 확인합니다.
예제
[ceph: root@host01 /]# ceph orch ls
클러스터 상태가 'Health_OK'status인지 확인합니다.
예제
[ceph: root@host01 /]# ceph -s
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 pause
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
및 모든 PGsactive+clean
). 클라이언트 인증 키(예: Ceph Monitor 또는 OpenStack 컨트롤러 노드)를 사용하여 노드에서ceph 상태를
실행하여 클러스터가 정상인지 확인합니다.
예제
[ceph: root@host01 /]# ceph -s
추가 리소스
- Ceph 설치에 대한 자세한 내용은 Red Hat Ceph Storage 설치 가이드를 참조하십시오.