跳過導航連結 | |
結束列印檢視 | |
Oracle Solaris 10 8/11 安裝指南:Solaris Live Upgrade 與升級規劃 Oracle Solaris 10 8/11 Information Library (繁體中文) |
第 1 部分使用 Solaris Live Upgrade 升級
4. 使用 Solaris Live Upgrade 建立啟動環境 (作業)
5. 使用 Solaris Live Upgrade 升級 (作業)
SPARC: 使用 DVD、CD 或網路安裝影像轉至備用原始啟動環境
7. 維護 Solaris Live Upgrade 啟動環境 (作業)
8. 在已安裝非全域區域的系統上升級 Oracle Solaris 作業系統
10. Solaris Live Upgrade (指令參考)
第 2 部分使用 Solaris Live Upgrade 升級和遷移至 ZFS 根池
11. Solaris Live Upgrade 和 ZFS (簡介)
12. 針對 ZFS 執行 Solaris Live Upgrade (規劃)
若要轉至備用原始啟動環境,請選擇最適合您情況之程序。
當您已成功啟動新的啟動環境後對結果不滿意,可以使用此程序。使用 GRUB 功能表,您可以快速切換回原始啟動環境。
備註 - 進行切換的啟動環境必須是使用 GRUB 軟體建立的 GRUB 啟動環境。如果使用 Solaris 8、9 或 10 3/05 發行版本建立啟動環境,則該啟動環境不是 GRUB 啟動環境。
身份包含授權指令與特權指令。如需角色的更多資訊,請參閱「System Administration Guide: Security Services」中的「Configuring RBAC (Task Map)」。
# init 6
會顯示 GRUB 功能表。Oracle Solaris 作業系統是原始啟動環境。second_disk 啟動環境已成功啟用,並出現在 GRUB 功能表上。如果主要項目因為某些原因並未啟動,可使用 failsafe 項目進行回復。
GNU GRUB version 0.95 (616K lower / 4127168K upper memory) +-------------------------------------------------------------------+ |Solaris | |Solaris failsafe | |second_disk | |second_disk failsafe | +-------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line.
範例 6-1 在成功啟動新啟動環境的情況下轉至備用環境
# su # init 6
GNU GRUB version 0.95 (616K lower / 4127168K upper memory) +-------------------------------------------------------------------+ |Solaris | |Solaris failsafe | |second_disk | |second_disk failsafe | +-------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line.
選取原始啟動環境 Solaris。
如果啟動失敗,請使用下列程序轉至備用原始啟動環境。在此範例中,GRUB 功能表會正確顯示,但是不會啟動新的啟動環境。裝置是 /dev/dsk/c0t4d0s0。原始啟動環境 c0t4d0s0 將成為使用中啟動環境。
注意 - 若為 Solaris 10 3/05 發行版本,如果舊版啟動環境和新的啟動環境在不同的磁碟上,建議的轉至備用環境動作包括變更 BIOS 中的硬碟啟動順序。從 Solaris 10 1/06 發行版本開始,變更 BIOS 磁碟順序不再需要,且強烈不建議您這麼做。變更 BIOS 磁碟順序可能會使 GRUB 功能表無效,並導致啟動環境變成無法啟動。如果變更 BIOS 磁碟順序,將順序復原成原始設定可復原系統的功能。 |
身份包含授權指令與特權指令。如需角色的更多資訊,請參閱「System Administration Guide: Security Services」中的「Configuring RBAC (Task Map)」。
# init 6
會顯示 GRUB 功能表。
GNU GRUB version 0.95 (616K lower / 4127168K upper memory) +-------------------------------------------------------------------+ |Solaris | |Solaris failsafe | |second_disk | |second_disk failsafe | +-------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line.
如此會顯示 GRUB 編輯功能表。
root (hd0,2,a) kernel /platform/i86pc/multiboot module /platform/i86pc/boot_archive
核心項目會顯示在 GRUB 編輯功能表中。
grub edit>kernel /boot/multiboot
下列範例指出 -s 選項的放置處。
grub edit>kernel /boot/multiboot -s
# fsck mount_ point
已知且可信賴的根 (/) 檔案系統
# mount device_name /mnt
指定您想要轉至備用啟動環境之磁碟裝置上的根 (/) 檔案系統位置。裝置名稱會以 /dev/dsk/c wtxd ysz 格式輸入。
# /mnt/sbin/luactivate
luactivate 會啟動上一個運作的啟動環境並指出結果。
# umount /mnt
# init 6
上一個運作的啟動環境會成為使用中啟動環境。
如果啟動失敗,請使用下列程序轉至備用原始啟動環境。在此範例中,新的啟動環境無法啟動,此外,不會顯示 GRUB 功能表。裝置是 /dev/dsk/c0t4d0s0。原始啟動環境 c0t4d0s0 將成為使用中啟動環境。
注意 - 若為 Solaris 10 3/05 發行版本,如果舊版啟動環境和新的啟動環境在不同的磁碟上,建議的轉至備用環境動作包括變更 BIOS 中的硬碟啟動順序。從 Solaris 10 1/06 發行版本開始,變更 BIOS 磁碟順序不再需要,且強烈不建議您這麼做。變更 BIOS 磁碟順序可能會使 GRUB 功能表無效,並導致啟動環境變成無法啟動。如果變更 BIOS 磁碟順序,將順序復原成原始設定可復原系統的功能。 |
身份包含授權指令與特權指令。如需角色的更多資訊,請參閱「System Administration Guide: Security Services」中的「Configuring RBAC (Task Map)」。
# init 6
會顯示 GRUB 功能表。
GNU GRUB version 0.95 (616K lower / 4127168K upper memory) +-------------------------------------------------------------------------+ |Oracle Solaris 10 8/11 | |Oracle Solaris 10 8/11 Serial Console ttya | |Oracle Solaris 10 8/11 Serial Console ttyb (for lx50, v60x and v65x | +-------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line.
會顯示安裝畫面。
+-------------------------------------------------------------------+ | | |Select the type of installation you want to perform: | | | | 1 Solaris Interactive | | 2 Custom JumpStart | | 3 Solaris Interactive Text (Desktop session) | | 4 Solaris Interactive Text (Console session) | | 5 Apply driver updates | | 6 Single user shell | | | | Enter the number of your choice followed by the <ENTER> key.| | Alternatively, enter custom boot arguments directly. | | | | If you wait 30 seconds without typing anything, | | an interactive installation will be started. | +----------------------------------------------------------------- --+
會顯示下列訊息。
Do you wish to automatically update the boot archive? y /n
Starting shell... #
您現在處於單一使用者模式。
# fsck mount_ point
已知且可信賴的根 (/) 檔案系統
# mount device_name /mnt
指定您想要轉至備用啟動環境之磁碟裝置上的根 (/) 檔案系統位置。裝置名稱會以 /dev/dsk/c wtxd ysz 格式輸入。
# /mnt/sbin/luactivate Do you want to fallback to activate boot environment c0t4d0s0 (yes or no)? yes
luactivate 會啟動上一個運作的啟動環境並指出結果。
# umount device_name
指定您想要轉至備用啟動環境之磁碟裝置上的根 (/) 檔案系統位置。裝置名稱會以 /dev/dsk/c wtxd ysz 格式輸入。
# init 6
上一個運作的啟動環境會成為使用中啟動環境。