此文說明如何使用 Solaris 即時升級來升級已安裝非全域區域的 Solaris 10 作業系統。
將 Solaris 即時升級用於非全域區域
「Solaris 即時升級」目前支援為具有非全域區域的 Solaris 10 作業系統進行升級。Solaris 10 8/07 版本包含「區域升級」功能,可提升 Solaris 平台升級機制,以完整支援所有在系統上配置的非全域區域。區域升級功能包含對非全域區域使用 Solaris 即時升級的支援。
Solaris 即時升級與基礎公用程式會將每個非全域區域視為個別的 Solaris 實例。全域區域會先進行升級,接著一次升級一個非全域區域。
注意 — 在執行任何安裝、升級或修補程序前,請先確實完整備份您的系統。
規劃 Solaris 即時升級
如果要升級的系統所執行的是 Solaris 10 8/07 版之前的 Solaris 10 作業系統版本,在升級之前,請先安裝 Solaris 即時升級套裝軟體與修補程式。Solaris 10 系統至少必須修補至 InfoDoc 72099 中所列的修補程式層級。根據 Solaris 10 系統的版本而定,您可能會發現其中有些修補程式原本即已安裝。
必要的套裝軟體
若要將系統升級至 Solaris 10 8/07 版,請從 Solaris 10 8/07 影像安裝 Solaris 即時升級套裝軟體。您必須要有新的套裝軟體 SUNWlucfg,才能進行升級。Solaris 即時升級套裝軟體包含現有的軟體、新功能與錯誤修正程式。若您在使用 Solaris 即時升級之前未移除現有的套裝軟體,而在系統上安裝新的套裝軟體,則在升級至目標版本時可能會產生問題。新套裝軟體提供現行系統上的套裝軟體中,所沒有的錯誤修正程式與功能。如需如何安裝套裝軟體的相關資訊,請參閱此文中的「如何安裝必要的套裝軟體」。
必要的修補程式
安裝套裝軟體後,請套用 InfoDoc 72099 中所列的修補程式,因為這是使用 Solaris 即時升級進行升級時的必要項目。若要將修補程式儲存在本機磁碟上,請建立 /var/tmp/lupatches 目錄,然後將修補程式下載至此目錄。
#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
升級啟動環境上的作業系統
-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
非全域區域之 upgrade_log 檔案中的失敗項目範例如下:
Removal of SUNWgttf from zone <SUNWlu-zone1> failed.
注意 — Solaris 即時升級與 VxVM 不相容。Solaris 即時升級應搭配 Solaris 磁碟區管理員使用。
確定新的啟動環境已成功升級。
luupgrade 指令成功執行後,請啟動 BE2,並驗證所有區域均已正確升級。
注意 — 請忽略主控台上的下列訊息。此為已知問題。
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 即時升級的更多資訊
表 1 Solaris 即時升級參考資料
說明
更多資訊
Solaris 10 8/07 Installation Guide: Solaris Live Upgrade and Upgrade Planning 含有使用此工具所需瞭解的一切資訊。