제품 마이그레이션

1. 소개

제품 마이그레이션을 통해 SLE 기반 클라이언트 시스템을 서비스 팩(SP) 수준에서 이후 버전으로 업그레이드할 수 있습니다. 예를 들어, SUSE Linux Enterprise Server 15 SP5를 SUSE Linux Enterprise Server 15 SP6로 마이그레이션할 수 있습니다. 또한 Red Hat Enterprise Linux 또는 CentOS 같은 클라이언트를 SUSE Liberty Linux로 업그레이드할 수도 있습니다.

제품 마이그레이션을 위해서는 클라이언트에서 활성화되고 마이그레이션되어야 하는 모든 리포지토리가 유효해야 합니다. 그렇지 않으면 마이그레이션이 중단됩니다.

SUSE Multi-Linux Manager은(는) 다음 마이그레이션 경로를 지원합니다.

1.1. 동일한 주 버전 내에서 마이그레이션

제품 마이그레이션은 동일한 주 버전 내에서 업그레이드하기 위한 것입니다. 제품 마이그레이션을 사용하여 SUSE Linux Enterprise Server 12에서 SUSE Linux Enterprise Server 15으로 마이그레이트할 수는 없습니다. 주 업그레이드에 대한 자세한 설명은 주 버전 업그레이드를 참조하십시오.

1.2. openSUSE Leap의 이후 부 버전 또는 해당 SUSE Linux Enterprise Server 서비스 팩으로 마이그레이션

또한 openSUSE Leap을 이후 부 버전으로 또는 해당 SUSE Linux Enterprise Server SP 수준으로 마이그레이션할 수도 있습니다. 예:

  • openSUSE Leap 15.5에서 15.6으로

  • openSUSE Leap 15.6에서 SUSE Linux Enterprise Server 15 SP6으로

1.3. SUSE Linux Enterprise Server의 해당 SUSE Linux Enterprise Server for SAP Applications SP로 마이그레이션

또한 SUSE Linux Enterprise Server를 해당 SUSE Linux Enterprise Server SP 수준으로 마이그레이션할 수 있습니다. 예는 다음과 같습니다.

  • SUSE Linux Enterprise Server 15 SP5에서 SUSE Linux Enterprise Server for SAP Applications 15 SP5로

SUSE Customer Center이(가) 제공하는 경우 SUSE는 SUSE Linux Enterprise Server 12 이상 버전에서 서비스 팩 건너뛰기를 지원합니다. 예를 들어, SP1을 설치하지 않아도 SUSE Linux Enterprise Server 15에서 SP2로 업그레이드할 수 있습니다.

지원되는 SUSE Linux Enterprise Server 업그레이드 경로에 대한 내용은 https://documentation.suse.com/en-us/sles/15-SP6/html/SLES-all/cha-upgrade-paths.html#sec-upgrade-paths-supported에서 확인할 수 있습니다.

  • 모든 추천 확장 프로그램은 마이그레이션할 때 자동으로 활성화됩니다.

  • 마이그레이션 과정에서 SUSE Multi-Linux Manager는 설치 전에 필요한 모든 라이선스(EULA)를 자동으로 수락합니다.

2. 단일 시스템 마이그레이션

제품 마이그레이션을 시작하기 전에:

  • Ensure there are no pending updates or patches. Check the System Status on the client system’s Details  Overview page, and install all offered updates or patches. If your client system is not up to date, product migration may fail.

  • 대상 제품의 모든 채널이 완전히 동기화되었는지 확인합니다. Web UI에서 동기화 상태를 확인하려면, 관리자  설정 마법사  제품 페이지로 이동합니다.

  • 비상 상황에서 사용할 수 있는 시스템 백업이 있는지 확인하십시오. 제품 마이그레이션에는 롤백 기능이 없습니다. 마이그레이션 절차가 시작되면 롤백이 불가능합니다.

절차: 단일 시스템 마이그레이션 수행
  1. 시스템  개요 페이지에서 클라이언트를 선택합니다.

  2. 클라이언트의 시스템 정보 페이지에서 소프트웨어  제품 마이그레이션 탭으로 이동합니다.

  3. 대상 마이그레이션 경로를 선택하고 채널 선택을 클릭합니다.

  4. From the Product Migration - Channels page select the correct base channel, including Mandatory Child Channels and any additional Optional Child Channels.

  5. OPTIONAL: Check Allow Vendor Change to allow packages that have changed vendors to be installed. If this occurs, a notification is shown with details before the migration is started.

    To migrate openSUSE Leap to SUSE Linux Enterprise Server, you must check the Allow Vendor Change option.

  6. 채널이 적절히 구성되었으면 마이그레이션 예약을 클릭합니다.

3. 제품 대량 마이그레이션

다수의 클라이언트를 다음 SP 버전으로 마이그레이션하고 싶은 경우 SUSE Multi-Linux Manager API 호출을 사용하면 됩니다.

The spacecmd commandline tool provides a system_scheduleproductmigration sub command, which can be used to schedule a migration for a large number of clients to the next minor version.

3.1. 제품 대량 마이그레이션 수행

제품 대량 마이그레이션 작업은 위험하므로 프로세스를 철저히 테스트해야 합니다. 최소한으로 시험 실행을 우선 수행하십시오.

