System Administration Guide, Volume I

Chapter 5 Shutting Down and Booting a System (Overview)

This chapter provides guidelines for shutting down and booting a system. The Solaris software environment is designed to run continuously so that electronic mail and network resources are available to users. Occasionally, it is necessary to shut down or reboot a system because of a system configuration change, a scheduled maintenance event, or a power outage.

This is a list of overview information in this chapter.

What's New in Shutting Down and Booting a System?

This section describes new features related to shutting down and booting a system in the Solaris 7 release.

Bringing a System to Run Level S (Single-User Mode)

Bug ID 1154696 has been fixed in the Solaris 7 release. This means that you can cleanly bring your system down to run level S (or single-user mode) by using the shutdown -s or the init -s command. The inittab file and the rc scripts in the /etc/init.d directory and the /etc/rcn.d directories have been modified to ensure system run level transitions are made cleanly and efficiently.

Booting a System Running the 32-bit or 64-bit Solaris 7 Operating Environment

See "Troubleshooting 64-bit Solaris Boot Problems" for information on booting a system running the 32-bit or 64-bit Solaris 7 operating environment.

Where to Find Shutting Down and Booting Tasks

Use these references to find step-by-step instructions for shutting down and booting a system.

Terminology

This section describes the terminology used in shutting down and booting a system.

Guidelines for Shutting Down a System

Keep the following in mind when shutting down a system:

Guidelines for Booting a System

Keep the following in mind when booting a system:

Performing a Reconfiguration Boot

Perform a reconfiguration boot when adding new hardware to the system or configuring support for pseudo devices, such as increasing the number of pseudo devices (ptys). Table 5-1 to determine which reconfiguration procedure to use.

Table 5-1 Reconfiguration Procedures

If You Are Reconfiguring the System To ... 

See ... 

Add a secondary disk 

Chapter 23, SPARC: Adding a Disk (Tasks) or Chapter 24, x86: Adding a Disk (Tasks)

Add some other peripheral device 

"How to Add a Peripheral Device"

Change the number of pseudo devices 

"Examining and Changing System Information (Tasks)" in System Administration Guide, Volume II

When to Shut Down a System

Table 5-2 provides a list of system administration tasks and the type of shut down needed to initiate the task.

Table 5-2 Shutting Down a System

If You Are ...  

Change to This Run Level ... 

See ... 

Turning off system power due to anticipated power outage 

Run level 0, where it is safe to turn off power 

Chapter 7, Shutting Down a System (Tasks)

Changing kernel parameters in the /etc/system file

Run level 6 (reboot the system) 

Chapter 7, Shutting Down a System (Tasks)

Performing file system maintenance, such as backing up or restoring system data 

Run level S (single-user mode) 

Chapter 7, Shutting Down a System (Tasks)

Repairing a system configuration file such as /etc/system

See "When to Boot a System"

N/A 

Changing pseudo device parameters in the /etc/system file

Reconfiguration boot 

"Tuning Kernel Parameters (Tasks)" in System Administration Guide, Volume II

Adding or removing hardware from the system 

Reconfiguration boot (plus turning off power when adding or removing hardware) 

"SPARC: How to Connect a Secondary Disk and Boot"

Repairing an important system file which is causing system boot failure 

See "When to Boot a System"

N/A 

Booting the kernel debugger (kadb) to track down a system problem

Run level 0, if possible 

Chapter 7, Shutting Down a System (Tasks)

Recovering from a hung system and you want to force a crash dump 

See "When to Boot a System"

N/A 

See Chapter 7, Shutting Down a System (Tasks) for examples of shutting down a server or standalone system.

When to Boot a System

Table 5-3 provides a list of system administration tasks and the corresponding boot type used to complete the task.

Table 5-3 Booting a System

If You Are Rebooting the System After ...  

Use This Boot Type ... 

See SPARC Procedure ... 

See x86 Procedure ... 

Turning off system power due to anticipated power outage 

Turn system power back on 

Chapter 7, Shutting Down a System (Tasks)

Chapter 7, Shutting Down a System (Tasks)

Changing kernel parameters in the /etc/system file

Reboot the system to run level 3 (multiuser mode with NFS resources shared) 

"SPARC: How to Boot a System to Run Level 3 (Multiuser State)"

"x86: How to Boot a System to Run Level 3 (Multiuser State)"

Performing file system maintenance, such as performing a backup or restoring system data 

Use Control-d from run level S to bring the system back to run level 3 

"SPARC: How to Boot a System to Run Level S (Single-User State)"

"x86: How to Boot a System to Run Level S (Single-User State)"

Repairing a system configuration file such as /etc/system

Interactive boot 

"SPARC: How to Boot a System Interactively"

"x86: How to Boot a System Interactively"

Changing pseudo device parameters in the /etc/system file

Reconfiguration boot 

"Tuning Kernel Parameters (Tasks)" in System Administration Guide, Volume II

"Tuning Kernel Parameters (Tasks)" in System Administration Guide, Volume II

Adding or removing hardware from the system 

Reconfiguration boot (plus turning on system power after adding or removing hardware) 

"SPARC: How to Connect a Secondary Disk and Boot"

Chapter 24, x86: Adding a Disk (Tasks)

Booting the kernel debugger (kadb) to track down a system problem

Booting kabd

"SPARC: How to Boot the System Using the Kernel Debugger (kadb)"

"x86: How to Force a Crash Dump and Reboot the System"

Repairing an important system file which is causing system boot failure 

Recovery boot 

"x86: How to Boot a System for Recovery Purposes"

"x86: How to Boot a System for Recovery Purposes"

Recovering from a hung system and you want to force a crash dump 

Recovery boot 

See example on "x86: How to Force a Crash Dump and Reboot the System"

See example on "x86: How to Force a Crash Dump and Reboot the System"

See Chapter 8, Booting a SPARC System (Tasks) or Chapter 9, x86: Booting a System (Tasks) for examples of booting a system.