System Administration Guide

About This Book

The System Administration Guide covers a significant part of the SolarisTM system administration information. It includes both SPARCTM and x86 information and describes how to use the Solstice TMAdminSuite TMtools to perform some of the system administration tasks.

This book assumes that you have already installed the SunOS 5.6(TM) operating system and Solstice AdminSuite, and you have set up any networking software that you plan to use. The SunOS 5.x operating system is part of the Solaris 2.x product family, which also includes many utilities and OpenWindows(TM) Version 3.x. The SunOS 5.x operating system is compliant with AT&T's System V, Release 4 operating system.


Note -

The term "x86" refers to the Intel 8086 family of microprocessor chips, including the Pentium and Pentium Pro processors and compatible microprocessor chips made by AMD and Cynix. In this document the term "x86" refers to the overall platform architecture, whereas "Intel Platform Edition" appears in the product name.


The System Administration Guide has replaced the following books previously released with the Solaris operating environment:

Mail Administration is now covered in the Mail Administration Guide.

Who Should Use This Book

This book is intended for anyone responsible for administering one or more systems running the Solaris 2.x release. To use this book, you should have 1-2 years of UNIX ® system administration experience and preferably a Computer Science B.S. degree or equivalent knowledge.

How This Book Is Organized

This book is split into parts that each cover a major system administration topic. Each part contains chapters that provide both overview and task information.

Most of the overview information about a topic is usually described in the beginning chapters of each part, and the other chapters provide step-by-step instructions on system administration tasks that you need to perform. Each set of steps is usually followed by a way to verify that the task was successfully performed and an example of how to perform the task.

Using AnswerBook2TM to Read This Book

You can click on any cross reference, represented by underlined text, to quickly access referenced information in the AnswerBook2 collections. To return to the previous display, click on Back.

Ordering Sun Documents

The SunDocsTM program provides more than 250 manuals from Sun Microsystems, Inc. If you live in the United States, Canada, Europe, or Japan, you can purchase documentation sets or individual manuals using this program.

For a list of documents and how to order them, see the catalog section of the SunExpressSM Internet site at http://www.sun.com/sunexpress.

SPARC and x86 Information

This book provides system administration information for both SPARC and x86 systems. Unless otherwise noted, information throughout this book applies to both types of systems. Table P-1 summarizes the differences between the SPARC and x86 system administration tasks.

Table P-1 SPARC and x86 System Administration Differences

Category 

SPARC 

x86 

System operation before kernel is loaded 

  • A programmable read-only memory (PROM) chip with a monitor program runs diagnostics and displays device information.

  • It is also used to program default boot parameters and test the devices connected to the system.

  • The basic input/output system (BIOS) runs diagnostics and displays device information.

    A Solaris Device Configuration Assistant boot diskette with the Multiple Device Boot (MDB) program is used to boot from non-default boot partitions, the network, or CD-ROM.

Booting the system 

  • Commands and options at the PROM level are used to boot the system.

  • Commands and options at the MDB, primary, and secondary boot subsystems level are used to boot the system.

Boot programs 

  • bootblk, the primary boot program, loads ufsboot.

  • ufsboot, the secondary boot program loads the kernel.

  • mboot, the master boot record, loads pboot.

    pboot, the Solaris partition boot program, loads bootblk.

  • bootblk, the primary boot program, loads ufsboot.

    ufsboot, the secondary boot program, loads the kernel.

System shutdown 

  • The shutdown and init commands can be used without additional operation intervention.

  • The shutdown and init commands are used but require operator intervention at the type any key to continue prompt.

Disk controllers 

  • SCSI

  • SCSI and IDE

Disk slices and partitions 

  • A disk may have a maximum of eight slices, numbered 0-7.

  • The Solaris fdisk partition may contain up to ten slices, numbered 0-9, but only 0-7 can be used to store user data.

  • A disk may have a maximum of four fdisk partitions.

  • The Solaris fdisk partition may contain up to ten slices, numbered 0-9, but only 0-7 can be used to store user data.

Diskette drives 

  • Desktop systems usually contain one 3.5-inch diskette drive.

  • Systems may contain two diskette drives: a 3.5-inch and a 5.25 inch drive.

What Typographic Changes Mean

The following table describes the typographic changes used in this book.

Table P-2 Typographic Conventions

Typeface or Symbol 

Meaning 

Example 

AaBbCc123

The names of commands, files, and directories; on-screen computer output 

Edit your .login file.

Use ls -a to list all files.

machine_name% You have mail.

 

AaBbCc123

What you type, contrasted with on-screen computer output 

machine_name% su
Password:

AaBbCc123

Command-line placeholder: 

replace with a real name or value 

To delete a file, type rm filename.

AaBbCc123

Book titles, new words or terms, or words to be emphasized 

Read Chapter 6 in User's Guide. These are called class options.

You must be root to do this.

Shell Prompts in Command Examples

The following table shows the default system prompt and superuser (root) prompt for the Bourne shell and Korn shell.

Table P-3 Shell Prompts

Shell 

Prompt 

Bourne shell and Korn shell prompt 

$

Bourne shell and Korn shell superuser prompt 

#

General Conventions

Be aware of the following conventions used in this book.


# pmadm -a -p tcp -s lpd -i root -m `nlsadmin -o \
/var/spool/lp/fifos/listenBSD -A \
'\x000202038194180e0000000000000000'` -v `nlsadmin -V`

If the line is an example of what to type, ignore the backslashes (don't type them) and press Return at the end of the line that does not end with a backslash. In the example above, you would ignore the two backslashes when typing the pmadm command and press Return after the third line.