Solaris 9 4/03 版次注意事項

建立用於 Solaris Live Upgrade 的設定檔

建立差動歸檔檔案後,可以使用 Solaris Live Upgrade 將其安裝到新啟動環境中。Solaris Live Upgrade 要求可提供升級參數的設定檔。然後,該設定檔可由 luupgrade 指令存取。

  1. 使用文字編輯程式來建立文字檔案。

  2. 新增提供升級參數的設定檔關鍵字和值。以下關鍵字可用於差動歸檔檔案。

    表 3–1 Solaris Live Upgrade 設定檔關鍵字和說明

    設定檔關鍵字 

    說明 

    (必需的)install_type

    定義安裝類型。Solaris Flash 差動歸檔檔案的值為 flash_update

    (必需的) archive_location

    從指定位置擷取 Solaris Flash 歸檔檔案。 

    (選擇性的) no_master_check

    忽略為確定複製系統建立於原始主系統而進行的檢查。 

    (選擇性的)local_customization

    指定儲存自訂程序檔以保留複製系統上本機配置的目錄。 

    (選擇性的) forced_deployment

    刪除所有新檔案,以使複製系統進入預期狀態。 

    (選擇性的) no_content_check

    忽略可確保複製系統為主系統的複本的逐檔驗證。 

  3. 將設定檔儲存在本機系統的目錄中。

  4. 確定根中含有設定檔,且許可權設定為 644

  5. (選擇性的)測試設定檔。

    若要使用 luupgrade 指令來安裝差動歸檔檔案,請參閱 Solaris 9 安裝指南」第 33 章「使用 Solaris Live Upgrade 升級(工作)」中「在 Solaris Live Upgrade 中使用設定檔升級」一節。


範例 3–1 Solaris Live Upgrade 設定檔

Solaris Live Upgrade 將使用下面的設定檔範例在複製系統上安裝差動歸檔檔案。只新增、刪除或變更差動歸檔檔案指定的檔案。Solaris Flash 歸檔檔案從 NFS 伺服器中擷取。因為影像由原始主系統建立,所以不對複製系統的有效系統影像進行檢查。此設定檔和 Solaris Live Upgrade luupgrade 指令以及 -u-j 選項一同使用。

# profile keywords         profile values
# ----------------         -------------------
 install_type              flash_update
 archive_location          nfs installserver:/export/solaris/flasharchive/solaris9archive
 no_master_check