JavaScript is required to for searching.
跳過導航連結
結束列印檢視
Oracle Solaris 10 8/11 安裝指南:Solaris Live Upgrade 與升級規劃     Oracle Solaris 10 8/11 Information Library (繁體中文)
search filter icon
search icon

文件資訊

前言

第 1 部分使用 Solaris Live Upgrade 升級

1.  Solaris 安裝規劃資訊的位置

2.  Solaris Live Upgrade (簡介)

3.  Solaris Live Upgrade (規劃)

4.  使用 Solaris Live Upgrade 建立啟動環境 (作業)

5.  使用 Solaris Live Upgrade 升級 (作業)

作業說明:升級啟動環境

升級啟動環境

升級準則

使用套裝軟體或修補程式升級系統

升級啟動環境中的網路安裝影像

從多張 CD 升級網路安裝影像

增加套裝軟體到啟動環境中的網路安裝影像

增加修補程式到啟動環境中的網路安裝影像

取得安裝於啟動環境之套裝軟體的資訊

使用 JumpStart 設定檔升級

建立用於 Solaris Live Upgrade 的設定檔

測試用於 Solaris Live Upgrade 的設定檔

使用 Solaris Live Upgrade 透過設定檔進行升級

在啟動環境上安裝 Solaris Flash 歸檔

在啟動環境中安裝 Solaris Flash 歸檔

使用設定檔安裝 Solaris Flash 歸檔

使用設定檔關鍵字安裝 Solaris Flash 歸檔

啟動某啟動環境

啟動某啟動環境的需求和限制

啟動啟動環境

啟動某啟動環境並同步化檔案

x86: 使用 GRUB 功能表啟動某啟動環境

x86: 使用 GRUB 功能表啟動某啟動環境

6.  失敗回復:轉至備用原始啟動環境 (作業)

7.  維護 Solaris Live Upgrade 啟動環境 (作業)

8.  在已安裝非全域區域的系統上升級 Oracle Solaris 作業系統

9.  Solaris Live Upgrade (範例)

10.  Solaris Live Upgrade (指令參考)

第 2 部分使用 Solaris Live Upgrade 升級和遷移至 ZFS 根池

11.  Solaris Live Upgrade 和 ZFS (簡介)

12.  針對 ZFS 執行 Solaris Live Upgrade (規劃)

13.  為 ZFS 根池建立啟動環境

14.  針對已安裝非全域區域的 ZFS 執行 Solaris Live Upgrade

第 3 部分附錄

A.  疑難排解 (作業)

B.  附加的 SVR4 封裝需求 (參考)

C.  升級時使用修補程式分析器 (作業)

字彙表

索引

在啟動環境上安裝 Solaris Flash 歸檔

本節提供使用 Solaris Live Upgrade 安裝 Solaris Flash 歸檔的程序。安裝 Solaris Flash 歸檔會覆寫除共用檔案之外的所有新啟動環境上的檔案。歸檔儲存在下列媒體中:

請注意下列與安裝和建立 Solaris Flash 歸檔相關的問題。

說明
範例

注意

注意 - 當您使用 Solaris Flash 歸檔安裝 Oracle Solaris 作業系統時,歸檔和安裝媒體必須包含相同的作業系統版本。如果作業系統版本不相符,目標系統上的安裝會失敗。當您使用下列關鍵字或指令時,必須有相同的作業系統:

  • 設定檔中的 archive_location 關鍵字

  • luupgrade 指令搭配 -s-a-j-J 選項


例如,如果歸檔是 Solaris 10 作業系統,且您使用的是 DVD 媒體,則您必須使用 Solaris 10 DVD 媒體來安裝歸檔。

注意

注意 - 若安裝了非全域區域,則無法正確建立 Solaris Flash 歸檔。Solaris Flash 功能與 Solaris Zones 功能不相容。如果在非全域區域中建立 Solaris Flash 歸檔,或在已安裝非全域區域的全域區域中建立歸檔,則當部署歸檔時,將無法正確安裝產生的歸檔。


說明
更多資訊
如需與歸檔儲存相關聯路徑的正確語法之範例。
若要使用 Solaris Flash 安裝功能,請安裝主系統並建立 Solaris Flash 歸檔。

