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
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 procedures are provided in this section:
In the following instances, you must first shut down a system to analyze or troubleshoot booting and other system problems.
Troubleshoot error messages when the system boots.
Stop the system to attempt recovery.
Boot a system for recovery purposes.
Force a crash dump and reboot of the system.
Boot the system with the kernel debugger.
You might need to boot the system for recovery purposes.
The following are some of the more common error and recovery scenarios:
Boot a system to a single-user state to resolve a minor problem, such as correcting the root shell entry in the /etc/passwd file or changing a NIS server.
Boot from the installation media or from an install server on the network to recover from a problem that is preventing the system from booting or to recover from a lost root password. This method requires you to mount the boot environment after importing the root pool.
x86 only: Resolve a boot configuration problem by importing the root pool. If a problem with the file exists, you do not have to mount the boot environment, just import the root pool, which automatically mounts the rpool file system that contains the boot-related components.
ok sync
For more information, see the boot(1M) man page.
# who -r . run-level s May 2 07:39 3 0 S
Example 6-1 Powering Off a Server
If you are running Oracle Solaris 11 on a host system (server), after shutting down the system, you must switch from the system console prompt to the service processor prompt. From there, you can stop the service processor, as shown in this example:
# shutdown -g0 -i0 -y # svc.startd: The system is coming down. Please wait. svc.startd: 91 system services are now being stopped. Jun 12 19:46:57 wgs41-58 syslogd: going down on signal 15 svc.stard: The system is down. syncing file systems...done Program terminated r)eboot o)k prompt, h)alt? # o
ok #. ->
-> stop /SYS Are you sure you want to stop /SYS (y/n)? y Stopping /SYS ->
If you need to perform an immediate shutdown, use the stop -force -script /SYS command. Before you type this command, ensure that all data is saved.
Example 6-2 Powering On a Server
The following example shows how to power on the server. You must first be logged in to Oracle ILOM. See http://download.oracle.com/docs/cd/E19166-01/E20792/z40002fe1296006.html#scrolltoc.
If you have a modular system, make sure that you are logged into the desired server module.
-> start /SYS Are you sure you want to start /SYS (y/n) ? y Starting /SYS ->
If you do not want to be prompted for a confirmation, use the start -script /SYS command.
# init 0
# init 0
ok boot -s
# reboot -p
# vi /etc/password
Use the following procedure if you need to boot the system to correct an unknown root password or similar problem. This procedure requires you to mount the boot environment after importing the root pool. If you need to recover a root pool or root pool snapshot, see How to Replace a Disk in a ZFS Root Pool (SPARC or x86/VTOC) in Oracle Solaris 11.1 Administration: ZFS File Systems.
ok boot net:dhcp
zpool import -f rpool
# mkdir /a
# beadm mount solaris-instance|be-name /a
For example:
# beadm mount solaris-2 /a
# TERM=vt100 # export TERM
# cd /a/etc # vi shadow # cd /
# bootadm update-archive -R /a
# beadm umount be-name
# halt
root@system:~# passwd -r files root New Password: xxxxxx Re-enter new Password: xxxxxx passwd: password successfully changed for root
See Also
If there is a problem with the GRUB configuration that requires you to boot the system from media, follow the same steps for x86 platforms that are in this procedure> However, you
If your x86 based system will not boot, the problem might be caused by a damaged boot loader or a missing or corrupt GRUB menu. Use the following procedure in these types of situations.
Note - This procedure does not require you to mount the boot environment.
If you need to recover a root pool or root pool snapshot, see How to Replace a Disk in a ZFS Root Pool (SPARC or x86/VTOC) in Oracle Solaris 11.1 Administration: ZFS File Systems.
# zpool import -f rpool
exit 1 Install Oracle Solaris 2 Install Additional Drivers 3 Shell 4 Terminal type (currently sun-color) 5 Reboot Please enter a number [1]: 5