Skip Navigation Links | |
Exit Print View | |
Booting and Shutting Down Oracle Solaris 11.1 Systems Oracle Solaris 11.1 Information Library |
1. Booting and Shutting Down a System (Overview)
2. x86: Administering the GRand Unified Bootloader (Tasks)
3. Shutting Down a System (Tasks)
5. Booting a System From the Network (Tasks)
6. Troubleshooting Booting a System (Tasks)
Managing the Oracle Solaris Boot Archives
How to List Contents of the Boot Archive
Managing the boot-archive SMF Service
How to Enable or Disable the boot-archive SMF Service
How to Clear a Failed Automatic Boot Archive Update by Manually Updating the Boot Archive
Shutting Down and Booting a System for Recovery Purposes
SPARC: How to Stop a System for Recovery Purposes
x86: How to Stop and Reboot a System for Recovery Purposes
How to Boot to a Single-User State to Resolve a Bad root Shell or Password Problem
How to Boot From Media to Resolve an Unknown root Password
Forcing a Crash Dump and Reboot of the System
SPARC: How to Force a Crash Dump and Reboot of the System
x86: How to Force a Crash Dump and Reboot of the System
Booting a System With the Kernel Debugger (kmdb) Enabled
SPARC: How to Boot a System With the Kernel Debugger (kmdb) Enabled
x86: How to Boot a System With the Kernel Debugger (kmdb) Enabled
x86: Troubleshooting Issues With Fast Reboot
x86: Debugging Early Panics That Might Occur
x86: Conditions Under Which Fast Reboot Might Not Work
Troubleshooting Issues With Booting and the Service Management Facility
The following information is provided in this section:
For an overview of the Oracle Solaris boot archives, see Description of the Oracle Solaris Boot Archives.
In addition to administering the boot loader on x86 platforms, the bootadm command is also used to perform the following tasks to maintain both the SPARC and x86 Oracle Solaris boot archives:
List the files and directories that are included in a system's boot archive.
Manually update the boot archive.
The syntax of the command is as follows:
bootadm [subcommand] [-option] [-R altroot]
For more information about the bootadm command, see the bootadm(1M) man page.
# bootadm list-archive
Lists the files and directories that are included in the boot archive or archives.
The boot-archive service is controlled by SMF. The service instance is svc:/system/boot-archive:default. The svcadm command is used to enable and disable services.
If the boot-archive service is disabled, automatic recovery of the boot archive upon a system reboot might not occur. As a result, the boot archive could become unsynchronized or corrupted, which would prevent the system from booting.
To determine whether the boot-archive service is running, use the svcs command, as follows:
$ svcs boot-archive STATE STIME FMRI online 10:35:14 svc:/system/boot-archive:default
In this example, the output of the svcs command indicates that the boot-archive service is online.
For more information, see the svcadm(1M) and svcs(1) man pages.
For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
# svcadm enable | disable system/boot-archive
# svcs boot-archive
If the service is running, the output displays an online service state.
STATE STIME FMRI online 9:02:38 svc:/system/boot-archive:default
If the service is not running, the output indicates that the service is offline.
# bootadm update-archive
Note - To update the boot archive on an alternate root, type:
# bootadm update-archive -R /a
Specifies an alternate root path to apply to the update-archive subcommand.
Caution - The root file system of any non-global zone must not be referenced with the -R option. Doing so might damage the global zone's file system, compromise the security of the global zone, or damage the non-global zone's file system. See the zones(5) man page. |
# reboot
During the process of rebooting a system, if the system does not support the Fast Reboot feature, the automatic update of the boot archive could fail. This problem might result in the system's inability to reboot from the same boot environment.
In this case, a warning similar to the following is displayed, and the system enters system maintenance mode:
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.
The svc:/system/boot-config:default SMF service contains the auto-reboot-safe property, which is set to false by default. Setting the property to true communicates that both the system's firmware and the default GRUB menu entry are set to boot from the current boot device. The value of this property can be changed so that a failed automatic boot archive update can be cleared, as described in the following procedure.
# reboot
# svccfg -s svc:/system/boot-config:default setprop config/auto-reboot-safe = true
# svccfg -s svc:/system/boot-config:default listprop |grep config/auto-reboot-safe config/auto-reboot-safe boolean true