Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Basic Administration Oracle Solaris 10 8/11 Information Library |
1. Oracle Solaris Management Tools (Road Map)
2. Working With the Solaris Management Console (Tasks)
3. Working With the Oracle Java Web Console (Tasks)
4. Managing User Accounts and Groups (Overview)
5. Managing User Accounts and Groups (Tasks)
6. Managing Client-Server Support (Overview)
7. Managing Diskless Clients (Tasks)
8. Introduction to Shutting Down and Booting a System
9. Shutting Down and Booting a System (Overview)
10. Shutting Down a System (Tasks)
11. Modifying Oracle Solaris Boot Behavior (Tasks)
12. Booting an Oracle Solaris System (Tasks)
Booting a SPARC Based System (Task Map)
SPARC: How to Boot a System to Run Level 3 (Multiuser Level)
SPARC: How to Boot a System to Run Level S (Single-User Level)
Booting From a Specified ZFS Root File System on a SPARC Based System
SPARC: How to List Available Bootable Datasets Within a ZFS Root Pool
SPARC: How to Boot From a Specified ZFS Root File System
Booting a SPARC Based System in Failsafe Mode
How to Boot a SPARC Based System in Failsafe Mode
Booting a SPARC Based System From the Network
SPARC: How to Boot a System From the Network
Booting an x86 Based System by Using GRUB (Task Map)
x86: How to Boot a System to Run Level 3 (Multiuser)
x86: How to Boot a System to Run Level S (Single-User Level)
x86: How to Boot a System Interactively
x86: Booting From a Specified ZFS Root File System on an x86 Based System
x86: How to Display a List of the Available ZFS Boot Environments
x86: How to Boot From a Specified ZFS Root File System
Booting an x86 Based System in Failsafe Mode
How to Boot an x86 Based System in Failsafe Mode
x86: How to Boot in Failsafe Mode to Forcibly Update a Corrupt Boot Archive
Booting an x86 Based System From the Network
x86: How to Perform a GRUB Based Boot From the Network
Accelerating the Reboot Process on the SPARC Platform (Task Map)
Initiating a Fast Reboot of a SPARC Based System
How to Initiate a Fast Reboot of a SPARC Based System
Performing a Standard Reboot of a SPARC Based System
Managing the Boot Configuration Service
13. Managing the Oracle Solaris Boot Archives (Tasks)
14. Troubleshooting Booting an Oracle Solaris System (Tasks)
15. x86: GRUB Based Booting (Reference)
16. x86: Booting a System That Does Not Implement GRUB (Tasks)
17. Working With the Oracle Solaris Auto Registration regadm Command (Tasks)
18. Managing Services (Overview)
20. Managing Software (Overview)
21. Managing Software With Oracle Solaris System Administration Tools (Tasks)
22. Managing Software by Using Oracle Solaris Package Commands (Tasks)
If a system is turned off, turning it on starts the multiuser boot sequence. The following procedures show how to boot to different run levels from the ok PROM prompt. These procedures assume that the system has been cleanly shut down, unless stated otherwise.
Use the who -r command to verify that the system is brought to the specified run level. For a description of run levels, see Chapter 18, Managing Services (Overview).
Use this procedure to boot a system that is currently at run level 0 to run level 3.
ok boot
The automatic boot procedure displays a series of startup messages, and brings the system to run level 3. For more information, see the boot(1M) man page.
The login prompt is displayed when the boot process has finished successfully.
hostname console login:
Example 12-1 SPARC: Booting a System to Run Level 3 (Multiuser Level)
The following example displays the messages from booting a system to run level 3.
ok boot Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz) OpenBoot 3.15, 128 MB memory installed, Serial #number. Ethernet address number, Host ID: number. Rebooting with command: boot Boot device: /pci@1f,0/pci@1,1/ide@3/disk@0,0:a File and args: kernel/sparcv9/unix SunOS Release 5.10 Version s10_60 64-bit Copyright 1983-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. configuring IPv4 interfaces: hme0. add net default: gateway 172.20.27.248 Hostname: starlite The system is coming up. Please wait. NIS domain name is example.com starting rpc services: rpcbind keyserv ypbind done. Setting netmask of hme0 to 255.255.255.0 Setting default IPv4 interface for multicast: add net 224.0/4: gateway starlite syslog service starting.The system is ready. Starting Sun(TM) Web Console Version 2.1-dev.. volume management starting. The system is ready. starlite console login:
In the preceding example, sparcv9 was used as an example only. This string matches the output of the isainfo -k command.
Use this procedure to boot a system that is currently at run level 0 to run level S. This run level is used for system maintenance tasks, such as backing up a file system.
ok boot -s
SINGLE USER MODE Root password for system maintenance (control-d to bypass): xxxxxx
# who -r
Example 12-2 SPARC: Booting a System to Run Level S (Single-User Level)
The following example displays the messages from booting a system to run level S.
ok boot -s . . . Sun Microsystems Inc. SunOS 5.10 Version Generic_120012-14 32-bit Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. configuring IPv4 interfaces: hme0. Hostname: starlite SINGLE USER MODE Root password for system maintenance (control-d to bypass): xxxxxx single-user privilege assigned to /dev/console. Entering System Maintenance Mode Oct 14 15:01:28 su: 'su root' succeeded for root on /dev/console Sun Microsystems Inc. SunOS 5.10 # who -r . run-level S Sep 19 08:49 S 0 ? (Perform some maintenance task) # ^D
Use this boot option when you need to specify an alternate kernel or /etc/system file.
Before You Begin
To specify an alternate /etc/system file when booting a SPARC based system interactively by using the boot -a command, you must perform the following steps before the system is booted.
1. Make backup copies of the /etc/system and boot/solaris/filelist.ramdisk files.
# cp /etc/system /etc/system.bak # cp /boot/solaris/filelist.ramdisk /boot/solaris/filelist.ramdisk.orig
2. Add the etc/system.bak file name to the /boot/solaris/filelist.ramdisk file.
# echo "etc/system.bak" >> /boot/solaris/filelist.ramdisk
3. Update the boot archive.
# bootadm update-archive -v
ok boot -a
Press enter to use the default kernel file name. Otherwise, provide the name of an alternate kernel, press Enter.
Press enter to use the default module directories. Otherwise, provide the alternate paths to module directories, press Enter.
Type /dev/null if your /etc/system file has been damaged.
Press enter to select UFS for local disk booting, which is the default, or enter NFS for network booting.
Provide an alternate device name or press return to use the default.
Example 12-3 SPARC: Booting a System Interactively
In this example, the default choices (shown in square brackets []) are accepted. For instructions and an example of booting an alternate file system by using the boot -a command, see SPARC: How to Boot a System Interactively.
ok boot -a . . . Rebooting with command: boot -a Boot device: /pci@1f,0/pci@1,1/ide@3/disk@0,0:a File and args: -a Enter filename [kernel/sparcv9/unix]: Press Return Enter default directory for modules [/platform/SUNW,Ultra-5_10/kernel /platform/sun4u/kernel /kernel /usr/kernel]: Press Return Name of system file [etc/system]: Press Return SunOS Release 5.10 Version S10_60 64-bit Copyright (c) 1983-2004 by Sun Microsystems, Inc. All rights reserved Use is subject to license terms. root filesystem type [ufs]: Press Return Enter physical name of root device [/pci@1f,0/pci@1,1/ide@3/disk@0,0:a]: Press Return configuring IPv4 interfaces: hme0. Hostname: starlite The system is coming up. Please wait. checking ufs filesystems . . . The system is ready. starlite console login:
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# echo "kernel.name" >> /boot/solaris/filelist.ramdisk
# cat > /etc/boot/solaris/filelist.ramdisk
# bootadm update-archive
# init 0
The ok PROM prompt is displayed.
ok boot alternate-kernel
For example:
ok boot kernel.myname/sparcv9/unix
ok setenv boot-file kernel.name/sparc9/unix
ok printenv boot-file
ok boot
# prtconf -vp | grep whoami
Example 12-4 Booting an Alternate Kernel by Changing the Default Boot File
# cp -r /platform/sun4v/kernel /platform/sun4vu/kernel.caiobella # echo "kernel.caiobela" >> /boot/solaris/filelist.ramdisk # cat > /etc/boot/solaris/filelist.ramdisk /platform/sun4v/kernel.caiobella ^D (control D) ok setenv boot-file kernel.caiobells/sparcv9/unix ok printenv boot-file boot-file = kernel.caiobella/sparcv9/unix ok boot SC Alert: Host System has Reset SC Alert: Host system has shut down. Sun Fire T200, No KeyboardCopyright 2006 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.25.0.build_01***PROTOTYPE BUILD***, 32760 MB memory available, Serial #69060038. Ethernet address 0:x:4f:x:c5:c6, Host ID: 8xxc5c6. Rebooting with command: boot Boot device: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0,0:a File and args: kernel.caiobella/sparcv9/unix SunOS Release 5.10 Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. DEBUG enabled misc/forthdebug (176650 bytes) loaded Hostname: seasonz NIS domain name is lab.domain.sun.com Reading ZFS config: done. seasonz console login: Password: Last login: Mon Nov 12 18:02:00 on console Sun Microsystems Inc. SunOS 5.10 . . . You have new mail. # # # prtconf -vp | grep whoami whoami: '/platform/sun4v/kernel.caiobella/sparcv9/unix'