주 버전 업그레이드

This method covers major version upgrades such as SUSE Linux Enterprise Server 12 to SUSE Linux Enterprise Server 15. The upgrade is controlled by YaST and AutoYaST, it does not use Zypper.

클라이언트에는 설치된 운영 체제에 대해 사용 가능한 최신 서비스 팩(SP)이 설치되고 모든 최신 업데이트가 적용되어 있어야 합니다. 시작하기 전에 시스템이 최신 상태이고 모든 업데이트가 성공적으로 설치되었는지 확인합니다.

This method does not apply to the upgrade from SUSE Linux Enterprise Server 15 to SUSE Linux Enterprise Server 16. To upgrade from SUSE Linux Enterprise Server 15 SP7 to SUSE Linux Enterprise Server 16.0, use product migration instead. For more information, see 제품 마이그레이션.

1. 마이그레이션 준비

클라이언트를 SLE 12에서 SLE 15로 마이그레이션하기 전에 다음 작업을 수행해야 합니다.

  1. 설치 미디어 준비

  2. 자동 설치 배포 선언

  3. 활성화 키 생성

  4. 자동 설치 프로파일 생성

1.1. 설치 미디어 준비

프로시저: 설치 미디어 준비
  1. 컨테이너 호스트에서 설치 소스가 포함된 ISO 이미지를 다운로드합니다.

  2. Use mgradm to import the installation data from the ISO image:

    mgradm distribution copy <image_name>.iso <image_name>
  3. Take a note of the distribution path reported by mgradm. You will need it when you declare the distribution to SUSE Multi-Linux Manager.

이 이미지는 여러 자동 설치 배포에 사용할 수 있습니다.

자세한 설명은 자동 설치 가능한 배포판를 참조하십시오.

1.2. 자동 설치 배포 선언

절차: 자동 설치 배포 선언
  1. SUSE Multi-Linux Manager Web UI에서 시스템  자동 설치  배포로 이동합니다.

  2. Click Create Distribution , and complete these fields:

    In the Distribution Label field, enter a name to identify your autoinstallation distribution. For example, sles15sp6-x86_64. * In the Tree Path field, enter the path to the installation media you already saved. * Select the matching Base Channel. This must match the installation media. * Select the Installer Generation. This must match the installation media. * 선택 사항: 이 배포를 부팅할 때 사용할 커널 옵션을 지정합니다. 커널 옵션은 다양한 방법으로 제공할 수 있습니다. 배포에 일반적인 옵션만 여기에 추가해야 합니다.

  3. 자동 설치 가능한 배포판 생성을 클릭합니다.

1.3. 활성화 키 생성

예를 들어, 기존 SLE 12 기본 채널에서 새 SLE 15 채널로 전환하려면 활성화 키가 필요합니다.

절차: 활성화 키 만들기
  1. In the SUSE Multi-Linux Manager Server Web UI, navigate to Systems  Activation Keys and click Create Key.

  2. 키에 대한 설명을 입력합니다.

  3. 키를 입력하거나 공백으로 두어 자동 키를 생성합니다.

  4. OPTIONAL: If you want to limit the usage, enter your value in the Usage text field.

  5. Select the SLE-Product-SLES15-SP6-Pool for x86_64 base channel.

  6. OPTIONAL: Select any Add-On System Types. 자세한 내용은 https://documentation.suse.com/sles/15-SP7/html/SLES-all/article-modules.html에서 확인할 수 있습니다.

  7. 활성화 키 생성을 클릭합니다.

  8. Click the Child Channels tab and select the required channels.

  9. 키 업데이트를 클릭합니다.

1.4. 자동 설치 프로파일 생성

자동 설치 프로파일에는 시스템을 설치하는 데 필요한 모든 설치 및 구성 데이터가 포함되어 있습니다. 설치 완료 후 실행될 스크립트도 포함할 수 있습니다. 시작 지점으로 사용할 수 있는 예제 스크립트는 https://github.com/SUSE/manager-build-profiles/tree/master/AutoYaST를 참조하십시오.

유효한 AutoYaST 업그레이드 설정에 대한 내용은 https://doc.opensuse.org/projects/autoyast/#CreateProfile-upgrade에서 확인할 수 있습니다.

절차: 자동 설치 프로파일 생성
  1. SUSE Multi-Linux Manager Web UI에서 시스템  자동 설치  프로파일로 이동하여 자동 설치 프로파일 스크립트를 업로드합니다.

    시작 지점으로 사용할 수 있는 스크립트의 예는 다음을 참조하십시오.

  2. In the Kernel Options field, type autoupgrade=1.

    Optionally, you can also include the Y2DEBUG=1 option. The debug setting is not required but can help with investigating any future problems you might encounter.

    Clients running in Azure cloud must add textmode=1 console=ttyS0 to Kernel Options.

  3. 자동 설치 프로파일을 붙여 넣거나 파일 업로드 필드를 사용합니다.

  4. 생성을 클릭하여 저장합니다.

  5. When the uploaded profile requires variables to be set, navigate to Systems  Autoinstallation  Profiles, select the profile to edit, and navigate to the Variables tab.

    다음 형식을 사용하여 필수 변수를 지정합니다.

    <key>=<value>

2. 마이그레이션

시작하기 전, 자동 설치 프로파일에서 참조된 모든 채널을 사용할 수 있고 완전히 동기화되었는지 확인합니다.

You can monitor the mirroring progress in /var/log/rhn/reposync/<channel-label>.log.

절차: 마이그레이션
  1. In the SUSE Multi-Linux Manager Server Web UI, navigate to Systems and select the client to be upgraded.

  2. Navigate to the Provisioning tab, and select the autoinstallation profile you uploaded.

  3. 자동 설치 일정 잡기 후 완료를 클릭합니다. 시스템이 필요한 파일을 다운로드하고, 부트로더 항목을 변경하고, 재부팅한 후 업그레이드를 시작합니다.

Next time the client synchronizes with the SUSE Multi-Linux Manager Server, it receives a re-installation job. The re-installation job fetches the new kernel and initrd packages. It also writes a new /boot/grub/menu.lst (GRUB Legacy) or /boot/grub2/grub.cfg (GRUB 2), containing pointers to the new kernel and initrd packages.

클라이언트는 다음번 부팅 시 grub을 사용해 initrd로 새 커널을 부팅합니다. 이 프로세스 중에는 PXE 부팅이 사용되지 않습니다.

작업을 가져온 후 약 3분이 지나면 클라이언트는 재부팅을 시작합니다.

For clients, use the spacewalk/minion_script snippet to register the client again after migration has completed.