Skip to main content
Upgrade Health Checker
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

Upgrade Health Checker를 사용하여 업그레이드 계획 생성 자동화

기여자 netapp-ivanad netapp-yvonneo netapp-barbe

대규모의 복잡한 환경에서 ONTAP 업그레이드를 계획할 때 수동 작업을 줄이기 위해 업그레이드 상태 점검 보고서 생성을 자동화할 수 있습니다.

이 작업 정보

업그레이드 상태 검사기는 온프레미스 ONTAP 버전 9.11.1 이상에 대한 업그레이드를 지원합니다. Cloud Volumes ONTAP를 사용하는 경우 시스템 업그레이드에 대한 자세한 내용은 "Cloud Volumes ONTAP 업그레이드"를 참조하십시오.

단계
  1. 업그레이드 보고서가 성공적으로 생성되도록 하려면 "ONTAP 업그레이드 보고서를 생성합니다"에 설명된 필수 설정 단계와 일회성 작업을 모두 완료하십시오.

  2. 사용 환경에 맞는 매개 변수를 사용하여 Upgrade Health Checker를 실행하는 스크립트를 생성합니다.

    ./uhc \
      --cluster-ip=<cluster-ip> \
      --cluster-username=<cluster-username> \
      --cluster-password=<cluster-password> \
      --target-ontap-version=<target-ontap-version> \
      --accept-eula=true
  3. cron 일정에 대한 자동화 스크립트를 생성하여 Upgrade Health Checker를 실행합니다. 다음은 여러 클러스터에 대해 Upgrade Health Checker를 실행하는 예제 스크립트입니다. 바이너리 및 config.yaml 파일이 /opt/uhc/tool/에 설치되었습니다.

    #!/bin/bash
    # /opt/uhc/tool/uhccron.sh
    # Automated weekly Upgrade Health Checker run for all managed clusters
    # Schedule: Every Monday to Friday at 4am
    
    cd /opt/uhc/tool/
    
    # Cluster1 - keep current version (health check only)
    /opt/uhc/tool/uhc --cluster-ip cluster1-mgmt.example.com \ --target-ontap-version current
    
    # Cluster2 - target upgrade to 9.16.1
    /opt/uhc/tool/uhc --cluster-ip cluster2-mgmt.example.com \ --target-ontap-version 9.16.1
    
    # Cluster3 - target upgrade to 9.17.1
    /opt/uhc/tool/uhc --cluster-ip cluster3-mgmt.example.com \ --target-ontap-version 9.17.1
    
    # Cluster4 - by IP address
    /opt/uhc/tool/uhc --cluster-ip 10.20.30.40 --target-ontap-version 9.16.1
    
    # Add additional clusters as needed
    
    # Make the script executable (one-time setup step)
    chmod +x /opt/uhc/tool/uhccron.sh
  4. 월요일부터 금요일까지 오전 4시에 스크립트를 실행하도록 cron 작업을 설정합니다.

    # Edit the crontab for the uhctool user
    crontab -e
    
    # Add the following line to schedule the script to run Monday through Friday at 4:00 am
    0 4 * * 1-5 /opt/uhc/tool/uhccron.sh
참고 지속적인 상태 모니터링을 위해서는 특정 업그레이드 대상을 지정하지 않고 `--target-ontap-version current`를 사용하십시오.
  1. Upgrade Health Checker가 검사를 완료한 후 runs 폴더로 이동하여 업그레이드 계획 및 클러스터 보고서를 확인합니다.

    참고 프로그램을 실행할 때마다 고유한 실행으로 간주되며, 관련 runs 폴더에 모든 관련 데이터, 로그 및 결과가 저장됩니다.
  2. 보고서 파일(이름은 uhc_<cluster-name>_<YYYYMMDDHHMMSS>)을 웹 브라우저, Microsoft Excel 또는 JSON 뷰어에서 열어 보고서를 확인하십시오. Upgrade Health Checker를 원격 호스트에서 실행하는 경우, 먼저 보고서 파일을 웹 브라우저, Excel 또는 JSON 뷰어에서 보고서를 볼 수 있는 컴퓨터로 다운로드하십시오.

    로그 경로 및 보고서 경로는 다음과 같습니다.

    • 로그 경로: <output-path>/<unique-run-dir>/<cluster-name>/logs

    • HTML 보고서 경로: <output-path>/<unique-run-dir>/<cluster-name>/results/uhc_<cluster-name>_<YYYYMMDDHHMMSS>.html

    • Excel 보고서 경로: <output-path>/<unique-run-dir>/<cluster-name>/results/uhc_<cluster-name>_<YYYYMMDDHHMMSS>.xlsx

    • JSON 보고서 경로: <output-path>/<unique-run-dir>/<cluster-name>/results/uhc_<cluster-name>_<YYYYMMDDHHMMSS>.json