在啟動環境中安裝 Solaris Flash 歸檔

  1. 將 Solaris Live Upgrade SUNWlucfgSUNWlurSUNWluu 套裝軟體安裝到您的系統。這些套裝軟體必須是將要升級至之發行版本的套裝軟體。如需逐步程序,請參閱使用 pkgadd 指令安裝 Solaris Live Upgrade
  2. 成為超級使用者,或者假定一個對等身份。

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

  3. 鍵入:
    # luupgrade -f -n BE_name -s os_image_path -a archive
    -f

    表示從 Solaris Flash 歸檔安裝作業系統。

    -n BE_name

    指定要使用歸檔安裝的啟動環境名稱。

    -s os_image_path

    指定包含作業系統影像的目錄路徑名稱。此目錄可以在安裝媒體 (如 DVD-ROM、CD-ROM) 上,或者其可以為 NFS 或 UFS 目錄。此作業系統影像提供 miniroot,可啟動最小的可開機根 (/) 檔案系統,以利於 Solaris Flash 歸檔的安裝。此 miniroot 不是要安裝的影像。-a 選項提供作業系統影像。

    -a archive

    當歸檔在本機檔案系統上可以使用時,Solaris Flash 歸檔的路徑。透過 -s 選項及 -a 選項指定的作業系統影像版本必須相同。

範例 5-11 在啟動環境上安裝 Solaris Flash 歸檔

在此範例中,歸檔已安裝在 second_disk 啟動環境上。歸檔儲存在本機系統上。-s 選項提供 miniroot,可啟動最小的可開機根 (/) 檔案系統,以利於 Solaris Flash 歸檔的安裝。此 miniroot 不是要安裝的影像。-a 選項提供作業系統影像。-s-a 選項的作業系統版本均為 Oracle Solaris 10 8/11 發行版本。除了可共用的檔案之外,所有在 second_disk 上的檔案皆被覆寫。pkgadd 指令會增加將要升級至之發行版本的 Solaris Live Upgrade 套裝軟體。

# pkgadd -d /server/packages SUNWlucfg SUNWlur SUNWluu
# luupgrade -f -n second_disk \ -s /net/installmachine/export/Solaris_10/OS_image \ -a /net/server/archive/10 

該啟動環境已準備就緒,可以啟動。請參閱啟動某啟動環境

使用設定檔安裝 Solaris Flash 歸檔

本程序提供使用設定檔安裝 Solaris Flash 歸檔或差動歸檔的步驟。

在設定檔中增加語言環境前,應先使用附加的磁碟空間建立啟動環境。

  1. 將 Solaris Live Upgrade SUNWlucfgSUNWlurSUNWluu 套裝軟體安裝到您的系統。這些套裝軟體必須是將要升級至之發行版本的套裝軟體。如需逐步程序,請參閱使用 pkgadd 指令安裝 Solaris Live Upgrade
  2. 成為超級使用者,或者假定一個對等身份。

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

  3. 建立設定檔。

    如需可以在 Solaris Live Upgrade 設定檔中使用的關鍵字清單,請參閱建立用於 Solaris Live Upgrade 的設定檔

  4. 鍵入:
    # luupgrade -f -n BE_name -s os_image_path -j profile_path
    -f

    表示從 Solaris Flash 歸檔安裝作業系統。

    -n BE_name

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

    -s os_image_path

    指定包含作業系統影像的目錄路徑名稱。此目錄可以在安裝媒體 (如 DVD-ROM、CD-ROM) 上,或者其可以為 NFS 或 UFS 目錄。此作業系統影像提供 miniroot,可啟動最小的可開機根 (/) 檔案系統,以利於 Solaris Flash 歸檔的安裝。此 miniroot 不是要安裝的影像。-j 選項提供含有 Solaris Flash 歸檔作業系統影像之設定檔的路徑。

    -j profile_path

    針對 Flash 安裝所配置的 JumpStart 設定檔路徑。這個設定檔必須儲存在本機目錄中。-s 選項的作業系統版本和 Solaris Flash 歸檔作業系統版本必須相同。

    該啟動環境已準備就緒,可以啟動。請參閱啟動某啟動環境

