Solaris 9 9/04 安裝指南

測試用於 Solaris Live Upgrade 的設定檔

建立設定檔後,請使用 luupgrade 指令測試設定檔。 藉由察看 luupgrade 所產生的安裝輸出,您可以很快測定出設定檔是否正常作業。

  1. 測試設定檔。


    # luupgrade -u -n BE_name -D -s os_image_path -j profile_path
    
    -u

    升級啟動環境上的作業系統影像。

    -n BE_name

    指定欲升級的啟動環境名稱。

    -D

    luupgrade 指令使用所選的啟動環境磁碟配置測試使用 -j 選項選定的設定檔選項。

    -s os_image_path

    指定包含作業系統影像的目錄路徑名稱。 此目錄可以在安裝媒體 (如 DVD-ROM、CD-ROM) 上,或者其可以為 NFS 或 UFS 目錄。

    -j profile_path

    配置好用於升級的設定檔路徑。 這個設定檔必須儲存在本機目錄中。


範例 36–5 使用 Solaris Live Upgrade 測試設定檔

在以下範例中,這個設定檔命名為 upgrade_Solaris_9。 在名為 u1b08 的非作用中啟動環境中,已成功測試了這個設定檔。


# luupgrade -u -n u1b08 -D -s /net/installsvr/export/u1/combined.u1wos \
 -j /var/tmp/flash_profile
Validating the contents of the media /net/installsvr/export/u1/combined.u1wos.
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains Solaris version 9.
Locating upgrade profile template to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE u1b08.
Determining packages to install or upgrade for BE u1b08.
Simulating the operating system upgrade of the BE u1b08.
The operating system upgrade simulation is complete.
INFORMATION: var/sadm/system/data/upgrade_cleanup contains a log of the
upgrade operation.
INFORMATION: var/sadm/system/data/upgrade_cleanup contains a log of
cleanup operations required.
The Solaris upgrade of the boot environment u1b08 is complete.

現在,您可以隨時用設定檔來升級非作用中的啟動環境。