Solaris 10 10/08 安裝指南:Solaris Live Upgrade 與升級規劃

Procedure測試用於 Solaris Live Upgrade 的設定檔

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

  1. 成為超級使用者,或者假定一個對等身份。

    身份包含授權指令與特權指令。如需有關角色的更多資訊,請參閱「System Administration Guide: Security Services」中的「Configuring RBAC (Task Map)」

  2. 測試設定檔。


    # 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

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


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

在下列範例中,此設定檔名為 Flash_profile。在名稱為 second_disk 的非使用中啟動環境中,已成功測試此設定檔。


# 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 10.
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 second_disk.
Determining packages to install or upgrade for BE second_disk.
Simulating the operating system upgrade of the BE second_disk.
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 second_disk is complete.

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