範例 5-12 使用設定檔在啟動環境中安裝 Solaris Flash 歸檔

在本範例中,設定檔提供要安裝的歸檔位置。

# profile keywords         profile values
# ----------------         -------------------
 install_type              flash_install
 archive_location          nfs installserver:/export/solaris/flasharchive/solarisarchive
 

設定檔建立後,您可以執行 luupgrade 指令並安裝歸檔。-s 選項提供 miniroot,可啟動最小的可開機根 (/) 檔案系統,以利於 Solaris Flash 歸檔的安裝。此 miniroot 不是要安裝的影像。-j 選項提供含有 Solaris Flash 歸檔作業系統影像路徑之設定檔的路徑。-j 選項可用來存取設定檔。pkgadd 指令會增加將要升級至之發行版本的 Solaris Live Upgrade 套裝軟體。

# pkgadd -d /server/packages SUNWlucfg SUNWlur SUNWluu
# luupgrade -f -n second_disk \ -s /net/installmachine/export/solarisX/OS_image \ -j /var/tmp/profile 

該啟動環境已準備就緒,可以啟動。請參閱啟動某啟動環境

若要建立設定檔,請參閱建立用於 Solaris Live Upgrade 的設定檔

使用設定檔關鍵字安裝 Solaris Flash 歸檔

此程序可以在指令行而不是從設定檔來安裝 Solaris Flash 歸檔以及使用 archive_location 關鍵字。您不需要使用設定檔檔案,就能迅速擷取歸檔。

  1. 將 Solaris Live Upgrade SUNWlucfgSUNWlurSUNWluu 套裝軟體安裝到您的系統。這些套裝軟體必須是將要升級至之發行版本的套裝軟體。如需逐步程序,請參閱使用 pkgadd 指令安裝 Solaris Live Upgrade
  2. 成為超級使用者,或者假定一個對等身份。

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

  3. 鍵入:
    # luupgrade -f -n BE_name -s os_image_path -J 'archive_location path-to-profile'
    -f

    指定從 Solaris Flash 歸檔升級作業系統。

    -n BE_name

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

    -s os_image_path

    指定包含作業系統影像的目錄路徑名稱。此目錄可以在安裝媒體 (如 DVD-ROM、CD-ROM) 上,或者其可以為 NFS 或 UFS 目錄。此作業系統影像提供 miniroot,可啟動最小的可開機根 (/) 檔案系統,以利於 Solaris Flash 歸檔的安裝。此 miniroot 不是要安裝的影像。-j 選項提供含有 Solaris Flash 歸檔作業系統影像之設定檔的路徑。

    -J 'archive_location path-to-profile'

    指定 archive_location 設定檔關鍵字和 JumpStart 設定檔的路徑。-s 選項的作業系統版本和 Solaris Flash 歸檔作業系統版本必須相同。如需關鍵字值,請參閱「Oracle Solaris 10 8/11 安裝指南:自訂 JumpStart 及進階安裝」中的「archive_location 關鍵字」

    該啟動環境已準備就緒,可以啟動。請參閱啟動某啟動環境

範例 5-13 使用設定檔關鍵字安裝 Solaris Flash 歸檔

在此範例中,歸檔已安裝在 second_disk 啟動環境上。-s 選項提供 miniroot,可啟動最小的可開機根 (/) 檔案系統,以利於 Solaris Flash 歸檔的安裝。此 miniroot 不是要安裝的影像。-j 選項提供 Solaris Flash 歸檔作業系統影像的路徑。-J 選項及 archive_location 關鍵字可用來擷取歸檔。除了可共用的檔案之外,所有在 second_disk 上的檔案皆被覆寫。pkgadd 指令會增加將要升級至之發行版本的 Solaris Live Upgrade 套裝軟體。

# pkgadd -d /server/packages SUNWlucfg SUNWlur SUNWluu
# luupgrade -f -n second_disk \ -s /net/installmachine/export/solarisX/OS_image \ -J 'archive_location http://example.com/myflash.flar'