メジャーバージョンのアップグレード

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チャンネルに切り替えるには、アクティベーションキーが必要です。

Procedure: Creating an Activation Key
  1. In the SUSE Multi-Linux Manager Web UI, as an administrator, navigate to Systems  Activation Keys.

  2. Click the Create Key button.

  3. On the Activation Key Details page, in the Description field, enter a description of the activation key.

  4. In the Key field, enter a name for the activation key. For example, SLES15-SP7 for SUSE Linux Enterprise Server 15 SP7.

    • Do not use commas or double quotes in the Key field for any SUSE products. However, you must use commas for Red Hat Products.

    • All other characters are allowed, but <> (){} (this includes the space) are removed automatically.

    • If the field is left empty, a random string is generated.

  5. In the Usage add number of times the key can be used, or leave it blank for unlimited usage.

  6. In the Base Channels drop-down box, select the appropriate base software channel, and allow the relevant child channels to populate. For more information, see セットアップウィザード and カスタムチャンネル.

  7. Select the Child Channels you need (for example, the mandatory SUSE Multi-Linux Manager tools and updates channels).

  8. Check the Add-On System Types checkbox if you need to enable any of the options. For more information about system types, see システムの種類.

  9. We recommend you leave the Contact Method set to Default. For more information about contact methods, see クライアントの接続メソッド.

  10. We recommend you leave the Universal Default setting unchecked.

  11. Click Create Activation Key to create the activation key.

  12. After the activation key is created, the page shows additional checkbox Configuration File Deployment below the list of Add-On System Types. To enable deploying configuration files to systems on registration, select this checkbox.

  13. Click Update Activation Key to save the change.

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.