1.2. Red Hat Ceph Storage 클러스터 업그레이드


ceph orch upgrade 명령을 사용하여 Red Hat Ceph Storage 5.0 클러스터를 업그레이드할 수 있습니다.

사전 요구 사항

  • 실행 중인 Red Hat Ceph Storage 클러스터 5.
  • AppStream에 번들로 제공되는 ansible-core 가 포함된 Red Hat Enterprise Linux 9.0 이상.
  • 모든 노드에 대한 루트 수준 액세스.
  • sudo 및 암호 없이 ssh 를 사용하는 Ansible 사용자는 스토리지 클러스터의 모든 노드에 액세스할 수 있습니다.
  • 스토리지 클러스터에 있는 두 개 이상의 Ceph Manager 노드(활성 및 하나의 active 노드)입니다.
중요

Red Hat Ceph Storage 6.1 최신 버전으로 업그레이드하기 전에 최신 버전의 Red Hat Ceph Storage 5.3.z5로 업그레이드하십시오.

참고

Red Hat Ceph Storage 5에는 스토리지 클러스터의 데몬이 여러 버전의 RHCS를 실행하고 있음을 탐지하는 경우 DAEMON_OLD_VERSION 경고를 반환하는 상태 점검 기능도 포함되어 있습니다. 데몬이 mon_warn_older_version_delay 옵션에 설정된 시간 값 이상으로 여러 버전의 Red Hat Ceph Storage를 계속 실행할 때 경고가 트리거됩니다. 기본적으로 mon_warn_older_version_delay 옵션은 1주로 설정됩니다. 이 설정을 사용하면 대부분의 업그레이드가 경고를 잘못 표시되지 않고 계속 진행할 수 있습니다. 업그레이드 프로세스가 연장된 기간 동안 일시 중지된 경우 상태 경고를 음소거할 수 있습니다.

ceph health mute DAEMON_OLD_VERSION --sticky

업그레이드가 완료되면 상태 경고를 음소거합니다.

ceph health unmute DAEMON_OLD_VERSION

절차

  1. Ansible 관리 노드에서 Ceph Ansible 리포지토리를 활성화합니다.

    Red Hat Enterprise Linux 9

    subscription-manager repos --enable=rhceph-6-tools-for-rhel-9-x86_64-rpms

  2. cephadmcephadm-ansible 패키지를 업데이트합니다.

    예제

    [root@admin ~]# dnf update cephadm
    [root@admin ~]# dnf update cephadm-ansible

  3. /usr/share/cephadm-ansible/ 디렉토리로 이동합니다.

    예제

    [root@admin ~]# cd /usr/share/cephadm-ansible

  4. 스토리지 클러스터의 부트스트랩 호스트에서 upgrade_ceph_packages 매개변수가 true 로 설정된 상태에서 preflight 플레이북을 실행합니다.

    구문

    ansible-playbook -i INVENTORY_FILE cephadm-preflight.yml --extra-vars "ceph_origin=rhcs upgrade_ceph_packages=true"

    예제

    [ceph-admin@admin cephadm-ansible]$ ansible-playbook -i /etc/ansible/hosts cephadm-preflight.yml --extra-vars "ceph_origin=rhcs upgrade_ceph_packages=true"

    이 패키지는 모든 노드에서 cephadm 을 업그레이드합니다.

  5. cephadm 쉘에 로그인합니다.

    예제

    [root@host01 ~]# cephadm shell

  6. 모든 호스트가 온라인 상태이고 스토리지 클러스터가 정상인지 확인합니다.

    예제

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

  7. 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

  8. 서비스 버전 및 사용 가능한 대상 컨테이너를 확인합니다.

    구문

    ceph orch upgrade check IMAGE_NAME

    예제

    [ceph: root@host01 /]# ceph orch upgrade check registry.redhat.io/rhceph/rhceph-6-rhel9:latest

    참고

    이미지 이름은 Red Hat Enterprise Linux 8 및 Red Hat Enterprise Linux 9 모두에 적용됩니다.

  9. 스토리지 클러스터를 업그레이드합니다.

    구문

    ceph orch upgrade start IMAGE_NAME

    예제

    [ceph: root@host01 /]# ceph orch upgrade start registry.redhat.io/rhceph/rhceph-6-rhel9:latest

    참고

    태그된 업그레이드를 수행하려면 태그 된 업그레이드 수행을 참조하십시오.

    업그레이드가 진행 중인 동안 ceph 상태 출력에 진행률 표시줄이 표시됩니다.

    예제

    [ceph: root@host01 /]# ceph status
    [...]
    progress:
        Upgrade to 17.2.6-70.el9cp (1s)
          [............................]

  10. Ceph 클러스터의 새 IMAGE_IDVERSION 을 확인합니다.

    예제

    [ceph: root@host01 /]# ceph versions
    [ceph: root@host01 /]# ceph orch ps

    참고

    Ceph 클러스터를 업그레이드한 후 cephadm-ansible 플레이북을 사용하지 않는 경우 클라이언트 노드에서 ceph-common 패키지 및 클라이언트 라이브러리를 업그레이드해야 합니다.

    예제

    [root@client01 ~] dnf update ceph-common

    최신 버전이 있는지 확인합니다.

    예제

    [root@client01 ~] ceph --version

  11. 업그레이드가 완료되면 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 logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

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

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

Red Hat 소개

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

© 2024 Red Hat, Inc.