실수로 시스템을 업그레이드하지 않도록 주의하십시오.

절차: 제품 대량 마이그레이션 수행
  1. 다음과 같이 사용 가능한 마이그레이션 대상을 나열하고, 마이그레이션하려는 시스템 ID를 적어 둡니다.

    spacecmd api -- system.listMigrationTargets -A 1000010001
  2. For each system ID, call listMigrationTarget and check that the desired target product is available.

    • If the system ID has an available target, call system.scheduleProductMigration.

    • 원하는 대상을 사용할 수 없는 경우 시스템을 건너뛰십시오.

  3. 다음 템플릿을 환경에 맞게 조정합니다.

    target = '[....]'
    basechannel = 'channel-label'
    system_ids = [1, 2, 3]
    
    session = auth.login(user, pass)
    for system in system_ids
      if system.listMigrationTargets(session, system).ident == target
        system.scheduleProductMigration(session, system, target, basechannel, [], False, <now>)
      else
        print "요청된 대상으로 마이그레이션할 수 없음 -- 시스템 건너뛰기"
      endif
    endfor

3.2. 예: SLES 15 SP2에서 SLES 15 SP3로

이 예에서는 대량 마이그레이션을 편리하게 수행할 수 있도록 그룹이 임시로 생성됩니다.

절차: 대량 제품 마이그레이션 그룹 생성
  1. SUSE Multi-Linux Manager Web UI에서 시스템  시스템 그룹으로 이동하여 그룹 생성을 클릭합니다.

  2. Name the group mpm-target-sles15sp3.

    • Only systems subscribed to the same base channel should be added to the created group. In the example, only systems subscribed to SLE-Product-SLES15-SP2-Pool for x86_64 should be added to the group.

      그룹에 클라이언트를 추가하는 방법에 대한 자세한 내용은 시스템 그룹에서 확인할 수 있습니다.

절차: 시스템을 그룹에 추가
  1. 그룹 내의 모든 시스템에 대한 대상을 가져오려면 다음을 실행합니다.

    spacecmd -- system_listmigrationtargets group:mpm-target-sles15sp3
  2. 이 명령을 수행하면 "ID" 스트링이 출력됩니다.

    • 모든 시스템에 대해 보고되는 대상만 선택하십시오.

    • The string is the identifier for the MIGRATIONTARGET of the other command.

      The spacecmd sub-commands system_scheduleproductmigration and system_listmigrationtargets are looping over all systems that are part of the group.

      그룹에 시스템 100개가 있는 경우 작업 100개가 예약으로 표시됩니다.

      그룹의 모든 시스템은 동일한 마이그레이션 대상을 지원해야 합니다.

절차: 대량 마이그레이션 명령 실행
  1. The syntax for the system_scheduleproductmigration command is as follows:

    spacecmd -- system_scheduleproductmigration <SYSTEM> <BASE_CHANNEL_LABEL> \
        <MIGRATION_TARGET> [옵션]
  2. For this example to upgrade all systems in the group mpm-target-sles15sp3 from SLES 12 SP2 to SLES 15 SP, enter on the command line:

    spacecmd -- system_scheduleproductmigration group:mpm-target-sles15sp3 \
        sle-product-sles15-sp3-pool-x86_64 "[190,203,195,1242]" -d

3.2.1. 필수 구문 설명

To see syntax usage and options for system_scheduleproductmigration, run:

spacecmd system_scheduleproductmigration help
<시스템>

이 예에서는 해당 그룹에서 모든 시스템을 선택하기 위해 생성한 그룹을 사용합니다.

group:mpm-target-sles15sp3
<BASE_CHANNEL_LABEL>

This is the label for the target base channel. In this case, the system is being upgraded to SLES 15 SP3, and the label is sle-product-sles15-sp3-pool-x86_64.

현재 미러링되는 모든 기본 채널 목록을 보려면 다음을 실행:

spacecmd softwarechannel_listbasechannels

현재 기본 채널에 대해 사용할 수 있는 대상이 아닌 경우 채널로 업그레이드할 수 없음에 유의하십시오.

<MIGRATION_TARGET>

To identify this value for systems in the group group:mpm-target-sles15sp3, run:

spacecmd -- system_listmigrationtargets group:mpm-target-sles15sp3

The MIGRATION_TARGET parameter must be passed in the following format; note necessary shell quotation to prevent sideeffects with brackets:

"[190,203,195,1242]"
옵션
  • -s START_TIME

  • -d pass this flag, if you want to do a dry run (it is recommended to run a dry run before the actual migration)

  • -c CHILD_CHANNELS (comma-separated child channels labels with no spaces)

    In this case we included the -d option, which can be removed after a successful dry run.

성공하면 예약된 각 시스템의 명령 출력은 다음과 같습니다.

mpm-sles152-1 시스템에 대한 제품 마이그레이션 예약
예약된 작업 ID: 66

그룹의 지정된 시스템에 대해 Web UI에서 작업(이 경우 시험 실행)을 추적할 수도 있습니다. 클라이언트의 시스템 세부 정보 페이지에서 이벤트  이력으로 이동합니다. 시험 실행 중 오류가 발생하면 시스템을 조사해야 합니다.

If all is well, the -d option can be removed from the command to run the real migration. After the migration is complete, you can reboot the system from the SUSE Multi-Linux Manager Web UI.