引导和关闭 Oracle® Solaris 11.2 系统

退出打印视图

更新时间: 2014 年 7 月
 
 

x86: 如何在不支持快速重新引导的系统上清除失败的自动引导归档文件更新

在重新引导系统的过程中,如果系统不支持快速重新引导功能,则引导归档文件的自动更新将失败。此问题可能导致系统无法从相同的引导环境重新引导。

在这种情况下,将显示类似下面的警告,并且系统进入系统维护模式:

WARNING: Reboot required.
The system has updated the cache of files (boot archive) that is used
during the early boot sequence. To avoid booting and running the system
with the previously out-of-sync version of these files, reboot the
system from the same device that was previously booted.

svc:/system/boot-config:default SMF 服务包含 auto-reboot-safe 属性,该属性缺省设置为 false。将该属性设置为 true 将指明系统的固件以及缺省 GRUB 菜单项均设置为从当前引导设备引导。可更改该属性的值,从而可以清除失败的自动引导归档文件更新,如以下过程中所述。

  1. 承担 root 角色。

    请参见在 Oracle Solaris 11.2 中确保用户和进程的安全 中的使用所指定的管理权限

  2. 重新引导系统。
    # reboot
  3. 如果活动的 BIOS 或 UEFI 引导设备和 GRUB 菜单项指向当前引导实例,请执行以下步骤以防止出现引导归档文件更新故障:
    1. svc:/system/boot-config SMF 服务的 auto-reboot-safe 属性设置为 true,如下所示:
      # svccfg -s svc:/system/boot-config:default setprop config/auto-reboot-safe = true
    2. 验证 auto-reboot-safe 属性是否设置正确。
      # svccfg -s svc:/system/boot-config:default listprop |grep config/auto-reboot-safe
      config/auto-reboot-safe            boolean  true