Solaris 9 安裝指南

測試用於 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

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


範例 33–4 使用 Using Solaris Live Upgrade 測試設定檔

在下列範例中,設定檔的名稱為 upgrade_solaris9。這個設定檔已在名為 s9u1b08 的非作用開機環境中完成測試。


# luupgrade -u -n s9u1b08 -D -s /net/installsvr/export/s9u1/combined.s9s_u1wos \
 -j /var/tmp/flash_profile
Validating the contents of the media /net/installsvr/export/s9u1/combined.s9s_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 s9u1b08.
Determining packages to install or upgrade for BE s9u1b08.
Simulating the operating system upgrade of the BE s9u1b08.
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 s9u1b08 is complete.

您可以隨時時用設定檔來升級非作用中的開機環境。