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

クライアントには、インストールされているオペレーティングシステムで利用できる最新のサービスパック(SP)があり、最新の更新がすべて適用されている必要があります。システムが最新でありすべての更新が正しくインストールされていることを開始前に確認してください。

アップグレードは、YaSTおよびAutoYaSTによって制御されます。Zypperは使用しません。

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.