跳过导航链接 | |
退出打印视图 | |
![]() |
Oracle Solaris 10 1/13 安装指南:Live Upgrade 和升级规划 Oracle Solaris 10 1/13 Information Library (简体中文) |
1. 在何处查找 Oracle Solaris 安装规划信息
SPARC: 使用 DVD、CD 或网络安装映像回退到初始引导环境
8. 在安装了非全局区域的系统中升级 Oracle Solaris OS
第 2 部分使用 Live Upgrade 升级和迁移到 ZFS 根池
要回退到初始引导环境,请选择最适合您情况的过程。
当您成功激活新的引导环境但对结果不满意时,请执行本过程。可以通过使用 GRUB 快速切换回初始引导环境。
注 - 要切换的引导环境必须是用 GRUB 软件创建的 GRUB 引导环境。如果某个引导环境是在 Solaris 8、Solaris 9 或 Solaris 10 3/05 发行版中创建的,则该引导环境不是 GRUB 引导环境。
# init 6
此时将显示 GRUB 菜单。Oracle Solaris OS 是初始引导环境。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.
如果引导时出现故障,请使用以下过程回退到初始引导环境。在本示例中,正确显示了 GRUB 菜单,但是新引导环境不可引导。设备为 /dev/dsk/c0t4d0s0。初始引导环境 c0t4d0s0 成为活动的引导环境。
![]() | 注意 - 对于 Solaris 10 3/05 发行版,如果以前的引导环境和新引导环境在不同的磁盘上,推荐的回退操作包括了在 BIOS 中更改硬盘引导顺序。从 Solaris 10 1/06 发行版开始,不再需要更改 BIOS 磁盘顺序,强烈建议不要更改此顺序。更改 BIOS 磁盘顺序可能使 GRUB 菜单无效并导致引导环境无法引导。如果更改了 BIOS 磁盘顺序,请将顺序恢复为初始设置来恢复系统功能。 |
开始之前
必须已使用 GRUB 软件创建了该引导环境。在 Solaris 10 1/06 发行版之前创建的引导环境不属于 GRUB 引导环境。如果您没有可引导的 GRUB 引导环境,则转至过程x86: 在引导环境激活失败的情况下使用 GRUB 菜单和 DVD 或 CD 回退。
# 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.
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/cwtxdysz 格式提供的。
# /mnt/sbin/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/cwtxdysz 格式提供的。
# /mnt/sbin/luactivate Do you want to fallback to activate boot environment c0t4d0s0 (yes or no)? yes
# umount device_name
# init 6
上一个工作的引导环境成为活动的引导环境。