この記事では、Solaris Live Upgrade を使用して、非大域ゾーンがインストールされている Solaris 10 OS をアップグレードする方法を説明します。
非大域ゾーンでの Solaris Live Upgrade の使用法
Solaris Live Upgrade は、非大域ゾーンがインストールされている Solaris 10 OS のアップグレードをサポートするようになりました。Solaris 10 8/07 リリースは、Solaris プラットフォームのアップグレード機構を強化する「ゾーンアップグレード」機能を備え、システム上に構成されているすべての非大域ゾーンを完全にサポートします。ゾーンアップグレード機能には、非大域ゾーンでの Solaris Live Upgrade の使用のサポートが含まれます。
各非大域ゾーンは、Solaris Live Upgrade および基本となるユーティリティーにより、独立した Solaris インスタンスとして処理されます。最初に大域ゾーンがアップグレードされ、続いて各非大域ゾーンが 1 つずつアップグレードされます。
Solaris 10 8/07 リリースよりも古いバージョンの Solaris 10 OS を実行しているシステムをアップグレードする前に、Solaris Live Upgrade のパッケージとパッチをインストールします。Solaris 10 システムは、少なくとも InfoDoc 72099 に示されているパッチレベルまでパッチを適用する必要があります。Solaris 10 システムのバージョンに応じて、これらのパッチの一部はすでにインストールされている場合があります。
必要なパッケージ
システムを Solaris 10 8/07 リリースにアップグレードするには、Solaris 10 8/07 イメージから Solaris Live Upgrade パッケージをインストールする必要があります。アップグレードを実行するには、新規パッケージの SUNWlucfg が必要です。Solaris Live Upgrade パッケージには、既存のソフトウェア、新しい機能、およびバグの修正が含まれています。Solaris Live Upgrade を使用する前に、既存のパッケージを削除せずにシステムに新しいパッケージをインストールすると、ターゲットリリースへのアップグレードで問題が発生する可能性があります。新しいパッケージには、バグの修正と現在のシステムに存在しない機能が含まれています。パッケージのインストール方法の詳細は、この記事の「必要なパッケージのインストール方法」を参照してください。
必要なパッチ
パッケージをインストールするときに、Solaris Live Upgrade によるアップグレードで必要となるパッチを適用します。これらのパッチは、InfoDoc 72099 に一覧表示されています。パッチをローカルディスクに格納する場合は、/var/tmp/lupatches ディレクトリを作成して、このディレクトリにパッチをダウンロードします。
次の手順を実行して、必要な Solaris Live Upgrade パッケージをインストールします。
pkgrm コマンドを使用して、既存の Solaris Live Upgrade パッケージを削除します。
SUNWlucfg、SUNWlur、および SUNWluu の 3 つの Solaris Live Upgrade パッケージが、Solaris Live Upgrade でアップグレードが必要なソフトウェアです。これらのパッケージには、既存のソフトウェア、新しい機能、およびバグの修正が含まれます。システムにある既存のパッケージを削除して、新しいパッケージをインストールします。
#zoneadm -z zone1 boot
#zoneadm -z zone2 boot
#zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 zone1 running /space/zone1 native shared
2 zone2 running /space/zone2 native shared
#zoneadm list -p
0:global:running:/::native:shared
1:zone1:running:/space/zone1:559ca0a2-d7c5-6a61-e64c- bec99bb0910c:native:shared
2:zone2:running:/space/zone2:d3e6bc88-3533-6209-f25d- e811e334295a:native:shared
新しいブート環境をアップグレードします。
#luupgrade -u-nnew-BE-ssolaris-image-path
luupgrade -u
ブート環境の OS をアップグレードします。
-nnew-BE
アップグレード対象のブート環境の名前です。
-ssolaris-image-path
Solaris イメージパスを指定します。
たとえば、次のように入力します。
#luupgrade -u -n BE2 -s /net/ins3525-svr/export2/s10u4/dvds/latest
159376 blocks
miniroot file system is <lofs>
Mounting miniroot at </net/ins3525-svr/export2/s10u4/dvds/latest/Solaris_10/Tools/Boot>
Validating the contents of the media </net/ins3525- svr/export2/s10u4/dvds/latest>.
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains <Solaris> version <10>.
Constructing upgrade profile to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE <BE2>.
Determining packages to install or upgrade for BE <BE2>.
Performing the operating system upgrade of the BE <BE2>.
CAUTION: Interrupting this process may leave the boot environment unstable
or unbootable.
Upgrading Solaris: 100% completed
Installation of the packages from this media is complete.
Updating package information on boot environment <BE2>.
Package information successfully updated on boot environment <BE2>.
Adding operating system patches to the BE <BE2>.
The operating system patch installation is complete.
INFORMATION: The file </var/sadm/system/logs/upgrade_log> on boot
environment <BE2> contains a log of the upgrade operation.
INFORMATION: The file </var/sadm/system/data/upgrade_cleanup> on boot
environment <BE2> contains a log of cleanup operations required.
WARNING: <1> packages failed to install properly on boot environment <BE2>.
INFORMATION: The file </var/sadm/system/data/upgrade_failed_pkgadds> on
boot environment <BE2> contains a list of packages that failed to upgrade
or install properly.
INFORMATION: Review the files listed above. Remember that all of the files
are located on boot environment <BE2>. Before you activate boot
environment <BE2>, determine if any additional system maintenance is
required or if additional media of the software distribution must be
installed.
The Solaris upgrade of the boot environment <BE2> is partially complete.
Doing pkgadd of SUNWcsu to /
29329 blocks
Doing pkgadd of SUNWcsu
Installation of SUNWcsu was successful
非大域ゾーンの upgrade_log ファイルのサンプルエントリは、次のようになります。
Doing pkgadd of SUNWcsu to /
31722 blocks
Installation of SUNWcsu was successful.
Installation of SUNWcsu on zone <SUNWlu-zone1> was successful.
Installation of SUNWcsu on zone <SUNWlu-zone2> was successful
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100083_1/ rpc_tcp:default in repository: entity not found
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100083_1/ rpc_tcp:default in repository: No such file or directory
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100068_2-5/ rpc_udp:default in repository: entity not found
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100068_2-5/ rpc_udp:default in repository: No such file or directory
Solaris Live Upgrade の追加情報
表 1 Solaris Live Upgrade の参照情報
説明
詳細情報
『Solaris 10 8/07 インストールガイド (Solaris Live Upgrade とアップグレードの計画)』には、このツールを使用する際に必要なすべての情報が記載されています。
Solaris 10 1/06 リリースで、新しいパッチ処理ツールの Sun Update Connection が追加されました。このツールはシステムを解析して、適切なパッチを適用します。このツールセットの September 2006 release 1.0.8 には、Solaris Live Upgrade で作業するためのさまざまなオプションが用意されています。