メジャーバージョンのアップグレード
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.1. インストールメディアの準備
-
コンテナホストで、インストールソースが含まれるISOイメージをダウンロードします。
-
Use
mgradmto import the installation data from the ISO image:mgradm distribution copy <image_name>.iso <image_name>
-
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. 自動インストールのディストリビューションを宣言する
-
SUSE Multi-Linux ManagerのWeb UIで、に移動します。
-
Click
Create Distribution, and complete these fields:In the
Distribution Labelfield, enter a name to identify your autoinstallation distribution. For example,sles15sp6-x86_64. * In theTree Pathfield, enter the path to the installation media you already saved. * Select the matchingBase Channel. This must match the installation media. * Select theInstaller Generation. This must match the installation media. * オプション: このディストリビューションをブートするときに使用するカーネルオプションを指定します。 カーネルオプションを指定する方法は複数あります。 ここにはディストリビューションに当てはまるオプションのみを追加します。 -
自動インストール可能なディストリビューションの作成をクリックします。
1.3. アクティベーションキーの作成
古いSLE 12ベースチャンネルから新しいSLE 15チャンネルに切り替えるには、アクティベーションキーが必要です。
-
In the SUSE Multi-Linux Manager Server Web UI, navigate to and click
Create Key. -
キーの説明を入力します。
-
キーを入力するか空白のままにし、自動キーを生成します。
-
OPTIONAL: If you want to limit the usage, enter your value in the
Usagetext field. -
Select the
SLE-Product-SLES15-SP6-Pool for x86_64base channel. -
OPTIONAL: Select any
Add-On System Types. 詳細については、https://documentation.suse.com/sles/15-SP7/html/SLES-all/article-modules.htmlを参照してください。 -
アクティベーションキーの作成をクリックします。
-
Click the
Child Channelstab and select the required channels. -
キーの更新をクリックします。
1.4. 自動インストールプロファイルの作成
自動インストールプロファイルには、システムをインストールするために必要なインストールデータおよび設定データがすべて含まれています。 インストール完了後に実行するスクリプトを含めることもできます。 手始めに使用できるスクリプトのサンプルは、https://github.com/SUSE/manager-build-profiles/tree/master/AutoYaSTを参照してください。
AutoYaSTの有効なアップグレード設定については、https://doc.opensuse.org/projects/autoyast/#CreateProfile-upgradeを参照してください。
-
SUSE Multi-Linux ManagerのWeb UIで、に移動し、自動インストールプロファイルのスクリプトをアップロードします。
手始めに使用できるスクリプトのサンプルは、以下を参照してください。
-
In the
Kernel Optionsfield, typeautoupgrade=1.Optionally, you can also include the
Y2DEBUG=1option. 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=ttyS0toKernel Options. -
自動インストールプロファイルを貼り付けるか、またはファイルアップロードフィールドを使用します。
-
作成をクリックして保存します。
-
When the uploaded profile requires variables to be set, navigate to , select the profile to edit, and navigate to the
Variablestab.次のフォーマットを使用して必要な変数を指定します。
<key>=<value>
2. 移行
自動インストールプロファイルで参照するチャンネルがすべて使用可能で完全に同期していることを開始前に確認してください。
You can monitor the mirroring progress in /var/log/rhn/reposync/<channel-label>.log.
-
In the SUSE Multi-Linux Manager Server Web UI, navigate to
Systemsand select the client to be upgraded. -
Navigate to the
Provisioningtab, and select the autoinstallation profile you uploaded. -
自動インストールをスケジュールしてから終了するをクリックします。 システムによって、必要なファイルがダウンロードされ、ブートローダのエントリが変更され、再起動され、アップグレードが開始されます。
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 |