P. 1
Unix Sun Solaris Sysadmin Guide

Unix Sun Solaris Sysadmin Guide

|Views: 57|Likes:
Published by the_fr3shmak3r

More info:

Published by: the_fr3shmak3r on Aug 23, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/25/2012

pdf

text

original

1.Become root.

2.Shut down the system by using theinit command.

In this command,

Verification—Shutting Down a Standalone System

Use the following table to verify the system is at the run level specified in the
init command.

#initrun-level

run-level

Identifies the new run level.

If the System was Brought To ...

The SPARC System Prompt
Should Be ...

The x86 System Prompt
Should Be ...

run level S (single-user state)

#

#

run level 2 (multiuser state)

#

#

run level 0 (power-down state)

ok or >

type any key to

continue

run level 3 (multiuser state with remote
resource shared)

hostnameconsole login:

hostnameconsole login:

Shutting Down a System

143

7

Example—Bringing an x86 System to Run Level 0

In the following example, theinit command is used to bring an x86 system to
the level where it is safe to turn off power.

See“How to Turn Off Power to All Devices” on page145 if you are bringing
the system to run level 0 to turn off power to all devices.

#init 0
#
INIT: New run level: 0
The system is coming down. Please wait.
.
.
.
The system is down.
syncing file systems... [11] [10] [3] done
Type any key to continue

144

System Administration Guide, Volume INovember 1995

7

Example—Bringing a SPARC System to Run Level S

In the following example, theinit andboot commands are used to bring a
SPARC system to run level S (single-user state).

Where to Go From Here

Regardless of the reason for shutting down the system, you’ll probably want to
return to run level 3 where all file resources are available and users can log in.
SeeChapter8, “Booting a SPARC System,” orChapter9, “Booting an x86
System,” for instructions on bringing a system back to a multiuser state.

#init 0
#
INIT: New run level: 0
The system is coming down. Please wait.
.
.
.
syncing file systems... [7] [7] [5] done
Program terminated
okboot -s
Booting from: sd(0,0,0) -s
SunOS Release 5.5 Version generic [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1994, Sun Microsystems, Inc.
configuring network interfaces: le0.
Hostname: venus

INIT: SINGLE USER MODE

Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance):xxx
Entering System Maintenance Mode

#

Shutting Down a System

145

7

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->