3.2. 연결이 끊긴 환경에서 Red Hat Ceph Storage 클러스터 업그레이드
--image
태그를 사용하여 연결이 끊긴 환경에서 스토리지 클러스터를 업그레이드할 수 있습니다.
ceph orch upgrade
명령을 사용하여 Red Hat Ceph Storage 5 클러스터를 업그레이드할 수 있습니다.
Red Hat Enterprise Linux 9 이상에서는 cephadm-ansible
플레이북을 지원하지 않습니다.
사전 요구 사항
- 실행 중인 Red Hat Ceph Storage 클러스터 5.
- Red Hat Enterprise Linux 8.4 EUS 이상.
- 모든 노드에 대한 루트 수준 액세스입니다.
-
sudo 및 암호 없이
ssh
를 사용하는 Ansible 사용자는 스토리지 클러스터의 모든 노드에 액세스할 수 있습니다. - 스토리지 클러스터에 2개 이상의 Ceph Manager 노드(하나의 활성 및 대기 시간)입니다.
- 노드를 CDN에 등록하고 서브스크립션을 연결합니다.
- 연결이 끊긴 환경에서 고객 컨테이너 이미지를 확인하고 필요한 경우 구성을 변경합니다. 자세한 내용은 Red Hat Ceph Storage 설치 가이드에서 연결이 끊긴 설치의 구성 변경 섹션을 참조하십시오.
기본적으로 모니터링 스택 구성 요소는 기본 Ceph 이미지를 기반으로 배포됩니다. 스토리지 클러스터의 연결이 끊긴 환경의 경우 사용 가능한 최신 모니터링 스택 구성 요소 이미지를 사용해야 합니다.
스택 구성 요소 모니터링 | Red Hat Ceph Storage 버전 | 이미지 세부 정보 |
---|---|---|
Prometheus | Red Hat Ceph Storage 5.0 및 5.1 | registry.redhat.io/openshift4/ose-prometheus:v4.6 |
Red Hat Ceph Storage 5.2 이상 | registry.redhat.io/openshift4/ose-prometheus:v4.10 | |
Grafana | 모든 Red Hat Ceph Storage 5 버전 | registry.redhat.io/rhceph/rhceph-5-dashboard-rhel8:latest |
node-exporter | Red Hat Ceph Storage 5.0 | registry.redhat.io/openshift4/ose-prometheus-node-exporter:v4.5 |
Red Hat Ceph Storage 5.0z1 및 5.1 | registry.redhat.io/openshift4/ose-prometheus-node-exporter:v4.6 | |
Red Hat Ceph Storage 5.2 이상 | registry.redhat.io/openshift4/ose-prometheus-node-exporter:v4.10 | |
AlertManager | Red Hat Ceph Storage 5.0 | registry.redhat.io/openshift4/ose-prometheus-alertmanager:v4.5 |
Red Hat Ceph Storage 5.0z1 및 5.1 | registry.redhat.io/openshift4/ose-prometheus-alertmanager:v4.6 | |
Red Hat Ceph Storage 5.2 이상 | registry.redhat.io/openshift4/ose-prometheus-alertmanager:v4.10 | |
HAProxy | Red Hat Ceph Storage 5.1 이상 | registry.redhat.io/rhceph/rhceph-haproxy-rhel8:latest |
keepalived | Red Hat Ceph Storage 5.1 이상 | registry.redhat.io/rhceph/keepalived-rhel8:latest |
SNMP Gateway | Red Hat Ceph Storage 5.0 이상 | registry.redhat.io/rhceph/snmp-notifier-rhel8:latest |
절차
cephadm
및cephadm-ansible
패키지를 업데이트합니다.예제
[root@admin ~]# dnf update cephadm [root@admin ~]# dnf update cephadm-ansible
upgrade_ceph_packages
매개변수가true
로 설정된 상태에서 preflight 플레이북을 실행하고 스토리지 클러스터의 부트스트랩 호스트에서ceph_origin
매개변수를사용자 지정
으로 설정합니다.구문
ansible-playbook -i INVENTORY_FILE cephadm-preflight.yml --extra-vars "ceph_origin=custom upgrade_ceph_packages=true"
예제
[ceph-admin@admin ~]$ ansible-playbook -i /etc/ansible/hosts cephadm-preflight.yml --extra-vars "ceph_origin=custom upgrade_ceph_packages=true"
이 패키지는 모든 노드에서
cephadm
을 업그레이드합니다.cephadm
쉘에 로그인합니다.예제
[root@host01 ~]# cephadm shell
모든 호스트가 온라인 상태인지 확인하고 스토리지 클러스터가 정상 상태인지 확인합니다.
예제
[ceph: root@host01 /]# ceph -s
업그레이드 중에 OSD
noout
,noscrub
,nodeep-scrub
플래그를 설정하여 OSD가 클러스터에서 불필요한 로드를 방지합니다.예제
[ceph: root@host01 /]# ceph osd set noout [ceph: root@host01 /]# ceph osd set noscrub [ceph: root@host01 /]# ceph osd set nodeep-scrub
서비스 버전 및 사용 가능한 대상 컨테이너를 확인합니다.
구문
ceph orch upgrade check IMAGE_NAME
예제
[ceph: root@host01 /]# ceph orch upgrade check LOCAL_NODE_FQDN:5000/rhceph/rhceph-5-rhel8
스토리지 클러스터를 업그레이드합니다.
구문
ceph orch upgrade start IMAGE_NAME
예제
[ceph: root@host01 /]# ceph orch upgrade start LOCAL_NODE_FQDN:5000/rhceph/rhceph-5-rhel8
업그레이드가 진행되는 동안
ceph 상태
출력에 진행률 표시줄이 표시됩니다.예제
[ceph: root@host01 /]# ceph status [...] progress: Upgrade to 16.2.0-115.el8cp (1s) [............................]
Ceph 클러스터의 새로운 IMAGE_ID 및 VERSION 을 확인합니다.
예제
[ceph: root@host01 /]# ceph version [ceph: root@host01 /]# ceph versions [ceph: root@host01 /]# ceph orch ps
업그레이드가 완료되면
noout
,noscrub
,nodeep-scrub
플래그를 설정 해제합니다.예제
[ceph: root@host01 /]# ceph osd unset noout [ceph: root@host01 /]# ceph osd unset noscrub [ceph: root@host01 /]# ceph osd unset nodeep-scrub
추가 리소스
- Red Hat Ceph Storage 설치 가이드의 CDN에 Red Hat Ceph Storage 노드 등록 및 서브스크립션 연결 섹션을 참조하십시오.
- Red Hat Ceph Storage 설치 가이드의 연결이 끊긴 설치 안내서에서 프라이빗 레지스트리 구성 섹션을 참조하십시오.