SM101 - Solaris 2.x Essentials For System Maintainers - LG - 1193
SM101 - Solaris 2.x Essentials For System Maintainers - LG - 1193
Learning Guide
SM-101
Revision B, November 1993
1993 Sun Microsystems, Inc.—Printed in the United States of America.
2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A.
All rights reserved. This product and related documentation are protected by copyright and distributed
under licenses restricting its use, copying, distribution, and decompilation. No part of this product or related
documentation may be reproduced in any form by any means without prior written authorization of Sun and
its licensors, if any.
Portions of this product may be derived from the UNIX® and Berkeley 4.3 BSD systems, licensed from UNIX
System Laboratories, Inc. and the University of California, respectively. Third-party font software in this
product is protected by copyright and licensed from Sun’s Font Suppliers.
Use, duplication, or disclosure by the United States Government is subject to the restrictions set forth in
DFARS 252.227-7013 (c)(1)(ii) and FAR 52.227-19.
The product described in this manual may be protected by one or more U.S. patents, foreign patents, or
pending applications.
TRADEMARKS
Sun, Sun Microsystems, the Sun logo, SunService, SunOS, Solaris, SPARC, SPARCstation, Sun Workstation,
NFS, OpenWindows, Ethernet, Sun-4, IPC, SLC, IPX, and SunInstall are trademarks or registered trademarks
of Sun Microsystems, Inc. UNIX and OPEN LOOK are registered trademarks of UNIX System Laboratories,
Inc. AT&T is a trademark of AT&T. Intel is a registered trademark of Intel Corporation. Lance is a trademark
of Micro Technology, Inc. Prestoserve is a trademark of Legato Systems, Inc. Xylogics is a registered
trademark of Xylogics, Inc. Amdahl (AMD) is a registered trademark of Amdahl Corporation. All other
product names mentioned herein are the trademarks of their respective owners.
All SPARC trademarks, including the SCD Compliant Logo, are trademarks or registered trademarks of
SPARC International, Inc. SPARCstation, SPARCserver, SPARCengine, SPARCworks, and SPARCompiler are
licensed exclusively to Sun Microsystems, Inc. Products bearing SPARC trademarks are based upon an
architecture developed by Sun Microsystems, Inc.
The OPEN LOOK® and Sun™ Graphical User Interfaces were developed by Sun Microsystems, Inc. for its
users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the
concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license
from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement
OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements.
Introduction1-1
Maintenance Learning Path Overview 1-2
SM-100 Course Description 1-4
SM-101 Course Description 1-6
SM-210 Course Description 1-8
SM-225 Course Description 1-12
SM-230 Course Description 1-14
Expanded Maintenance Path 1-16
Sun Product Line2-1
RISC and SPARC 2-2
System Bus Definitions 2-4
Desktop Systems Enclosure 2-6
Deskside and Datacenter System Enclosures 2-8
Tabletop and Dataserver System Enclosures 2-10
SCSI Peripheral Overview 2-12
SCSI Desktop Peripheral Packaging 2-14
ESMD and IPI Disk Drives 2-16
SCSI Device Interconnection 2-18
Deskside and Datacenter/Server Expansion 2-20
Monitors, Keyboards, and the Mouse (FRUs) 2-22
External System Connections 2-24
Lab—Sun Product Line 2-26
Introduction to Solaris3-1
What Is a Workstation? 3-2
Operating System Overview 3-4
Kernel Overview 3-6
Shell Overview 3-8
File System Overview 3-10
Solaris Client-Server Environment 3-12
Characteristics of the UNIX Operating System 3-14
Hosts and Users 3-16
Standalone and File-Server Systems 3-18
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Client Types ..................................................................................... 3-20
Network Definitions ....................................................................... 3-22
Lab—Solaris Introduction.............................................................. 3-24
System Boot Sequence .............................................................................. 4-1
System Boot Sequence Overview ................................................... 4-2
Boot PROM Functions ...................................................................... 4-4
Boot PROM Resources...................................................................... 4-6
Boot PROM User Interface............................................................... 4-8
Resetting the System....................................................................... 4-10
Power-On Self-Test Overview ...................................................... 4-12
The Keyboard Banner..................................................................... 4-14
Booting the System ......................................................................... 4-16
Aborting the Boot Sequence .......................................................... 4-18
Loading the Boot Program and the Kernel ................................. 4-20
Kernel Device Probing ................................................................... 4-22
RC Script File Startup ..................................................................... 4-24
Logging In and Logging Out......................................................... 4-26
System Prompts............................................................................... 4-28
Stopping the Processor................................................................... 4-30
Lab—Initial System Preparation................................................... 4-32
Lab—System Reset and Banner .................................................... 4-33
Lab—Default Boot and Boot Messages........................................ 4-35
Lab—Logging In ............................................................................. 4-38
Lab—Logging Out and Halting .................................................... 4-39
Lab—Setting Passwords ................................................................ 4-41
File System Hierarchy ............................................................................... 5-1
File System Directories and Subdirectories................................... 5-2
Solaris Software Hierarchical File System Structure ................... 5-4
Important Solaris Software Subdirectories ................................... 5-6
Lab—File System Hierarchy............................................................ 5-8
Directory Commands ................................................................................ 6-1
File Naming Conventions ................................................................ 6-2
Solaris Command Line Format ....................................................... 6-4
Displaying Manual Pages ................................................................ 6-6
Changing and Displaying Directories (cd and pwd) .................... 6-8
Changing to the Parent Directory................................................. 6-10
Absolute Path Names ..................................................................... 6-12
Relative Path Names....................................................................... 6-14
Listing Directories (ls)................................................................... 6-16
Creating Directories (mkdir) ......................................................... 6-18
Other Ways to Use the mkdir Command.................................... 6-20
Removing Directories (rmdir) ...................................................... 6-22
Lab—Directory Commands .......................................................... 6-24
File Commands........................................................................................... 7-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
What Is a File?.................................................................................... 7-2
Displaying Detailed Information About Files .............................. 7-4
Displaying Files by Type ................................................................. 7-6
Identifying File Types With the file Command......................... 7-8
Displaying Files With the more Command................................. 7-10
Keyboard Interrupts ....................................................................... 7-12
Lab—File Commands..................................................................... 7-14
Package Commands................................................................................... 8-1
Displaying Package Information Using pkginfo ........................ 8-2
Displaying Installed Packages Using pkginfo -1...................... 8-4
Displaying Available CD-ROM Packages Using pkginfo -1 .. 8-6
Adding a Software Package Using pkgadd................................... 8-8
Lab—Package Commands............................................................. 8-10
The OpenWindows Environment........................................................... 9-1
Starting the OpenWindows Environment..................................... 9-2
Using the Mouse ............................................................................... 9-4
Window Control ............................................................................... 9-6
File Manager ...................................................................................... 9-8
Console Window............................................................................. 9-10
Workspace Menu ............................................................................ 9-12
Command Tool................................................................................ 9-14
Repositioning a Command Tool ................................................... 9-16
Exiting the OpenWindows Environment .................................... 9-18
Lab—OpenWindows...................................................................... 9-20
Disk Drive Partitioning .......................................................................... 10-1
Logical Disk Device Names........................................................... 10-2
Disk Partitioning ............................................................................. 10-4
How Partitions Are Described ...................................................... 10-6
VTOC—What Is It? ........................................................................ 10-8
Displaying a Disk’s VTOC........................................................... 10-10
Partitioning Disks With the format Utility .............................. 10-12
The Partition Menu ....................................................................... 10-14
The partition> modify Submenu .......................................... 10-16
Understanding a Partition Table ................................................ 10-18
How to Repartition a Disk ........................................................... 10-20
Changing Partition Sizes.............................................................. 10-22
Checking Your Work and Saving the New Table .................... 10-24
Reading the Label From the Drive ............................................. 10-26
Lab—Disk Partitioning and Labeling ........................................ 10-28
Lab—Starting Up the format Utility Program......................... 10-30
Lab—Selecting the Partition Menu............................................. 10-31
Lab—Partitioning Your Disk....................................................... 10-32
Lab—Display the New VTOC With the prtvtoc Command 10-36
File System Initialization ....................................................................... 11-1
Contents iii
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Disk Partitioning ............................................................................. 11-2
What Is a File System?.................................................................... 11-4
What Makes a Partition Into a File System ................................. 11-6
Creating a New File System .......................................................... 11-8
Mounting a File System................................................................ 11-10
/usr/etc/mount........................................................................... 11-12
Background Structures................................................................. 11-14
VTOC and Boot Blocks................................................................. 11-16
Displaying a Disk’s VTOC........................................................... 11-18
Superblock and Cylinder Group Block...................................... 11-20
SunOS Operating System Data Blocks....................................... 11-22
Data Blocks and Fragments ......................................................... 11-24
File inodes..................................................................................... 11-26
inode Table.................................................................................... 11-28
fsck Inconsistency Problems ...................................................... 11-30
fsck Usage..................................................................................... 11-32
Lab—File System Initialization ................................................... 11-34
Lab—Finding Your Practice Disk ................................................ 11-36
Lab—Partitioning Your New Disk ............................................. 11-37
Lab—Initializing the Partitions on Your New Disk................. 11-38
Lab—File System Cleanup........................................................... 11-41
Lab—Data Blocks, Disk Blocks, and Fragments....................... 11-42
Lab—Displaying the Disk Label with prtvtoc ....................... 11-43
Lab—fsck, the Superblock, and inodes................................... 11-45
vfstab and vi......................................................................................... 12-1
How File Systems Are Mounted at Boot Time ........................... 12-2
Boot Messages ................................................................................. 12-4
The vi Text Editor........................................................................... 12-6
Editing and Writing Files............................................................... 12-8
Modes of Operation and Cursor Movement............................. 12-10
Entering Text ................................................................................. 12-12
Exiting Input Mode....................................................................... 12-14
Deleting Text.................................................................................. 12-16
Undoing a Change ........................................................................ 12-18
Exiting vi ....................................................................................... 12-20
Saving Text..................................................................................... 12-22
Removing Files .............................................................................. 12-24
Lab—vfstab and vi .................................................................... 12-26
Lab—Finding Your Practice Disk ............................................... 12-27
Lab—Partitioning Your Practice Disk into Three Partitions .. 12-28
Lab—Using newfs to Initialize the File Systems...................... 12-29
Lab—Editing the vfstab File With vi ...................................... 12-30
Lab—Testing the vfstab Entries................................................ 12-32
Lab—Finishing Up........................................................................ 12-34
Lab—Creating a New File With vi (Optional)......................... 12-35
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Kernel Configuration .............................................................................. 13-1
Kernel Connections......................................................................... 13-2
Autoconfiguration Process ............................................................ 13-4
The /kernel Directory................................................................... 13-6
Reconfiguring Devices ................................................................... 13-8
Displaying System Configuration With dmesg ........................ 13-10
Displaying System Configuration With prtconfig................ 13-12
Lab—Kernel Configuration ......................................................... 13-14
Lab—Using dmesg to Verify the Kernel .................................... 13-15
Lab—Using prtconf to Verify the Kernel ................................ 13-18
Lab—Un-configuring Devices..................................................... 13-20
Lab—Reconfiguring Devices....................................................... 13-21
Device Nodes ............................................................................................ 14-1
System Boot Sequence Overview ................................................. 14-2
POST, Banner, and Boot Device Selection ................................... 14-4
Loading the Boot Block and /ufsboot Program ....................... 14-6
/kernel/unix Loading and Kernel Device Probing ................ 14-8
Starting Up the Run Control (rc) Script File............................. 14-10
Device Nodes and Kernel Connections ..................................... 14-12
Identifying Devices Names ......................................................... 14-14
Logical Disk Device Names......................................................... 14-16
Device Information Tree .............................................................. 14-18
Physical Device Names ................................................................ 14-20
Instance Device Names ................................................................ 14-22
Displaying System Configuration—prtconf........................... 14-24
Putting It All Together ................................................................. 14-26
Device Nodes—System Names................................................... 14-28
Lab—Device Nodes ...................................................................... 14-30
Lab—Using dmesg to Identify Your Tape Drive ...................... 14-31
Lab—Verifying Your Tape Drive With the mt Command...... 14-32
Lab—Device Links........................................................................ 14-33
Lab—Physical Device Names ..................................................... 14-35
Run Control (rc) Scripts ......................................................................... 15-1
System Startup................................................................................. 15-2
Starting Up the rc Script File ........................................................ 15-4
System Boot Procedure .................................................................. 15-6
System Operation Levels ............................................................... 15-8
The Run Control Scripts............................................................... 15-10
Run Control Script File Locations............................................... 15-12
Run Control Script Summary...................................................... 15-14
Single-User Versus Multiuser ..................................................... 15-16
Booting Single-User ...................................................................... 15-18
Single-User Bootup Flow ............................................................. 15-20
Changing from Single-User to Multiuser .................................. 15-22
Changing from Multiuser to Single-User .................................. 15-24
Contents v
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Stopping the Processor................................................................. 15-26
Aborting the Processor................................................................. 15-28
Lab—Software Boot ...................................................................... 15-30
Lab—Using halt and reboot..................................................... 15-31
Lab—Changing Run Levels......................................................... 15-33
Lab—System Aborts ..................................................................... 15-36
Network Terminology ............................................................................ 16-1
Network Terminology and Concepts .......................................... 16-2
What Is the Ethernet? ..................................................................... 16-4
Ethernet Interface............................................................................ 16-6
Network Hardware ........................................................................ 16-8
Standard Ethernet Connection.................................................... 16-10
Thinnet............................................................................................ 16-12
Ethernet Address .......................................................................... 16-14
ISDN................................................................................................ 16-16
The FDDI Standard....................................................................... 16-18
Internet Address and the /etc/hosts File............................... 16-20
The Loopback Address ................................................................ 16-22
The /etc/hostname.xx0 File ..................................................... 16-24
Lab—Network Terminology ....................................................... 16-26
Basic Network Troubleshooting ........................................................... 17-1
The ifconfig Command .............................................................. 17-2
Basic Network Commands—rup ................................................. 17-4
Basic Network Commands—ping ............................................... 17-6
Basic Network Commands—ping -s......................................... 17-8
Troubleshooting ............................................................................ 17-10
Troubleshooting—Error Messages............................................. 17-12
Lab—Basic Network Troubleshooting....................................... 17-16
Lab—Using the ifconfig Command ....................................... 17-18
Lab—Using the rup Command .................................................. 17-19
Sun NFS Service....................................................................................... 18-1
Characteristics of the NFS System................................................ 18-2
Types of Clients............................................................................... 18-4
NFS Background ............................................................................. 18-6
How Does the NFS System Work? ............................................... 18-8
NFS Background for a Client ...................................................... 18-10
NFS Background for a Server...................................................... 18-12
The /etc/hosts File .................................................................... 18-14
NFS Client/Server Interaction .................................................... 18-16
NFS Server Files—dfstab and sharetab............................... 18-18
Export Options .............................................................................. 18-20
The share Command ................................................................... 18-22
The /usr/sbin/dfshares Command ...................................... 18-24
The /usr/sbin/mount Command............................................ 18-26
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
The /usr/sbin/umount Command........................................... 18-28
NFS Client Files—/etc/vfstab................................................. 18-30
NFS Client Files—/etc/vfstab and /etc/mnttab................ 18-32
NFS Client Mounts at Boot—/etc/vfstab.............................. 18-34
Lab—NFS Service ......................................................................... 18-36
Lab—NFS Background................................................................. 18-37
Lab—Partner Exercise .................................................................. 18-38
Lab—Informational Commands................................................. 18-40
Lab—Mounting and Exporting................................................... 18-41
SunInstall .................................................................................................. 19-1
Software Packages and Clusters ................................................... 19-2
Software Configuration Clusters .................................................. 19-4
Software Terminology Summary ................................................. 19-6
Disk Partition and Software Requirements................................. 19-8
Installation Process ....................................................................... 19-10
Booting the Release Media........................................................... 19-12
Defining the Terminal Type ........................................................ 19-14
Specifying the Host Name ........................................................... 19-15
Configuring the Network ............................................................ 19-16
Identifying the Internet Address ................................................ 19-17
Confirming the Network Configuration ................................... 19-18
Identifying the Name Service...................................................... 19-19
Configuring Sub-networks .......................................................... 19-20
Confirming Network Information.............................................. 19-21
Identifying the Geographic Region ............................................ 19-22
Selecting the Time Zone............................................................... 19-23
Confirming the Date and Time ................................................... 19-24
Confirming Time Zone and Current Date and Time............... 19-25
Selecting a Custom Installation................................................... 19-26
Custom Installation, System Type.............................................. 19-27
System Type Submenu................................................................. 19-28
Custom Installation, Software Selection .................................... 19-29
Software Selection Sub-menu...................................................... 19-30
Editing the End User System Support Configuration ............. 19-31
End User System Support Disk Space Requirements.............. 19-33
Custom Installation, Disks/File Systems .................................. 19-34
Selecting Available Disks............................................................. 19-35
Setting Disk Editing Properties................................................... 19-36
Configuring File Systems Menu ................................................. 19-37
File System Space Requirements ................................................ 19-38
Displaying Default Partition Sizes ............................................. 19-39
Completed Disk Configuration................................................... 19-40
Exiting the File System Menu...................................................... 19-41
Starting the Installation ................................................................ 19-42
During the Installation ................................................................. 19-43
Contents vii
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Applying root Password ............................................................ 19-44
Summary ........................................................................................ 19-45
Lab - SunInstall Custom Installation.......................................... 19-46
Lab - Configuration Sheet ............................................................ 19-48
Appendix-SunInstall Quick Install....................................................... A-1
Introduction ...................................................................................... A-2
Installation Information .................................................................. A-3
Quick Installation Information....................................................... A-4
Installation Information Worksheet .............................................. A-5
Preparing the System....................................................................... A-6
Quick Installation............................................................................. A-7
Name Form ....................................................................................... A-8
Network Form .................................................................................. A-9
IP Address Form ............................................................................ A-10
Verification Form ........................................................................... A-11
Name Service Selection Form....................................................... A-12
Subnetworks Form......................................................................... A-13
Verification Form ........................................................................... A-14
Geographic Region Form.............................................................. A-15
Time Zone Form............................................................................. A-16
Current Date and Time Form....................................................... A-17
Verification Form ........................................................................... A-18
SunInstall Main Menu ................................................................... A-19
Software Configurations Menu.................................................... A-20
Disk Selection Menu ...................................................................... A-21
Software Configuration Form ...................................................... A-22
Quick Install Configuration Screen ............................................. A-23
Root Password Form ..................................................................... A-24
Summary ......................................................................................... A-25
Exercise ............................................................................................ A-26
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Introduction 1
Objectives
1-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Notes
■ The two Essentials for System Maintainers courses are the building
blocks required to progress to the other hardware courses in this
series.
✓ The SunOS™ 4.x Essentials for System Maintainers course covers the aspects of SunOS
4.x software (Berkeley Software Distribution [BSD] UNIX®) and hardware that is used
during the Desktop and Uniprocessor Deskside/Datacenter courses. Without the SunOS
4.x Essentials course, the student can fall behind in these subsequent courses.
✓ The Solaris® Essentials for System Maintainers course covers the aspects of Solaris
software (SunOS system software, based on System V Revision 4.0, UNIX) and hardware
that is used during the Desktop, Uniprocessor and Multiprocessor Deskside/Datacenter
courses. Without one of the Solaris Essentials courses, the student can fall behind in
these subsequent courses.
Introduction 1-3
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Prerequisites
Before taking the SM-100 SunOS 4.x Essentials for System Maintainers
course, you should have prior experience in the service and repair of
digital computers and their peripherals, and you should have
experience with various computer operating systems. You should also
be familiar with basic computer concepts, such as bus structure,
memory (RAM, ROM, EPROM), virtual memory, LAN, disk drive, and
monitor.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Overview
This entry-level course is designed for the hardware maintenance
individual who has computer maintenance experience but no Sun
hardware or UNIX operating system experience. It teaches the
essential SunOS 4.x operating system knowledge and skills required to
successfully progress through the hardware maintenance curriculum,
and stresses lab exercises. Emphasis is on practical application of the
SunOS and UNIX environments in the hardware environment.
Objectives
■ Describe the major functions of the POST.
■ Describe the boot PROM and its functions.
■ Describe the general features and characteristics of Sun SPARC
systems.
■ Differentiate the general characteristics of each SPARC system
category and its peripherals.
■ Describe the SunOS file structure and navigate the file system.
■ Start up and shut down a Sun Workstation in the correct
sequence.
■ Install the SunOS operating system on a standalone system.
■ Execute essential SunOS commands and interpret the results.
■ Create a generic kernel for a Sun SPARC system.
■ Describe the NFS distributed file system and NIS network
software.
■ Trace the boot up process including firmware, software, and
hardware used.
■ Execute the format utility to determine the disk partition
offsets and sizes.
■ Execute and use selected elements of the OpenWindows
environment.
■ Use the vi text editor to create and modify selected UNIX files.
Introduction 1-5
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Prerequisites
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Overview
This entry-level course is designed for the hardware maintenance
individual who has computer maintenance experience but no Sun
hardware or Solaris® software computing environment experience.
The course teaches the essential Solaris knowledge and skills required
to successfully progress through the hardware maintenance
curriculum, and stresses lab exercises. Emphasis is on practical
application of the Solaris computing environment in the hardware
environment.
Objectives
Upon completion of this course, you should be able to:
Introduction 1-7
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Prerequisites
Before taking the SM-210 SPARC Desktop Systems Maintenance course,
you must have taken either or both of the SM-100 or SM-101 courses.
You should have prior experience in the service and repair of digital
computers and their peripherals, and you should have experience with
various computer operating systems. You should also be familiar with
basic computer concepts, such as bus structure, memory (RAM, ROM,
EPROM), virtual memory, LAN, disk drive, and monitor.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Overview
In the SPARC Desktop Systems Maintenance course, you will learn to
install, configure, diagnose, and verify proper operation of SPARC
desktop workstations and associated peripherals. The boot process,
PROM-based diagnostics, and error conditions are also covered in this
course. Lab exercises are heavily emphasized.
Objectives
Upon completion of this course, you should be able to:
Introduction 1-9
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Introduction 1-11
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Prerequisites
Before taking the SM-225 SPARC Uniprocessor Deskside/Datacenter
Maintenance course, you must have taken either or both of the SM-100
or SM-101 courses. You should have prior experience in the service
and repair of digital computers and their peripherals, and you should
have experience with various computer operating systems. You should
also be familiar with basic computer concepts, such as bus structure,
memory (RAM, ROM, EPROM), virtual memory, LAN, disk drive, and
monitor.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Overview
In the Uniprocessor Deskside/Datacenter Maintenance course, you will
learn to install, configure, diagnose, and verify proper operation of
SPARC uniprocessor deskside, datacenter, and associated peripherals.
The boot process, PROM-based diagnostics, and error conditions are
also covered in this course. Lab exercises are heavily emphasized.
Objectives
Upon completion of this course, you should be able to:
Introduction 1-13
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Prerequisites
Before taking the SM-230 SPARC Multiprocessor Deskside/Datacenter
Maintenance course, you must have taken the SM-101 course. You
should have prior experience in the service and repair of digital
computers and their peripherals, and you should have experience with
various computer operating systems. You should also be familiar with
basic computer concepts, such as bus structure, memory (RAM, ROM,
EPROM), virtual memory, LAN, disk drive, and monitor.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Overview
In the SPARC Multiprocessor Deskside/Datacenter Maintenance course,
you will learn to install, configure, diagnose, and verify proper
operation of SPARC multiprocessor deskside, datacenter, and
associated peripherals. The boot process, PROM-based diagnostics,
and error conditions are covered. Lab exercises are heavily
emphasized.
Objectives
Upon completion of this course, you should be able to:
Introduction 1-15
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Expanded
maintenance
path
Sun Systems
New Products Self-paced
Fault Analysis
Maintenance Maintenance
Workshop
SM-310 Video Courses
ST-350
System Administration
Curriculum and
Video Courses
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11 1
Before you can take any of the expanded maintenance path courses,
you must have completed the prerequisite courses listed below.
✓ The courses in the expanded path section can be taken in any order.
✓ Each of the video courses includes a workbook and is independent of other video
courses. A video course may cover a product found in the New Products course; typically,
videos cover new systems only.
Overview
The New Products Maintenance course is a periodic refresher course for
those who need incremental training on how to support new Sun
Workstations and operating system releases. If you already maintain
Sun Workstations, the self-paced maintenance video courses allow you
to concentrate on the specific workstation products you support. The
lecture and lab format used lays product-specific foundations in
preparation for extensive labs
Overview
The Fault Analysis Workshop enables you to perform basic,
intermediate, and some advanced system fault analysis and repair.
This course includes software, hardware, and system configuration
issues.
Introduction 1-17
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Sun Product Line 2
Objectives
Evaluation
References
2-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
1st CPU Cycle 2nd CPU Cycle 3rd CPU Cycle 4th CPU Cycle
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
RISC Processing
■ In RISK processing, each instruction proceeds through four
stages:
■ Fetch
■ Decode
■ Execute
■ Write
✓ Designed especially to enhance the rate of instruction execution for the Sun OS.
SPARC Processors
■ Name given to the RISC-based Sun processor chip set
✓ Scalable means that the internal chip design is flexible, so that as manufacturing
techniques improve, the chips can easily be made smaller without requiring major
redesigning. A natural function of a smaller chip set is both increased speed and smaller
packaging for the computer. The result can be seen in Sun’s new desktop SPARCstation™
systems
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
VMEbus Design
VMEbus
Device
SBus Design
CPU
SBus board
XDBus Design
System boards
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
SBus—System Bus
■ The SBus is found in SPARC desktop machines.
✓ The SBus connector is on-board the CPU and provides for SBus card options. The
transfer rate is 32 bits of parallel data. The SBus is more compact than the VMEbus; the
minimum dimensions of an SBus board are 5.78 inches long by 3.30 inches wide.
✓ Sun uses the XDBus to enable rapid communications between multiple system boards.
The XDBus also enables intensive boot diagnostics between system boards for
autoconfiguration.
✓ The system boards for the XDBus come in various sizes, depending on the system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
3 SBus
connectors
Pizzabox
2 SBus
connectors
Dinnerbox
No SBus
connectors
Monitor
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
Enclosures Styles
Sun desktop systems have three enclosure styles:
■ Pizzabox enclosure
✓ The SPARCstation 1 and associated systems are commonly referred as the pizzabox
systems and have dimensions of 2.8 inches high by 16 inches wide by 16 inches deep,
plus monitor.
■ Dinnerbox enclosures
✓ The SPARCstation IPC and associated systems are commonly referred as the dinnerbox
systems and have dimensions of 4.6 inches high by 9.6 inches wide by 10.4 inches deep,
plus monitor.
■ Monitor enclosures
✓ The SPARCstation SLC and associated systems are commonly referred as the monitor
systems and are integrated into a 17 inch monitor enclosure. Its dimensions are 15.8
inches high by 15.5 inches wide by 17.3 inches deep.
Basic Features
■ Intended for use on the desk
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
5-slot 12-slot
X30 chassis X70 chassis
16-slot
X90 chassis
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
Deskside Systems
■ Can be configured as a standalone, dataless, diskless client or
server.
■ Are intended for positioning next to or under a desk.
✓ The x30s are 5-slot systems and have dimensions of 23.6 inches high by 12.6 inches wide
by 27.6 inches deep.
✓ The X70s are 12-slot systems and have dimensions of 25.7 inches high by 18.9 inches
wide by 28.6 inches deep.
Datacenter Systems
■ Can be configured as a server.
✓ The X90s are 16-slot systems and have dimensions of 56 inches high by 29.5 inches wide
by 38.3 inches deep.
✓ The X90 system cabinet can contain up to two tape drives, one CDROM, and eight disk
drives.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
4-slot
tabletop server
10-slot
dataserver
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
Tabletop Servers
■ Can be configured as a server.
✓ Each system board can have two SPARC processor modules, three SBus modules, and
512Mbyte of RAM.
✓ The tabletop server is a 4-slot system and has dimensions of 8.27 inches high by 19.6
inches wide by 21.06 inches deep.
Dataservers
■ Can be configured as a server.
✓ Each system board can have two SPARC processor modules, four SBus modules, and
512Mbyte of RAM.
✓ The dataservers have dimensions of 56 inches high by 29.5 inches wide by 38.3 inches
deep.
✓ The dataservers cabinet can have up to 18 disk drives, 1 tape drive, and 1 CD-ROM. The
tabletop server cabinet can have up to 18 devices.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
SCSI
■ Can support seven devices.
Embedded SCSI
■ Controller embedded with disk drive.
Peripheral Styles
■ Full-height.
■ Half-height.
System Usage
■ Desktop systems use SCSI only.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
✓ The 12-slot office pedestals can have up to six SCSI internal devices.
- sd - SCSI disk
- st - SCSI tape
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
Lunchbox
Dinnerbox
P-box
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
✓ A new version with a 4-mm DAT tape is called a Desktop Backup Storage Pack.
✓ The P-box is also called an external storage module or ESM. The ESM is replaced by the
DSP. The ESM supports up to two full-height devices.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
- xd—ESMD disk
✓ The IPI controller can control up to eight disks simultaneously. Four IPI controllers are
supported in the deskside systems, and up to five can be inserted into the datacenter
systems.
- id—IPI disk
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
SCSI Port
DSP Peripheral
Sun 2 meter
SCSI interconnect
cables
ESM Box
(two peripherals)
Terminator
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
✓ This would require 7 cables that are at least 0.8 meters in length for a total of 5.6 meters.
✓ With the internal SCSI circuitry in each box you will exceed the maximum length.
■ The ESM box has special SCSI connectors that are larger in size
and it requires a cable with a special connector on one end.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
Tabletop server
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
Expansion Pedestals
■ Are used with deskside systems.
✓ Each cabinet supports up to eight SCSI drives, and either two tape units or one tape unit,
and one CD unit.
Expansion Cabinets
■ Are used with datacenter systems.
✓ Each datacenter expansion cabinet supports up to 16 IPI drives, or 12 IPI drives, and 4
tape drives.
✓ Each dataserver expansion cabinet supports up to 36 SCSI drives, or 18 IPI drives, and 8
SCSI tape drives/CD-ROM.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
Graphics display
Graphics display
(CRT)
(CRT)
Keyboard
Keyboard
CPU in
CPU
base in base
Video cables
7 Monitor
1, 2, 3
Mouse
5 and pad
Keyboard
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
Monitors
■ Monitors are not required for system operation.
✓ Monitors are available in color, monochrome, and gray-scale.
- Gray-scale—17-inch and 19-inch (uses single color input and displays 256 shades of
gray)
Frame Buffers
■ Frame buffers, like monitors, are not required.
✓ Optional SBus frame buffers can be added to those systems capable of supported SBus
cards.
Other FRUs
■ Keyboard
■ Video cables
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
SCSI KB
Ethernet A B
Frame
buffer Audio
ENET
Audio SCSI
Keyboard
Serial Ports A and B
SPARCstation 10
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
Notes
SCSI Bus
✓ Supports a variety of disk, tape, and CDROM peripherals.
Ethernet Interfaces
■ AUI (attachment unit interface)
✓ Thick Ethernet with a passive adapter cable (outputs DB15 pins).
✓ Thin Ethernet with the passive adapter cable plus an active adapter.
✓ Also supports high-quality audio devices (a breakout adapter cable is needed to separate
out the audio portion of the interface).
ISDN Interface
■ High-speed integrated services digital network (ISDN) digital
and high-quality audio communications
✓ There are two RJ45 connectors in parallel.
Other Interfaces
■ Audio interface
✓ General-purpose audio I/O interface for use with some Solaris software applications.
■ Parallel Interface
✓ General-purpose parallel interface, typically used for parallel port printers.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
Overview
The purpose of this lab is to correctly identify the different types of
Sun systems and peripheral terms.
Lab Exercises
1. RISC is defined as _____.
a. Reduced Instruction Set Code
b. Reduced Instruction Simulation Code
c. Reduced Instruction Set Computer
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
a. Lunch c. Pizza
b. Dinner d. Breakfast
a. 0 b. 1 c. 2 d. 3
a. VME c. SBus
b. Cables d. Networks
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
22 2
_____ xd
_____ id
_____ sd
a. 1024x1024 c. 1600x1280
b. 1152x900 d. 720x680
17. How many SBus connectors does your system have? ______
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
2
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Introduction to Solaris 3
Objectives
Upon completion of this module, you will be able to:
Evaluation
Complete the lab at the end of this module.
Reference Information
System and Network Administration Guide, Part Number 800-3805-10,
Chapter 2
3-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
What Is a Workstation?
Personal
computer
Mainframe
Workstation
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Personal Computer
■ Single user
✓ One user at a time.
Mainframe
■ Multiple users(hundreds)
Workstation
■ Multiple users
✓ Optimized for one user at a time but other users can login remotely or from a modem.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
■ Operating System
File system
Solaris
Files
Kernel
Shell
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Operating System
■ The operating system is a series of programs (or set of
instructions) that manages all computer operations and
provides a link between users and system resources.
✓ There are four components of the operating system:
- Kernel
- Shell
- File system
- Files
✓ The operating system converts requests coming from the mouse and keyboard into
computer operations.
✓ The operating system on Sun systems is part of the Solaris system software, and it is a
virtual memory operating system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Kernel Overview
Hardware
CPU
Kernel
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
- Stores information about the arrangement of the computer system and network
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Shell Overview
Hardware
CPU
Kernel
Shell
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Shell Functions
■ A shell is an interface between the user and the operating
system.
■ The shell interprets and validates commands you provide and
translates them into actions performed by the operating system.
✓ The command format of the Korn shell is compatible with the Bourne shell.
■ C shell (%)
✓ The C shell is also a superset of the Bourne shell. The C shell was developed for the
University of California at Berkeley (BSD) UNIX. It has many features that are similar to the
Korn shell.
✓ The C shell has unique features, such as the ability to perform command substitution and
to create a log-out file that performs special operations when a user logs off the system.
✓ The command format of the C shell is not compatible with the Bourne and Korn shells.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Directory
Subdirectories
Files
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Server
Network
Clients
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
■ Network
✓ The network physically connects machines to enable communication between users on
other systems. Sun products, like the NFS distributed file system and the NIS, enable
users to share resources across the network.
✓ All Sun systems have a network interface built into the CPU board.
■ Server
✓ A server provides resources to one or more clients on the network.
■ Client
✓ A client is a machine that uses the services from one or more servers on a network.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Interactive
grob% man ls
Reformatting page. Wait... done
NAME
ls - list the contents of a directory
Multiple Tasking
Monitoring system
performance
Editing a file
Multiple Users
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
■ Multiple tasking
✓ UNIX enables you to use more than one tool or application at a time.
✓ The kernel can keep track of several processes at the same time.
■ Multiple users
✓ UNIX enables more than one user to access the same system resources simultaneously.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Hosts
All computers, regardless of the type of machine, are called hosts. Each
host:
User
A user is a person who performs a task on a computer or host. Each
user logs in to the host and gains access to a personal workspace called
a home directory. Each user is assigned a home directory from a
particular place in the file system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Standalone
The standalone workstation:
■ Has its own local disk that contains all files and executables
required for functioning
■ Does not require a network to function
File Server
A file server is a machine that:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Standalone
■ The standalone workstation does not need a file server to boot.
File Server
■ File servers provide the files and disk storage needed by client
machines.
■ The most important characteristic of a file server is that it provides
substantial disk space for use by other machines on the network.
✓ Typically, file servers have more powerful CPUs, more memory, and faster and larger disk
sub-systems. The file server is most often a datacenter machine because it is powerful
enough to perform many server functions.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Client Types
A client is a system that utilizes data from another system across the
network. There are two types of clients: dataless and diskless.
Dataless Client
■ Must get executables from a file server
Diskless Client
■ Does not use a disk
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Dataless Client
■ A dataless client is a workstation that has its own disk for
storing part of what it needs to boot.
■ The dataless client receives most executables from a file server; it
cannot boot completely without the executable programs.
✓ A dataless client is attached to a network and relies on a file server for necessary
resources. The dataless client gets executable files (called the /usr files), which are
necessary for its operation, from a file server over the network. This configuration permits
the storing of executables for several dataless clients on one file server, which reduces
the overall amount of disk space required.
Diskless Client
■ A diskless client is a workstation that uses no local disk space.
■ The diskless client’s operating system and individual user files are
stored on the file server’s disk.
✓ Typically, the diskless client’s files that are required for booting reside on a single file
server, but executable files and data files can reside on more than one file server.
Diskless clients reduce the system cost and are quieter than systems with local disks.
They also make system administration easier because they are confined to the server.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Network Definitions
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Lab—Solaris Introduction
Overview
The purpose of this lab is to correctly identify the different types of
computers, operating systems, and the major parts of the Solaris
computing environment.
Lab Exercise
1. A personal computer is ____________ .
(circle all that apply)
a. Single-user, single-tasking
b. Single-user, multiple-tasking
c. Multiple-user, multiple-tasking
a. Single-user, single-tasking
b. Multiple-user, multiple-tasking
c. Single-user, multiple-tasking
d. Multiple-user, single-tasking
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Lab—Solaris Introduction
f. single-user, multiple-tasking
g. multiple-user, single-tasking
________________________________________________________
_______________________________________________________ .
_______________________________________________________ .
a. Core c. User
b. Owner d. Shell
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Lab—Solaris Introduction
a. Diskette c. Network
b. Disk d. Telephone
a. Server c. Client
a. Server c. Client
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
33 3
Lab—Solaris Introduction
a. Without a disk
a. Without a disk
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
3
Lab—Solaris Introduction
a. Without a disk
a. Without a disk
b. Microwave d. LAN
a. Node c. User
b. Host d. Workstation
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
System Boot Sequence 4
Objectives
Upon completion of this module, you will be able to:
Evaluation
Complete the lab at end of this module.
Reference Information
Solaris User’s Guide: Getting Started, Part Number 800-3830, Chapter 4
4-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
POST
boot
boot program loads the kernel (/kernel/unix)
program
the kernel
Kernel checks for attached devices
(/kernel/unix)
Login
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ The block diagram shows all of the steps that are involved during
a system boot.
✓ This lecture focuses on each of the general areas; future modules explain them in more
detail.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Boot PROM(s)
POST
diagnostics
Device
drivers
IU
Boot
programs
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
The primary function of any boot PROM is to interact with the system
hardware and to provide the software foundation necessary to run
programs.
✓ Contents of the boot PROM cannot be altered.
✓ During system initialization, the SunOS and standalone programs depend on the boot
PROM for their initial program loading.
■ POST diagnostics
✓ This is called Power-On Self-Test (POST).
✓ POST diagnostics test the vital circuitry on the CPU board. They are run automatically
when system power is turned on or when a system reset is forced by using firmware
commands.
■ Extended diagnostics
✓ Referred to as “extended” diagnostics—these are manually initiated, and test the input
devices, output devices, and boot devices necessary to boot the system. The number of
extended diagnostics varies with different revisions of the boot PROMs and systems.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
■ Ethernet address
■ Host ID
■ Serial number
■ Configuration parameters
■ Ethernet address
■ Host ID
■ Serial number
■ Configuration parameters
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
✓ The IDPROM cannot be altered; only the parameters in the EEPROM can be changed.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
System Output
Format
ok New-Mode prompt)
ok
ok old -mode
Example
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
✓ This prompt allows the user to use commands that are designed to modify and examine
various system registers or, enable and disable sections of CPU logic. All of the logic
involved cannot be replaced and is thoroughly tested by POST diagnostics.
■ The > prompt on the screen does not operate as the traditional
monitor prompt does. As shown, you can type only three
commands at this prompt:
✓ The PROM-based operating system is called an interpreter and it converts the Forth words
to machine instructions.
✓ The Forth toolkit allows more flexibility and user friendliness than the old-mode (>).
✓ The > prompt enables the user to do much more than the original monitor prompt.
■ Once you are in the toolkit, you must type the command
old–mode to get back to the monitor-like prompt.
✓ Because there are equivalent new-mode commands, using old-mode commands is not
necessary.
✓ Old-mode is for users who have not worked with newer Sun systems. It is a historical
leftover.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Monitor Programs
> k2
Forth Toolkit
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ Resetting the system using the keyboard resets the CPU and
restarts POST.
✓ This is almost the equivalent of power cycling the system.
✓ Resetting the system displays the banner after the POST completes.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Power-on (reset)
Selftest Completed
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ The boot PROM contains the programs for POST and system
initialization sequence.
✓ The exact tests and depth vary with different system models.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Banner Display
Selftest Completed
Banner Contents
■ System Type
■ Keyboard Type
■ Ethernet address
■ Host ID
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
Use the following to display the banner via the keyboard:
Monitor Programs
> kb
Forth Toolkit
Type b (boot), c (continue), or n (new command mode)
> n
Type help for more information
ok banner
■ Keyboard type
✓ The system keyboard has a small PROM that is read by the Boot PROM.
■ Amount of memory
✓ Amount of memory detected is a result of the amount of memory POST initialized.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Monitor Programs
> b -v
or
Forth Toolkit
ok boot -v
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ The uniprocessor deskside and datacenter systems use the form >
kb.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
If your system has just started to boot and you suddenly want to stop
it, you can abort the boot sequence by pressing Stop-A (L1-A) on the
keyboard.
Press and
Hold Stop (L1)
Abort at PC 0xFFE9585C
>
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
✓ The Stop -A combination places the system into the monitor mode.
Abort at PC 0xFFE9585C
>
■ The desktop systems and the multiprocessor deskside and
datacenters prints the following message:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
ok boot -v
Boot device: /sbus/esp@0,800000/sd@3,0 File and args: -v
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ The kernel first identifies the system type and the available
memory.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Resulting Output
sbus0 at root: obio 0xf8000000
dma0 at sbus0: SBus slot 0 0x400000
esp0 at sbus0: SBus slot 0 0x800000 SBus level 3 sparc ipl 3
sd3 at esp0: target 3 lun 0
sd3 is /sbus@1,f8000000/esp@0,800000/sd@3,0
<SUN0207 cyl 1254 alt 2 hd 9 sec 36>
sd6 at esp0: target 6 lun 0
sd6 is /sbus@1,f8000000/esp@0,800000/sd@6,0
<>
root on /sbus@1,f8000000/esp@0,800000/sd@3,0:a fstype ufs
swap on swapfs fstype swapfs size 13420K
zs0 at root: obio 0xf1000000 sparc ipl 12
zs0 is /zs@1,f1000000
zs1 at root: obio 0xf0000000 sparc ipl 12
zs1 is /zs@1,f0000000
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ The kernel probes for system devices and loads the appropriate
device drivers.
✓ The kernel tries to match active devices with device drivers in the /kernel directory. If
there is no device driver for an existing device, the system continues booting and this
effectively turns off the device.
✓ By matching the device drivers with existing devices, the system in effect becomes an
auto-configuring system.
ok boot
Boot device: /sbus/esp@0,800000/sd@3,0 File and args:
SunOS Release 5.1 Version Generic [UNIX(R) System V
Release 4.0]
Copyright (c) 1983-1992, Sun Microsystems, Inc.
Hostname: SUNIPX
The system is coming up. Please wait.
checking filesystems
/dev/rdsk/c0t3d0s5: is clean.
/dev/rdsk/c0t3d0s7: is clean.
/dev/dsk/c0t3d0s7 mounted
/dev/dsk/c0t3d0s5 mounted
starting routing daemon.
starting rpc services: rpcbind keyserv kerbd done.
Setting default interface for multicast:add net
224.0.0.0:gateway sparc
Print services started.
syslog service starting.
The system is ready.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Hostname: sparc
dump on /dev/dsk/c0t3d0s1 size 32872K
The system is coming up. Please wait.
checking filesystems
/dev/rdsk/c0t3d0s5: is clean.
/dev/rdsk/c0t3d0s7: is clean.
/dev/dsk/c0t3d0s7 mounted
/dev/dsk/c0t3d0s5 mounted
starting routing daemon.
starting rpc services: rpcbind keyserv kerbd done.
Setting default interface for multicast:add net
224.0.0.0:gateway sparc
Print services started.
syslog service starting.
The system is ready.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
# exit
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
✓ In the example, the user name is root; root is a default Solaris software login name.
✓ For example, the root user can perform system maintenance to keep the operating system
functioning.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
System Prompts
Different Prompts:
# (root)
$ (regular user)
Command Format
# passwd
# passwd
New password:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ The # or root prompt tells you the user has special privileges.
■ The $ or regular user prompt tells you the user does not have
special privileges.
✓ The superuser, as described in the previous section, has access to the entire file
structure that the root holds. Regular users have access only to their own files and
directories.
■ When a new system boots up, there is no password existing for the
root user.
✓ Passwords need to be typed for each user.
✓ Passwords longer than eight characters are truncated after the eighth character.
✓ Passwords must contain at least two alphabetic characters and at least one numeric or
special character.
✓ The password typed in at the keyboard is not echoed to the screen, and therefore cannot
be seen. This prevents others from seeing how many characters are in the password.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
# halt
System Output
Halted
Program terminated
Type help for more information
ok
or
Halted
Program terminated
Type b (boot), c (continue), or n (new command mode)
>
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Notes
■ halt writes out any information pending to the disks and then
stops the processor.
✓ halt stops all processing by gracefully shutting down the system processes.
✓ Only the superuser root is able to use these commands because it prevents regular
users from halting the system and perhaps causing damage to other users’ files.
# halt
Halted
Program terminated
>
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Lab Overview
The purpose of this lab is to identify how to correctly:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Selftest Completed
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
> k2 or ok reset
5. What did your system do immediately after you typed the reset
command?
6. After the system finishes with its self-test, use the appropriate
command to manually display the banner.
> kb or ok banner
Note–The only difference you should see is that the Selftest Completed
message will be absent because POST diagnostics were not run.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
In this section, you will boot the default boot device and identify parts
of the boot messages. (Your boot messages may be slightly different.)
> b -v or ok boot -v
Note–The message below will look quite different if your system has
Boot PROMs that are a 1.x revision
Note – This message indicates that the boot sequence has begun.
Note – This message indicates that the kernel load has been successful.
6. Does the value in the “mem=” entry match the system banner “MB
memory installed” entry you previously recorded?
Yes No
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Note – This message indicates that these are the available hardware
devices and the associated devices drivers interrogated by the kernel.
a. SBus
b. VME
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
10. From these messages, record the 8-digit address for the floppy
disk drive fd0. (Skip this question if you have a SPARCstation
SLC or ELC.)
Address: ___________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Lab—Logging In
In this section, you will be using different commands to log into the
system, log out of the system, and to halt the Solaris operating system.
3. If you answered the previous question No, why didn‘t the system
ask for a password?_________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
___________________________________________________________
9. At the system prompt, type the halt command. What did the
system respond with?
___________________________________________________________
___________________________________________________________
___________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
a. # c. $
b. ok d. >
___________________________________________________________
__________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
44 4
Lab—Setting Passwords
_________________________________________
_________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
4
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
File System Hierarchy 5
Objectives
Evaluation
Reference Information
5-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
5
Directories
/usr
/dev
/home
Subdirectories
Files
awk
at
as
arch
ar
adb
bin
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
55 5
Notes
root (/)
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
5
drv sparc
drv
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
55 5
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
5
sparc
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
55 5
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
5
Overview
The purpose of this lab is to correctly identify the different parts of the
hierarchical file system and the major parts of the Solaris computing
environment file structure.
Lab Exercise
Answer the following questions True or False.
_____ Two files or directories can have the same name as long
as they are in different directories.
_____ Two files or directories can have the same name as long
as they share the same parent directory.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Directory Commands 6
Objectives
Upon completion of this module, you will be able to:
Evaluation
Complete the lab at end of this module.
Reference Information
Solaris User’s Guide: Getting Started, Part Number 800-3830, Chapter 4
6-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
budget_2090 sched-q1
staff.rpt dept.goals
revenueq4% lost+found
Priority+ action-
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
prompt: command
# pwd
# ls
# ls -l
# ls -F
# ls /usr/lib
# cd /usr/lib/fonts
# man ls
# ls -l /usr/lib/font
# tar -tvf /dev/rmt/0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
or
✓ Path names begin with a slash (/), indicating the root directory (/).
✓ The other slashes in the path names are delimiters between directory names.
Example:
ls -l /usr/lib/fonts
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# man cd
CD(1) USER COMMANDS CD(1)
NAME
cd - change working directory
SYNOPSIS
cd [directory]
DESCRIPTION
directory becomes the new working directory. The process
must have execute (search) permission in directory. If cd
is used without arguments, it returns you to your ligon
directory. In csh(1) you may specify a list of directories
in which directory is to be sought as a subdirectory if it
is not a subdirectory of the current directory; see the
description of the cdpath variable in csh(1).
SEE ALSO
csh(1), pwd(1), sh(1)
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# cd /usr
# pwd
/usr
#
drv
drv man
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
Example:
# cd /usr
or
# cd /etc/lib
Note – The current directory is the directory that you are currently
working in and is displayed by using the pwd (print working
directory) command.
■ Use the pwd command to display the path name of your current
directory.
Examples:
# cd /usr/lib
# pwd
/usr/lib
# cd /home
# pwd
/home
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# cd ..
# pwd
/
#
drv
drv man
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
# cd ../../..
# pwd
/
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# pwd
/
# cd /usr/share
# pwd
/usr/share
#
drv
drv man
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
✓ The other slashes in the path names are delimiters between directory names.
■ Using the cd command with an absolute path name gives you the
freedom to move to any directory in the file system without using
the current working directory as a reference point.
/kernel/drv / cd /
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# pwd
/usr/share
# cd ../kernel
# pwd
/usr/kernel
#
drv
drv man
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
usr/kernel/drv usr/kernel cd ..
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# pwd
/etc
# ls
dfsdcopyhalt
fsmountnetid
passwdrmtabtm
# pwd
/etc
# ls
etc
dfs fs tm
dcopy halt mount netid passwd rmtab
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
- Numerals-1file
- Uppercase letters-Afile
- Lowercase letters-afile
Examples:
# pwd
/usr/bin
# ls /usr/games
adventure boggletool factor mille snake
banner canfieldtool ...
# ls ..
4lib demo include man spool
5bin dict games ...
# ls ../5bin
adb cal expr od tabs
banner cpio grep ...
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# cd /export
# pwd
/export
# ls
# mkdir test1
# ls
test1
export
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
Command format:
# mkdir /home/games
mkdir: /home/games: Permission denied
#
✓ Permissions are covered later in the course.
Example:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# pwd
/export
# ls
test1
# mkdir test1/test1a
# ls
test1
# ls test1
test1a
#
export
testla
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
# pwd
/export
# mkdir test1/test1a
# ls
test1
# ls test1
test1a
# pwd
/export
# cd test1
# ls
# mkdir test1a
# ls
test1a
# pwd
/export
# mkdir /export/test1/test1a
# ls
test1
# ls test1
test1a
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
# pwd
/export
# ls
test1
# rmdir test1
rmdir: test1: Directory not empty
# ls test1
test1a
# rmdir test1/test1a
# rmdir test1
# ls
export
testla
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Notes
Command format:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
Lab—Directory Commands
Overview
The purpose of this lab is to:
Lab Exercise
4. What other path could you have used as an argument to get to the
etc directory? ____________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Lab—Directory Commands
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
Lab—Directory Commands
______________________________________________
3. Without moving from your present location, list the contents of the
parent directory, and record the command used and output.
System output:
4. Without moving from your present location, list the contents of the
/var directory.
System output:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
66 6
Lab—Directory Commands
5. List the contents of /export. Record your command line and the
current directory contents.
6. Make two more directories. Name one Dir2 and the other Dir3.
7. List the directory contents again to see if your directories are there.
Record the current directory contents below.
8. Now, remove the Dir3 directory. Record your command line and
the contents of the current directory.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
6
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
File Commands 7
Objectives
Evaluation
Reference Information
7-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
What Is a File?
Do it now!
Dear Helen,
.......................
......................
......................
......................
......................
......................
......................
......................
......................
.........
.........
Documents
Commands
Files
/dev/null
“Nothing” file
Devices % ls -F
man1/ man2/ . . . .
Directories
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
# ls -l /
lrwxrwxrwx 1 root root 9 Jun 29 23:40 bin -> usr/bin
drwxrwxr-x 15 root sys 4608 Jul 11 23:26 dev
drwxrwxr-x 4 root sys 512 Jun 30 00:14 devices
drwxrwxr-x 21 root sys 2560 Jul 11 22:35 etc
-rw-r--r-- 1 root sys 164324 Apr 1 15:46 ufsboot
drwxrwxr-x 21 root sys 512 Jun 30 1993 usr
Links Size
File or
directory
Permissions Group name
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Notes
■ File types:
✓ When a program or a user references the symbolic link, the kernel references the file (or
directory) named by the link.
✓ Symbolic links are used to provide more than one name for a file or to provide a reference
to a file (or directory) across file systems.
■ Permissions
✓ Permissions allow or prohibit access by other users to read, write, or execute files;
subdirectories; or programs (which are executable files) in a directory.
■ Link count
✓ Indicates the hard link count for the file or directory. A hard link is an additional name for
a file. When a new link is made to a file, an alias for the file is created. Directories have at
least two links: one from the parent directory and one from inside the directory itself.
■ Owner
✓ Original creator of the subdirectory or file.
■ Group
✓ Group or original creator of the subdirectory or file.
■ Created or modified
✓ Date and time of last modification in military format. Files older than 6 months show date
and year of the last modification.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
# ls -F /
bin@ kadb lib@
etc/ kernel/ ufsboot
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Notes
Example:
# ls -lF /
total 1463
lrwxrwxrwx1rootroot9 Jun 29 23:40 bin->/usr/bin
drwxrwxr-x15rootsys4608 Jul 11 23:26 dev/
drwxrwxr-x4rootsys512 Jun 30 00:14 devices/
drwxrwxr-x21rootsys2560 Jul 11 22:35 etc/
-rw-r--r--1rootsys164324 Apr 1 15:46 ufsboot
drwxrwxr-x21rootsys512 Jun 30 1993 usr/
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
#file /usr/bin/ls
/usr/bin/ls: ELF 32-bit MSB executable SPARC Version 1
#file /home
/home: directory
#file /etc/utmp
/etc/utmp: data
#file /etc/vfstab
/etc/vfstab: ascii text
#file /etc/mountall
/etc/mountall: executable /sbin/sh script
#file /etc/auto_home
/etc/auto_home: English text
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Notes
Command format:
# file filename
■ Use file when in doubt before trying to read the file name’s
contents.
✓ The file command prints a short explanation of the supposed file type.
- Three identifiable types cannot be read—those that are data, those that are directories,
and those that say executable SPARC. All others are readable.
- The command scripts, executable shell scripts, and [nt]roff types are readable but
may not be readily understood without the appropriate programming background.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
# more /etc/format.dat
#
# @(#)format.dat 1.31 92/07/21 SMI
#
# Copyright (c) 1991 by Sun Microsystems, Inc.
#
# Data file for the ‘format’ program. This file defines the known
# disks, disk types, and partition maps.
#
#
# This is the search path for ‘format’. It contains all the disks that
# will be searched for if no disk list is given on the command line.
#
search_path = xd0, xd1, xd2, xd3, xd4, xd5, xd6, xd7, xd8, xd9, xd10,
xd11, \
xd12, xd13, xd14, xd15, xy[0-3], sd[0-7], sd8, sd9,
sd1[0-9], \
sd20, id0[0-4][0-7]
#
# This is the list of supported disks for the Xylogics 450/451
controller.
#
disk_type = “Fujitsu-M2312K” \
: ctlr = XY450 : fmt_time = 4 \
: ncyl = 587 : acyl = 2 : pcyl = 589 : nhead = 7 : nsect = 32 \
: rpm = 3600 : bpt = 20480 : bps = 621 : drive_type = 1
disk_type = “Fujitsu-M2284/M2322” \
: ctlr = XY450 : fmt_time = 4 \
: ncyl = 821 : acyl = 2 : pcyl = 823 : nhead = 10 : nsect = 32 \
: rpm = 3600 : bpt = 20480 : bps = 621 : drive_type = 2
--More--(5%)
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Notes
Command format:
# more filename
The more command is a filter that displays the contents of a text file on
the terminal, one screen at a time. It normally pauses after each screen
and prints --More-- at the bottom of the screen.
✓ The more command displays the file as the file exists. The bottom line that says
--More--(5%) tells you that 5% of the file is being displayed.
✓ If the file to be displayed is smaller than a page, the entire file is displayed with no
--More-- statement shown.
✓ The size of the more file determines the percentage at the bottom.
You can use the following keys with the more command:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
Keyboard Interrupts
■ Press the Control key and the c key together to stop a program
or command.
Control
Control C
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Notes
■ The Control key is represented on the screen by the caret (^), such
as ^C for Control-C.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
Lab—File Commands
Overview
The purpose of this lab is to use the utility commands in this module
to correctly identify, create, remove, and read files.
Lab Exercise
2. Use the ls command with the -l option to list the following file
names. Record the file types.
_____ dfs
_____ cron
_____ format.dat
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Lab—File Commands
3. Use the ls command with the -F option to list the following file
names. Record the file types.
_____ dcopy
_____ fs
_____ device.tab
4. Use the file command to list the following file names. Record the
file types.
_____ magic
_____ profile
_____ getty
Note – None of the files in the above step are SPARC executable file
types.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
Lab—File Commands
6. Use the more command to view the contents of the following files.
Record whether the file is readable or not readable.
_____ file
_____ pwd
_____ vi
_____ calendar
Note – Except for the file calendar, none of these files are readable.
That is because they are executable SPARC files. They are compiled
programs and can only be run (executed). Attempting to view the
contents of these files can “lock up” a dumb terminal’s display. Files of
this type are also called “binaries.”
8. Use the ls command with the -l option to list the following file
names. Record the file types.
_____ vfstab
_____ auto_home
_____ rc0
_____ format.dat
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Lab—File Commands
9. Use the ls command with the -F option to list the following file
names. Record the file types.
10. Use the file command to list the following file names. Record the
file types.
11. Use the more command to list the following file names. Record
whether the file was readable or not readable.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
Lab—File Commands
12. Were there any commands that didn't work the way you expected?
If so, why? ________________________________________
Note – All these files (except halt and rc0) were able to be read but
were of different types. The /etc/halt file is a link to
/usr/sbin/halt, an executable binary file. /etc/rc0 is a directory.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
77 7
Lab—File Commands
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
7
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Package Commands 8
Objectives
Evaluation
References
8-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
8
# pkginfo | more
pkg_category pkg_name description
application SUNWabs Solaris 2.2 System Software AnswerBook
system SUNWaccr System Accounting, (Root)
system SUNWaccu System Accounting, (Usr)
system SUNWadmap System/Network Admin. Applications
system SUNWadmfw System & Network Administration Framework
system SUNWadmr System & Network Administration Root
system SUNWarc Archive Libraries
system SUNWast Automated Security Enhancement Tools
system SUNWaudio Audio applications
system SUNWaudmo Audio demo programs
system SUNWbcp Binary Compatibility
system SUNWbnur Networking UUCP Utilities, (Root)
system SUNWbnuu Networking UUCP Utilities, (Usr)
system SUNWbtool CCS tools bundled with SunOS
system SUNWcar Core Architecture, (Root)
graphics SUNWcg12 GS (cg12) Device Driver
description
A brief description of the
software product
pkg_name
Software package name; it begins
with SUNW if it is a Sun product
pkg_category
The package can be an application,
graphics, or system package
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
88 8
Notes
Command format:
pkginfo
✓ Using the pkginfo command without options or arguments outputs the category, name,
and description of packages installed on the system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
8
# pkginfo -l | more
# pkginfo -l SUNWaudio
PKGINST: SUNWaudio
NAME: Audio applications
CATEGORY: system
ARCH: sparc
VERSION: 3.0,REV=1.0.7
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Audio binaries for SunOS 5.2
PSTAMP: patio930308165920
INSTDATE: Jul 12 1993 14:50
HOTLINE: Please contact your local service provider
STATUS: spooled
FILES: 9 spooled pathnames
2 directories
3 executables
4 package information files
758 blocks used (approx)
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
88 8
Notes
Command format:
# pkginfo -l SUNWman
ERROR: information for “SUNWman” was not found
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
8
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
88 8
Notes
Use the pkginfo-d command to list all software packages that reside
on the installation CD-ROM.
Command format:
✓ The volume manager creates the /cdrom directory and mounts the CD-ROM automatically.
■ The last line of the output identifies the size of the package. Use
this information and the df -k command to determine if you
have enough disk space to install the package.
✓ The important point here is to see how much disk space the package needs before you
install it.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
8
Audio applications
(sparc) 3.0,REV=1.0.7
(C) 1993 Sun Microsystems, Inc. All Rights Reserved.
<< Many copyright messages here... >>
Using </> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
758 blocks
[verifying class <none>]
## Installation of part 1 of 1 is complete.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
88 8
Notes
Command format:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
8
Lab—Package Commands
Overview
This lab introduces you to the basic operation of the pkgadd program.
This program enables you to load Solaris software packages from the
CD-ROM.
Objectives
Materials Requirements
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
88 8
Lab—Package Commands
Lab Exercise
# ls /usr/sbin/pkg*
# ls /usr/man/*
# pkginfo -l SUNWman
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
8
Lab—Package Commands
# ls /usr/man/*
# pkginfo -l SUNWman
# ls /usr/man/*
$ man man
$ man intro
$ man filesystem
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
The OpenWindows Environment 9
Objectives
Evaluation
References
9-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Workspace Tutorial
File
Manager
Volume
Manager
Wastebasket
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
■ When a tool is closed into an icon, it cannot receive input from the
keyboard.
✓ The Wastebasket icon shows papers sticking up if files within the wastebasket have not
been deleted. The File Manager screen (file folder) graphically displays your home
directory, subdirectories, and files within that directory. Each of the windows or icons
belongs to a tool or window application program. Some of the tools are open as windows,
such as console; and some are closed, like wastebasket. When a tool is open (click
SELECT twice to open an icon), it is ready to receive input from the keyboard and mouse.
When a tool is closed into an icon, it can receive input from the keyboard and mouse.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
SELECT
Use the left mouse button to select a window
or something in it, or to work a window control.
ADJUST
Use the middle mouse button to deselect an object
or to select additional objects.
MENU
Use the right mouse button to open or choose
from a menu.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
✓ When you want to type text in a window, move the pointer to the window and click the
SELECT mouse button to set the place where characters are displayed. This way of
directing where you work is called click-to-type.
■ Drag—To press and hold down the SELECT mouse button while
moving the pointer on the screen.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Window Control
Window Window
menu button Application title border
Resize
corner
cmdtool - /sbin/sh
Command
prompt and
#
host name
Window
border
Window
pane
Scrollbar
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
■ To resize a window pane, move the pointer to one of the four resize
corners, press the SELECT button, and drag to increase or reduce
the total area of the window.
✓ Resizing a window changes the window area, but it does not change the scale of the
window elements.
■ The window pane is the area of the base window where the
application information is displayed and manipulated.
■ Scrollbars enable you to view information that is too large for the
window pane.
✓ When all application information cannot display at one time, panes have scrollbars to
allow moving the window contents forward and backward.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
File Manager
Window
Close ◆W
Full Size
Move
Resize
Properties
Back
Refresh
Quit ◆Q
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
✓ It uses icons to represent directories, programs, and data files so that you can browse
through the file system with just the push of a button. You can move or copy files by
dragging their icons and can start applications merely by double-clicking on the icon.
■ The top pane has six menu buttons that represent and
trigger various functions.
■ The middle pane displays the current directory and its path.
✓ If the user is root, all file systems are available to perform any of the functions allowed by
the File Manager. Of course root always has the potential of doing harm; however, the File
Manager makes it much easier to manage.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Console Window
Workspace
Programs
Utilities Refresh
Properties . . .Reset Input
Help . . . Function Keys
Desktop IntroWindow
... Controls
Exit . . . Save Workspace
Lock Screen
Console . . .
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Workspace Menu
You can access the Workspace menu button anywhere on your workspace.
Workspace Programs
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
■ To “pin” an unpinned pushpin, the pin pops into the hole, and the
menu or window stays on the screen until you unpin it by clicking
on the pinned pushpin.
✓ When you do this, the pushpin pops out of the hole and the menu or window is dismissed
from the screen.
■ To gain access to tools from the Workspace menu: Press the MENU
mouse button.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Command Tool
Workspace Programs
Click SELECT
on the arrows
to scroll up or
down
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
cmdtool - /sbin/sh
# ls /home
lost+found
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
2. Press the SELECT button, drag the window to its new position,
and release.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Workspace
Programs
Utilities
Properties . . .
Help . . .
Desktop Intro . . .
Exit . . .
Exit Cancel
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Lab—OpenWindows
Overview
■ Exit OpenWindows
Lab Exercise
# /usr/openwin/bin/openwin
Note – If you see an error message, check your spelling, then consult
your instructor.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
99 9
Lab—OpenWindows Environment
b. Press SELECT and drag the window so that both windows are
visible.
# ls /kernel
Note – /kernel and /usr/kernel have the same directory name, yet
have different directory contents. Any SunOS operating system
command can be executed in any window using the method in Step 5.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
9
Lab—OpenWindows Environment
Optional Exercise
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Disk Drive Partitioning 10
Objectives
■ Partition a disk.
■ Label a disk.
Evaluation
10-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
/dev/[r]dsk/c n t n d n sn
Example:
# mount -p
/dev/dsk/c0t3d0s0 - / ufs - no rw,suid
/dev/dsk/c0t3d0s6 - /usr - - no rw,suid
swap - /tmp tmpfs - no rw
/dev/dsk/c0t1d0s5 - /opt ufs - no suid,rw
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
■ Each disk has entries in both the rdsk and dsk subdirectories
because sometimes the operating system needs to communicate
with a device in “raw” mode, and other times in “block” mode.
You will see examples of both later in this course.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
Disk Partitioning
0 6
1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
■ The disk drives used with Sun Workstations are divided into as
many as seven sections, called slices or partitions, labeled 0
through 7.
root— Slice 0
swap—Slice 1
usr—Slice 6
home—Slice 7
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
Slice 0
cylinders: 0–49
number cylinders = 50
0 1 6
Slice 1
cylinders: 50–249
number cylinders = 200
Slice 6
cylinders: 250–849
number of cylinders = 600
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
VTOC—What Is It?
Slice 0
Slice 1
Slice 2
VTOC
(sector 0)
■ Disk geometry
■ Partition tables
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
The VTOC describes the layout of the disk and contains the following
information:
■ Slice tags—Name the standard mount points for each of the slices.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
# prtvtoc /dev/rdsk/c0t0d0s0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
# format
Searching for disks...done
selecting c0t3d0
[disk formatted]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition-select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
quit
format> partition
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
■ When the format utility is invoked, it probes the SCSI bus to find
the disks.
■ The logical disk device names are displayed with the physical disk
device names.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
PARTITION MENU:
partition> p
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
The Partition menu provides commands that enable you to view and
manipulate disk partitions.
■ Label writes the partition table to the disk (writes to the VTOC).
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
partition> modify
Select partitioning base:
0. Current partition table (original sd3)
1. All Free Hog
Choose base (enter number) [0]? 0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
partition> (you can use label at this point to commit the changes)
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
Partition Table
Current partition table (original):
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 41 14.77MB (42/0/0)
1 swap wu 42 - 172 46.05MB (131/0/0)
2 backup wm 0 - 1150 404.65MB (1151/0/0)
3 unassigned wm 0 0 (0/0/0)
4 unassigned wm 0 0 (0/0/0)
5 unassigned wm 173 - 202 10.55MB (30/0/0)
6 usr wm 203 - 550 122.34MB (348/0/0)
7 home wm 551 - 1150 210.94MB (600/0/0)
partition>
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
■ The blocks column describes the total number of cylinders for each
partition in this fashion:
Blocks
42/0/0
Cylinders Sectors
Heads
■ Partitions with “0” values for cylinders and size categories are not
used by system software and effectively do not exist.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
partition> 0
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 41 14.77MB (42/0/0)
Disk blocks
Cylinders
Mbytes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
You can change the size of your disk partitions. To repartition a disk,
follow the steps below.
2. Apply the tag name. A Return accepts the default value shown in
brackets. A “?” lists the valid tag names. This field is optional.
4. Enter the new starting cylinder; next cylinder available from the
previous partition.
5. Enter the new size of the partition. This can be described using
total number of blocks, cylinders, or Mbytes.
Now that the size of partition “0” has changed, the adjacent partitions
must be properly adjusted.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
partition>
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
partition>
partition>
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
partition> print
Add up to equal
Slice 2
partition> label
Ready to label disk,
continue? y
partition> q
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
■ First, add up the values in the blocks column. The total should
equal Slice 2.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
The Main menu provides the verify command to read the disk’s
VTOC.
selecting c0t3d0
[disk formatted]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition-select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
quit
format>
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Notes
format> verify
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
Overview
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
Pre-Lab Preparations
2. Log in as root (you cannot run the format command unless you
are root).
Lab Exercise
# mount -p
/dev/dsk/c0t3d0s0 - / ufs - no rw,suid
/dev/dsk/c0t3d0s6 - /usr - - no rw,suid
swap - /tmp tmpfs - no rw
/dev/dsk/c0t1d0s5 - /opt ufs - no suid,rw
The example indicates that two disk drives are in use; t3 and t1.
_____
_____
_____
_____
_____
Note – These numbers represent disk drives that are in use. Avoid
using these disks in the following lab exercises.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
quit
format> partition
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
When you select the partition menu, you are given a choice of many
commands. You will use only a few for this lab. Others will be
addressed later in this course.
PARTITION MENU:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
These values represent the whole disk. Never change these values.
■ All other slices (except for Slice 2) have zero values for
Cylinders and Size.
Instructions:
1. Enter a ? to see the list of commands available to you.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
4. Enter p to print your table. You should have zero values for Size
for Slices 0, 1, 3, and 7.
partition> 4
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
9. Enter p to print.
■ Subtract the sum from the of Slice 2’s blocks and record:
__________.
Calculate as before
Enter the value that represents the rest of the disk.
(Note that this value should be followed by a “c,”
(such as, 894c).
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1010 10
■ Add the size values for Slices 4, 5, and 6. The total should
equal the size value for Slice 2.
14. Now that your new table is complete, write it to the VTOC with
the label command as shown:
partition> label
Ready to label disk, continue? y
2. Enter format.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
10
# prtvtoc /dev/rdsk/c0t0d0s4
Note – The prtvtoc command will not work if you specify a slice that
has a zero size.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
File System Initialization 11
Objectives
Upon completion of this module, you will be able to:
Evaluation
References
11-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
Disk Partitioning
Raw Disk
0
1 6
Boot block
/ (root)
Slice 0
swap
Slice 1
Slice 6
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
✓ swap is the area where memory images that are not currently being used are stored. A
process is taken out of active memory (primary memory) and placed on the swap device
in order to make room for another process to run.
✓ A standard Sun system reserves Slice 1 on the first disk for swap.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
sparc
ucb man etc kvm lib
Located in Slice 6
username smfun
Located in Slice 7
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
✓ File systems do not have to start at the root. File systems can be attached anywhere in
the operating system hierarchy.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
CPU memory
Superblock
Superblock
Updated
every 30 seconds Loaded into memory
at boot time.
Boot block
(15 sectors)
Disk label
slice 6 (1 sector)
slice 1
Superblocks
(16 sectors) slice 0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
■ The superblock contains the basic parameters for the file system
and is built when the file system is created.
✓ A copy of the superblock is loaded into memory when the file system is attached to the
operating system.
✓ This allows constant updating of file system information without a lot of disk accesses.
✓ The superblock informs the fsck utility whether it needs to run on that file system.
✓ The halt command syncs the superblocks, brings the system to the PROM level, and
waits for user input.
✓ The reboot command syncs the superblocks, brings the system to the PROM level, and
immediately reboots the system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
# newfs /dev/rdsk/c0t1d0s0
newfs: construct a new file system /dev/rdsk/c0t1d0s0: (y/n)? y
/dev/rdsk/c0t1d0s0:28188 sectors in 87 cylinders of 9 tracks, 36 sectors
15.5MB in 3 cyl groups (16 c/g, 5.90MB/g, 2688 i/g)
super-block backups (for fsck -F ufs -o b= #) at:
32, 11632, 23232,
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
After you create the file system, you need to make it accessible. This is
done by associating the file system with a mount point through a
process called mounting.
# mkdir /data1
# mount /dev/dsk/c0t1d0s0 /data1
# mount
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
■ For mounting to take place, there must be a destination for the file
system.
■ The root file system has a single slash indicating its mount point.
✓ The usr file system has the directory /usr as its mount point, and the home file system
has the directory /home as its mount point.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
/usr/etc/mount
# mount
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
Background Structures
VTOC
Boot block
Superblock
Backup superblock
inode table
Data block(s)
Backup superblock
Created by
the newfs Cylinder group block
command
inode table
Data block(s)
Backup superblock
inode table
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
# newfs /dev/rdsk/c0t1d0s0
newfs: construct a new file system /dev/rdsk/c0t1d0s0: (y/n)? y
/dev/rdsk/c0t1d0s0:28188 sectors in 87 cylinders of 9 tracks, 36 sectors
15.5MB in 3 cyl groups (16 c/g, 5.90MB/g, 2688 i/g)
super-block backups (for fsck -F ufs -o b= #) at:
32, 11632, 23232,
✓ Background structures are necessary for a disk to operate with its installed file systems.
The background structures help the operating system find files that are requested by a
user, to keep the operating system from becoming corrupted, to allow users to create
files, and so on. Background structures keep the operating system operating efficiently
and effectively. They are what is often referred to as the “administrative overhead” of the
operating system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
VTOC sector #0
Inode table
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
✓ The VTOC, created by the format utility, is read first; its address is 0/0/0. Besides storing
offsets and sizes, the VTOC also stores the geometry of the disk:
■ If the boot block becomes corrupted, the disk will not boot up.
✓ There are 15 sectors reserved for the boot block, 0/0/1 to 0/0/15. The boot block
contains: the addresses of where the boot program is located on the disk, and other
information necessary for the initialization of the SunOS operating system.
✓ All file systems have an active VTOC, but only the root file system has an active boot
block area, although space is allocated for them in every file system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
# prtvtoc /dev/rdsk/c0t0d0s0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
✓ The lower portion of the display shows the disk’s partition table. However, this table looks
a bit different than the partition table that is displayed in the format utility.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
Superblock
■ Superblock clean flag
■ Size of a fragment
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
■ The superblock contains the basic parameters for the file system.
✓ The superblock is built when the file system is created and it never changes, except for
the clean flag. The state of the superblock clean flag is checked by the fsck command to
determine the state of the file system. If the file system is corrupted, fsck makes its
checks; however if the clean flag indicates all is well, fsck does not check it. Because the
superblock contains critical data, it is replicated to protect against catastrophic loss. The
copies are referenced if a disk failure causes the superblock to become corrupted. The
superblock begins at an address of 0/0/16; the first superblock backup begins at an
address of 0/0/32.
✓ All subsequent operations to create or remove files involve modifying the in-memory
superblock. A common cause of file system corruption is for the operating system to
crash (for example, due to a power failure) as you are trying to reconcile the memory
superblock to disk.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
sec0
512 bytes = Disk block
sec0
512 bytes SunOS fragment
sec1 1024 bytes
512 bytes
sec2
512 bytes SunOS fragment
sec3 1024 bytes
512 bytes
sec4
512 bytes SunOS fragment
sec5 1024 bytes
512 bytes
sec6
512 bytes SunOS fragment
sec7 1024 bytes
SunOS data block 512 bytes
8192 bytes sec8
512 bytes SunOS fragment
sec9 1024 bytes
512 bytes
sec10
512 bytes SunOS fragment
sec11 1024 bytes
512 bytes
sec12
512 bytes SunOS fragment
sec13 1024 bytes
512 bytes
sec14
512 bytes SunOS fragment
sec15 1024 bytes
512 bytes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
■ Large data blocks make disk transfers much more rapid when
transferring large amounts of data.
✓ Files are stored in fragments of 1024 bytes. Each fragment comprises two contiguous disk
blocks of 512 bytes on the disk.
✓ If only data blocks were used to store files, each file that did not fill a large block to
capacity would waste all of the empty portion of the block, since it could not be allocated
to another file. If this were the case, then this loss of space multiplied by many such files
could cause the amount of disk space lost to be quite high.
■ Using only data blocks, disk space could be wasted with small
files.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
Data block
8192 bytes
1024
bytes
Fragment
File A and file B
share a single fileA fileA fileA fileA fileB fileB fileB Block 1
file system block
Block 2
File A is extended
into the last free fileA fileA fileA fileA fileA fileB fileB fileB Block 1
fragment; file A
needs more space
Block 2
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
■ By using fragments, you can store data from two files in the same
block.
✓ That means data blocks are used more fully. Without fragments, there would be many data
blocks that would be partially empty. Those data blocks would remain empty because the
operating system would not be able to fill them. This would cause a severe waste of disk
space. The operating system does use fragments, and thereby uses the disk more
completely.
■ Files large enough to fill more than one data block are usually
found within the same cylinder group.
✓ A file that needs more disk space, but doesn’t need another block, is allotted fragments
only. If a file grows to require more space than is available in a block it shares with a
second file, the operating system moves all of the data of the file from that block into
another block, to assure that all fragments are in the same block. Files that are large
enough to require more than one data block are usually not contiguous, but scattered
within the cylinder group.
■ In the instance of very large files, each large file is spread across
cylinder groups.
✓ A large file is only allowed 1 Mbyte per cylinder group. This prevents one file from using
an entire cylinder group. The trade-off here is that you only have to perform a long seek
after reading or writing approximately 1 Mbyte.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
File inodes
inode
Permissions Data
Links blocks
and other
Information Indirect
block
2048
0 data
blocks
1
2
3
4
5
6
7
8
9
10
11
12
13
2048
data
blocks
Indirect
block
2048
addresses
Double
indirect
block
2048
addresses
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
- Type of file; regular, character/block special, directory, socket, symbolic link, or named
pipe
- Kernel information
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
inode Table
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
checking filesystems
/dev/rdsk/c0t3d0s6:ZERO LENGTH DIRECTORY I=1632 OWNER=root MODE=40755
/dev/rdsk/c0t3d0s6:SIZE=0 MTIME=May 13 12:46 1992
/dev/rdsk/c0t3d0s6:DIR=/usr/games
WARNING - Unable to repair some of the following filesystems:
/usr
Run fsck manually (fsck filesystem...)
Exit the shell when done to continue the boot process
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
✓ This type of fsck error message might result from drives that are simply powered off.
fsck, having difficulty accessing the drive, reports a problem that may not be a file
system inconsistency.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
fsck Usage
Examples
# fsck -o p /dev/rdsk/c0t3d0s6
# fsck -o p /dev/rdsk/c0t3d0s6
/dev/rdsk/c0t3d0s6: is stable
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Notes
✓ Running fsck without specifying a specific disk, forces all file systems listed in the
/etc/vfstab file to be checked.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
Objectives
■ Divide a disk drive into two partitions (“0” and “6”).
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Lab Exercise
Partitioning a disk using the format utility does not create a file
system. After the partitioning process is completed, you have what is
referred to as a “raw” disk. It is only divided into areas or partitions.
What you do with those areas is the subject of this lab.
Raw Disk
0 6
1
Boot blocks
Partition 0
/ (root)
VTOC
Partition 1
swap Partition 6
/usr
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
1. Use the mount command to show all disks with mounted file
systems.
# mount -p
/dev/dsk/c0t3d0s0 - / ufs - no rw,suid
/dev/dsk/c0t3d0s6 - /usr - - no rw,suid
swap - /tmp tmpfs - no rw
/dev/dsk/c0t1d0s5 - /opt ufs - no suid,rw
__________
__________
__________
__________
__________
Note – These numbers represent disk drives that are in use. Avoid
using these disks in the following lab exercises.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
It is most important during this lab that you do not repartition the
system disk. Refer to Module 10, "Disk Drive Partitioning" as needed.
# format
Select only a disk
Searching for disks...done drive that is not in use.
AVAILABLE DISK SELECTIONS:
0. c0t3d0 <SUN0207 cyl 1254 alt 2 hd 9 sec 36>
/sbus@1,f8000000/esp@0,800000/sd@3,0
1. c0t1d0 <SUN0669 cyl 1614 alt 2 hd 15 sec 54>
/sbus@1,f8000000/esp@0,800000/sd@1,0
2. c0t2d0 <SUN0424 cyl 1151 alt 2 hd 9 sec 80>
/sbus@1,f8000000/esp@0,800000/sd@2,0
Specify disk (enter its number): 2
Note – If you are having any problems, ask your instructor for
assistance.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
10. Run newfs on both of your partitions (you must initialize each
partition separately).
# newfs /dev/rdsk/c0t2d0s0
newfs: construct a new file system /dev/rdsk/c0t2d0s0: (y/n)? y
/dev/rdsk/c0t2d0s0:28188 sectors in 87 cylinders of 9 tracks, 36 sectors
15.5MB in 3 cyl groups (16 c/g, 5.90MB/g, 2688 i/g)
super-block backups (for fsck -F ufs -o -b= #) at:
32, 11632, 23232,
# newfs /dev/rdsk/c0t2d0s6
newfs: construct a new file system /dev/rdsk/c0t2d0s6: (y/n)? y
/dev/rdsk/c0t2d0s6:14094 sectors in 44 cylinders of 9 tracks, 36 sectors
31MB in 6 cyl groups (16 c/g, 5.90MB/g, 2688 i/g)
super-block backups (for fsck -F ufs -o -b= #) at:
32, 11632, 23232,
11. What are the two main items created by the newfs command?
____________________________
____________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
Mount points directories are always made in the root directory and
are owned by root. They are just empty directories until they are
mounted.
# cd /mnt1
# ls
# cd /
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
1. Mount your two new file systems as shown below. You will have
to substitute the ID number of your new disk in the command
lines.
2. Change directory to one of your new file systems and look at it.
# cd /mnt1
# ls
______________________________
Note – If you are having trouble, ask the instructor for assistance.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
You must undo everything you have done so far in this lab so that the
next person will be able to complete this procedure.
# cd /
# umount /mnt1
# umount /mnt2
# rm -r /mnt1 /mnt2
# reboot
Note – If your system will not complete the boot operation, call the
instructor now!!!
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
3. In the data block below, draw the component fragments and disk
blocks (sectors).
c. It stores files
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
1. Use the prtvtoc command to print out the disk label. Record your
output below:
# prtvtoc /dev/dsk/c0t1d0s0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
d. Not much, the boot block can automatically repair itself, but it
takes several hours
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1111 11
1. Execute fsck -op on the /opt partition. Record the output below:
machine name # fsck -o p /opt
2. What is the purpose for using the fsck command (circle all that
apply)?
b. A power failure
4. There are how many inodes for each file in a file system?
a. Two c. Three
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
11
6. The superblock:
c. Is 16 cylinders in length
d. Cannot be corrupted
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
vfstab and vi 12
Objectives
Upon completion of this module, you will be able to:
■ Create a file using the vi text editor and name the file correctly.
■ Create a file using the cp command and name the file correctly.
Evaluation
Complete the lab at the end of this module.
References
SunOS User’s Guide: Getting Started, Part Number 800-3830-10
12-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
# more /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/proc - /proc proc - no -
fd - /dev/fd fd - no -
swap - /tmp tmpfs - yes -
/dev/dsk/c0t3d0s0 /dev/rdsk/c0t3d0s0 / ufs 1 no -
/dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /usr ufs 2 no -
/dev/dsk/c0t3d0s7 /dev/rdsk/c0t3d0s7 /export/home ufs 3 yes -
/dev/dsk/c0t3d0s5 /dev/rdsk/c0t3d0s5 /opt ufs 6 yes -
/dev/dsk/c0t3d0s1 - - swap - no -
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
4. FS type—identifies the file system type; ufs for local file system,
or nfs for remote file systems.
5. fsck pass—describes the order that fsck should run on the file
systems.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Boot Messages
ok boot -v
. . .
. . .
. . .
. . .
The /usr file system (/dev/rdsk/c0t3d0s6) is being checked.
/dev/rdsk/c0t3d0s6: 8604 files, 95916 used, 20899 free
/dev/rdsk/c0t3d0s6: (163 frags, 2592 blocks, 0.1% fragmentation)
/dev/rdsk/s0t3d0s6 FILE SYSTEM STATE SET TO OKAY
The System is coming up. Please wait.
checking filesystems
/dev/rdsk/c0t3d0s5: is stable.
/dev/rdsk/c0t3d0s7: is stable.
/dev/rdsk/c0t3d0s7: mounted
/dev/rdsk/c0t3d0s5: mounted
. . .
. . .
. . .
. . .
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
Flag States
There are three flag states:
3. Dirty—Corruption detected
■ Before the file systems are mounted at boot time, the system
checks to see if the file systems are considered stable by
checking the clean flag in each file system‘s superblock.
Note – If the file systems are not stable, fsck proceeds to run on the
suspect corrupt file system and makes an attempt to fix it.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
■ Interactive
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
■ vi is interactive.
✓ The system immediately translates user requests into actions. This provides users
immediate response to edit commands.
Caution – Make a backup copy of the file you plan to edit, as follows.
!
Command format:
cp<sp>source_file_name<sp>destination_file_name
Example:
# cp /etc/format.dat /tmp/new_format.dat
✓ Although vi edits occur to the temporary file, copying the original and then editing the
copy lets you delete a file that was saved and start over.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Command format:
# vi filename
# vi /tmp/new_format.dat
The screen clears all text before beginning the new editing session and
the cursor is positioned at the top left of the file, as shown in the
example,
#
# @(#)format.dat 1.31 92/07/21 SMI
#
# Copyright (c) 1991 by Sun Microsystems, Inc.
#
# Data file for the ‘format’ program. This file defines the known
# disks, disk types, and partition maps.
#
#
# This is the search path for ‘format’. It contains all the disks that
# will be searched for if no disk list is given on the command line.
#
search_path = xd0, xd1, xd2, xd3, xd4, xd5, xd6, xd7, xd8, xd9, xd10, xd11, \
xd12, xd13, xd14, xd15, xy[0-3], sd[0-7], sd8, sd9, sd1[0-9], \
sd20, id0[0-4][0-7]
#
# This is the list of supported disks for the Xylogics 450/451 controller.
#
disk_type = “Fujitsu-M2312K” \
: ctlr = XY450 : fmt_time = 4 \
: ncyl = 587 : acyl = 2 : pcyl = 589 : nhead = 7 : nsect = 32 \
: rpm = 3600 : bpt = 20480 : bps = 621 : drive_type = 1
“/tmp/new_format.dat” 424 lines, 14127 characters
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
✓ When the sessions begin, the cursor position is at the top left of the file.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
“myfile” [New file]
✓ The tildes flowing down the left margin indicate null areas; these are replaced by text as it
is entered.
✓ The message in the lower-left of the page shows the name of the file and that it is a new
file.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
■ The arrow keys move the cursor in the direction of the arrow.
Up
Left Right
Down
H J K L
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
■ Input mode—In this mode, the keys that you type are
interpreted as text input to the file.
■ Command mode— Sometimes called “edit mode.” In this mode,
the keys that you type are interpreted as commands that let you edit
the file.
■ The arrow keys are found on the right side of the keyboard. The
direction of the arrow determines the direction of cursor
movement.
■ You can also use the lowercase h, j, k, and l to position the cursor.
✓ The arrow keys cannot be defined on various non-Sun keyboards and in certain SunOS
environments. The lower case characters h, j, k, and l are always defined.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Entering Text
a i o
Append Insert Open
■ The o key opens a line for text entry below the cursor:
o #
# Copyright (c) 1991 by Sun Microsystems, Inc.
■ The Shift-o key opens a line for text entry above the cursor:
Press
Shift #ident “@(#)format.dat 1.11 92/08/13 SMI”
#
o # Copyright (c) 1991 by Sun Microsystems, Inc.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
■ a—To enter text when there is existing text, use the append
command.
✓ The a command enters text immediately following the cursor’s position. It is especially
useful at the end of a paragraph or page of text, when another word or sentence needs to
be added.
■ i—To enter text when you begin a new session in vi, use the
insert command.
✓ The i command allows entering text in the first position of a file when that file is new. If
the file was created earlier and there is text already in it, the i insert the text one position
before the cursor’s position. It is especially useful at the beginning of a paragraph or page
of text, when another word or sentence needs to be added.
■ o—To enter text when you need to add another paragraph below
the existing paragraph, use the open command.
✓ The o command allows you to enter a new line in the file by opening a new line below the
present cursor position. The line is now open for new text. It is especially useful at the
end of a paragraph or page of text, when another line needs to be added.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Esc
Escape
#
# @(#)format.dat 1.31 92/07/21 SMI
#
# Copyright (c) 1991 by Sun Microsystems, Inc.
#
# The following entries signify that this file was updated
# on 1 June 1990.
#
# No existing data was changed; these six extra lines were added
# by Zun Wducation.
#
# Data file for the ‘format’ program. This file defines the known
# disks, disk types, and partition maps.
#
#
# This is the search path for ‘format’. It contains all the disks that
# will be searched for if no disk list is given on the command line.
#
search_path = xd0, xd1, xd2, xd3, xd4, xd5, xd6, xd7, xd8, xd9, xd10, xd11, \
xd12, xd13, xd14, xd15, xy[0-3], sd[0-7], sd8, sd9, sd1[0-9], \
sd20, id0[0-4][0-7]
#
# This is the list of supported disks for the Xylogics 450/451 controller.
#
disk_type = “Fujitsu-M2312K” \
: ctlr = XY450 : fmt_time = 4 \
: ncyl = 587 : acyl = 2 : pcyl = 589 : nhead = 7 : nsect = 32 \
: rpm = 3600 : bpt = 20480 : bps = 621 : drive_type = 1
Esc
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
To return to command mode from input mode, press the Escape key.
✓ The only way to exit the Input mode is with the Escape key.
✓ Whenever you are in doubt if you are in input mode or not, press the Escape key. If you
are not in input mode, the display flashes and gives an audible tone—signifying that the
Escape key has already been pressed.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Deleting Text
#
# @(#)format.dat 1.31 92/07/21 SMI
# Copyright (c) 1991 by Sun Microsystems, Inc.#
#
# The following entries signify that this file was updated
# on 1 June 1990.
# No existing data was changed; these six extra lines were added
# by Zun Wducation.
#
x
#
# @(#)format.dat 1.31 92/07/21 SMI
# Copyright (c) 1991 by Sun Microsystems, Inc.#
#
# The following entries signify that this file was updated
# on 1 June 1990.
# No existing data was changed; these six extra lines were added
# by Zun Wducation.
#
d + d
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
In input mode, you can delete text in only one way, by backspacing.
✓ The backspace key deletes a single character each time it is pressed.
✓ You can enter a numeral before the lowercase x to delete more than one character. For
example, typing 5x would delete five characters.
✓ In the example, the year 1990 is incorrect; you would use the lowercase x to delete the
incorrect character (in this case the 0 [zero]) then insert the correct character (3).
✓ You can enter a numeral then lowercase dd to delete more than one line. For example,
typing 10dd would delete ten lines.
✓ In the example, the line “#by Zun Wducation.” is incorrect; you would use the
lowercase dd to delete the complete line and then insert the correct line
(#by Sun Education.).
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Undoing a Change
■ A line is deleted:
#
# @(#)format.dat 1.31 92/07/21 SMI
# Copyright (c) 1991 by Sun Microsystems, Inc.#
#
# The following entries signify that this file was updated
# on 1 June 1990.
# No existing data was changed; these six extra lines were added
# by Zun Wducation.
#
d + d
#
# @(#)format.dat 1.31 92/07/21 SMI
# Copyright (c) 1991 by Sun Microsystems, Inc.#
#
# The following entries signify that this file was updated
# on 1 June 1990.
# by Zun Wducation.
#
#
# @(#)format.dat 1.31 92/07/21 SMI
# Copyright (c) 1991 by Sun Microsystems, Inc.#
#
# The following entries signify that this file was updated
# on 1 June 1990.
# No existing data was changed; these six extra lines were added
# by Zun Wducation.
# u
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
■ The lowercase u reverses any text change done just prior to using
the u.
✓ After making any change to the text, using the lowercase u by itself restores the file to the
state it was before the change was made.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Exiting vi
#
# @(#)format.dat 1.31 92/07/21 SMI
#
# Copyright (c) 1991 by Sun Microsystems, Inc.
#
# The following entries signify that this file was updated
# on 1 June 1993.
#
# No existing data was changed; these six extra lines were added
# by Sun Education.
#
# Data file for the ‘format’ program. This file defines the known
# disks, disk types, and partition maps.
#
#
# This is the search path for ‘format’. It contains all the disks that
# will be searched for if no disk list is given on the command line.
#
search_path = xd0, xd1, xd2, xd3, xd4, xd5, xd6, xd7, xd8, xd9, xd10, xd11, \
xd12, xd13, xd14, xd15, xy[0-3], sd[0-7], sd8, sd9, sd1[0-9], \
sd20, id0[0-4][0-7]
#
# This is the list of supported disks for the Xylogics 450/451 controller.
#
disk_type = “Fujitsu-M2312K” \
: ctlr = XY450 : fmt_time = 4 \
: ncyl = 587 : acyl = 2 : pcyl = 589 : nhead = 7 : nsect = 32 \
: rpm = 3600 : bpt = 20480 : bps = 621 : drive_type = 1
:q
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
✓ If the disk is not updated with the changes and additions, vi complains.
✓ The exclamation point functions only since the last write was made.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Saving Text
Shift : W
then type
+ ; lowercase
#
# @(#)format.dat 1.31 92/07/21 SMI
#
# Copyright (c) 1991 by Sun Microsystems, Inc.
#
# The following entries signify that this file was updated
# on 1 June 1993.
#
# No existing data was changed; these six extra lines were added
# by Sun Education.
#
# Data file for the ‘format’ program. This file defines the known
# disks, disk types, and partition maps.
#
#
# This is the search path for ‘format’. It contains all the disks that
# will be searched for if no disk list is given on the command line.
#
search_path = xd0, xd1, xd2, xd3, xd4, xd5, xd6, xd7, xd8, xd9, xd10, xd11, \
xd12, xd13, xd14, xd15, xy[0-3], sd[0-7], sd8, sd9, sd1[0-9], \
sd20, id0[0-4][0-7]
#
# This is the list of supported disks for the Xylogics 450/451 controller.
#
disk_type = “Fujitsu-M2312K” \
: ctlr = XY450 : fmt_time = 4 \
: ncyl = 587 : acyl = 2 : pcyl = 589 : nhead = 7 : nsect = 32 \
: rpm = 3600 : bpt = 20480 : bps = 621 : drive_type = 1
:w
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
■ Always escape the input mode before trying to save your file.
✓ Saving your work writes the temporary file over the original file and any changes you have
made to it. The cursor stays positioned after the w until the Return key is pressed.
:w new_file_name
✓ The file new_file_name is created and saved, but you are still in the original file.
■ The file can be written and quit at the same time with :wq.
✓ To save time, couple the two commands before leaving vi.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Removing Files
# rm myfile
# rm myfile /tmp/new_format.dat
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Notes
✓ There is no limit to the number of files removed at one time; however, the character limit
of a line is 255.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Lab—vfstab and vi
Objectives
The purpose of this lab is to learn to:
■ Divide a disk drive into three partitions (“a,” “g,” and “h”).
■ Edit the /etc/vfstab file and add the new file system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Lab Exercise
1. Use the mount command to show all disks with mounted file
systems.
# mount -p
/dev/dsk/c0t3d0s0 - / ufs - no rw,suid
/dev/dsk/c0t3d0s6 - /usr - - no rw,suid
swap - /tmp tmpfs - no rw
/dev/dsk/c0t1d0s5 - /opt ufs - no suid,rw
__________
__________
__________
__________
__________
Caution – These numbers represent disk drives that are in use. Avoid
! using these disks in the following lab exercises.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t3d0 <SUN0207 cyl 1254 alt 2 hd 9 sec 36>
/sbus@1,f8000000/esp@0,800000/sd@3,0
1. c0t1d0 <SUN0669 cyl 1614 alt 2 hd 15 sec 54>
/sbus@1,f8000000/esp@0,800000/sd@3,0
2. c0t2d0 <SUN0424 cyl 1151 alt 2 hd 9 sec 80> Select only
/sbus@1,f8000000/esp@0,800000/sd@2,0 a disk drive
Specify disk (enter its number): 2 that is not
in use
10. Exit the Partition menu, and then exit the format utility.
Note – If you are having any problems, ask the Instructor for
assistance.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
1. Run newfs on all three of your partitions (you must initialize each
partition separately).
# newfs /dev/rdsk/c0t2d0s0
newfs: construct a new file system /dev/rdsk/c0t2d0s0: (y/n)? y
/dev/rdsk/c0t2d0s0:28188 sectors in 87 cylinders of 9 tracks, 36 sectors
15.5MB in 3 cyl groups (16 c/g, 5.90MB/g, 2688 i/g)
super-block backups (for fsck -F ufs -o b= #) at:
32, 11632, 23232,
# newfs /dev/rdsk/c0t2d0s3
...
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
6. Type in one line as shown below, press Return, and type the
second entry, press Return, and add the third entry.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Verify that the vfstab changes work before re-booting your system
using the following procedure.
2. Did the new partitions you set up appear with the mount
command?
# mountall
5. Did the new partitions you set up appear with the mount
command?
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
# reboot
7. Did the new partitions show up while the file system checks were
being done?
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Lab—Finishing Up
You must undo everything you have done so far in this lab so the next
person will be able to complete this procedure.
# umount /mnt1
# umount /mnt1
# umount /mnt2
2. Use the vi editor to remove the three lines you added to vfstab in
/etc.
Note – If your system will not complete the boot operation, call your
instructor.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1212 12
Completing this optional exercise will give you more practice in vi.
1 dash of humor
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
12
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Kernel Configuration 13
Objectives
Evaluation
References
13-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
Kernel Connections
Let me see,
I will use the
mouse . . .
/dev/mouse
/devices/pseudo/consms:mouse
Device tables
KERNEL
Device driver:
pseudo-device ms # mouse support
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Notes
When a program references a device file, the kernel automatically traps the reference,
looks up the appropriate function name in the table, and transfers control to it.
✓ In the example:
- the /dev directory has a device file called mouse
- the /dev/mouse file has pointers to the /device/pseudo/consms:mouse file.
- the /devices/pseudo/consms:mouse file has pointers to the device tables stored in
the memory resident kernel
- the device tables contain pointers to ms
- ms is the device driver for the mouse that was included in the kernel when it was
compiled
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
Autoconfiguration Process
/kernel /usr/kernel
nfs module
streams module
ufs module
/kernel/unix
driver module
static core
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Notes
■ At boot time, the system does a self-test and checks for all devices
that are attached to it (as described in the previous lesson).
✓ The kernel then configures itself dynamically, loading its modules, as needed, into
memory. Then, a device driver is loaded when a device is accessed, such as the tape
device. This process is called autoconfiguration because all kernel modules are loaded
automatically when needed.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
drv
exec
fs
kernel misc
sched
strmod
sys
unix
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Notes
✓ /kernel/fs – Contains file system modules such as ufs, nfs, and proc.
✓ /kernel/sys – Contains loadable system calls, such as those involved with semaphore
operation.
✓ Modules that can be shared across platforms, such as the audio driver.
✓ Both the /kernel and /usr/kernel directories are used to load modules during the boot
procedure.
■ If a module is not loaded at boot time, you can load it later when a
service is requested.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
Reconfiguring Devices
ok boot -rv
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
# dmesg
Jul 13 23:59
SunOS Release 5.2 Version Generic [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1993, Sun Microsystems, Inc.
mem = 24576K (0x1800000)
avail mem = 22458368
Ethernet address = 8:0:20:a:83:c2
root nexus = Sun 4_65
sbus0 at root: obio 0xf8000000
dma0 at sbus0: SBus slot 0 0x400000
esp0 at sbus0: SBus slot 0 0x800000 SBus level 3 sparc ipl 3
sd1 at esp0: target 1 lun 0
sd1 is /sbus@1,f8000000/esp@0,800000/sd@1,0
<Quantum ProDrive 105S cyl 974 alt 2 hd 6 sec 35>
sd2 at esp0: target 2 lun 0
sd2 is /sbus@1,f8000000/esp@0,800000/sd@2,0
<Quantum ProDrive 105S cyl 974 alt 2 hd 6 sec 35>
sd3 at esp0: target 3 lun 0
sd3 is /sbus@1,f8000000/esp@0,800000/sd@3,0
<SUN0207 cyl 1254 alt 2 hd 9 sec 36>
sd6 at esp0: target 6 lun 0
sd6 is /sbus@1,f8000000/esp@0,800000/sd@6,0
<>
root on /sbus@1,f8000000/esp@0,800000/sd@3,0:a fstype ufs
zs0 at root: obio 0xf1000000 sparc ipl 12
zs0 is /zs@1,f1000000
zs1 at root: obio 0xf0000000 sparc ipl 12
zs1 is /zs@1,f0000000
cgthree0 at sbus0: SBus slot 3 0x0 SBus level 5 sparc ipl 7
cgthree0 is /sbus@1,f8000000/cgthree@3,0
cgthree0: resolution 1152 x 900
dump on /dev/dsk/c0t3d0s1 size 40648K
Jul 13 21:01:49 sendmail[152]: network daemon starting
pseudo-device: vol0
vol0 is /pseudo/vol
fd0 at root: obio 0xf7200000 sparc ipl 11
fd0 is /fd@1,f7200000
st4 at esp0: target 4 lun 0
st4 is /sbus@1,f8000000/esp@0,800000/st@4,0
st4:<Archive QIC-150>
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Notes
■ When the Solaris software boots, the kernel locates all existing
hardware devices and interfaces.
■ Unless you use the -v option at boot time, none of the device
configuration process is shown.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Notes
✓ The disk and tape device instance names correspond to possible address locations on the
SCSI host adapter, which are called target addresses. Assigning target address locations
is how the system distinguishes different devices connected to the same interface.
✓ The driver not attached message means that no driver for that device is in use at the
time the prtconf command is issued, or there is no driver for that device instance.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
Lab—Kernel Configuration
Overview
To complete this lab, you will need one Sun SPARCstations, a pen or
pencil, and this module, “Kernel Configuration.”
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Lab Exercise
3. Verify that all peripheral enclosures are powered on. If you find
any powered off, power them on.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
# dmesg
Jul 13 23:59
SunOS Release 5.2 Version Generic [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1993, Sun Microsystems, Inc.
mem = 24576K (0x1800000)
avail mem = 22458368
Ethernet address = 8:0:20:a:83:c2
root nexus = Sun 4_65
sbus0 at root: obio 0xf8000000
dma0 at sbus0: SBus slot 0 0x400000
esp0 at sbus0: SBus slot 0 0x800000 SBus level 3 sparc ipl 3
sd1 at esp0: target 1 lun 0
sd1 is /sbus@1,f8000000/esp@0,800000/sd@1,0
<Quantum ProDrive 105S cyl 974 alt 2 hd 6 sec 35>
sd2 at esp0: target 2 lun 0
sd2 is /sbus@1,f8000000/esp@0,800000/sd@2,0
<Quantum ProDrive 105S cyl 974 alt 2 hd 6 sec 35>
sd3 at esp0: target 3 lun 0
sd3 is /sbus@1,f8000000/esp@0,800000/sd@3,0
<SUN0207 cyl 1254 alt 2 hd 9 sec 36>
sd6 at esp0: target 6 lun 0
sd6 is /sbus@1,f8000000/esp@0,800000/sd@6,0
<>
root on /sbus@1,f8000000/esp@0,800000/sd@3,0:a fstype ufs
zs0 at root: obio 0xf1000000 sparc ipl 12
zs0 is /zs@1,f1000000
zs1 at root: obio 0xf0000000 sparc ipl 12
zs1 is /zs@1,f0000000
cgthree0 at sbus0: SBus slot 3 0x0 SBus level 5 sparc ipl 7
cgthree0 is /sbus@1,f8000000/cgthree@3,0
cgthree0: resolution 1152 x 900
dump on /dev/dsk/c0t3d0s1 size 40648K
Jul 13 21:01:49 sendmail[152]: network daemon starting
pseudo-device: vol0
vol0 is /pseudo/vol
fd0 at root: obio 0xf7200000 sparc ipl 11
fd0 is /fd@1,f7200000
st4 at esp0: target 4 lun 0
st4 is /sbus@1,f8000000/esp@0,800000/st@4,0
st4:<Archive QIC-150>
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Note – This output displays devices the system polled at boot time.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
# prtconf
System Configuration: Sun Microsystems sun4c
Memory size: 24 Megabytes
System Peripherals (Software Nodes):
Sun 4_65
options, instance #0
zs, instance #0
zs, instance #1
fd, instance #0
audio (driver not attached)
sbus, instance #0
dma, instance #0
esp, instance #0
sd (driver not attached)
st (driver not attached)
sd, instance #0 (driver not attached)
sd, instance #1
sd, instance #2
sd, instance #3
sd, instance #4 (driver not attached)
sd, instance #5 (driver not attached)
sd, instance #6
st, instance #0 (driver not attached)
st, instance #1 (driver not attached)
st, instance #2 (driver not attached)
st, instance #3 (driver not attached)
st, instance #4
st, instance #5 (driver not attached)
st, instance #6 (driver not attached)
le (driver not attached)
cgthree, instance #0
auxiliary-io (driver not attached)
interrupt-enable (driver not attached)
memory-error (driver not attached)
counter-timer (driver not attached)
eeprom (driver not attached)
pseudo, instance #0
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
Lab—Un-configuring Devices
1. Now power off all CD-ROMs and SCSI tape devices that are in
lunch boxes.
5. Using the dmesg command, compare the current listing with the
listing you did for the previous exercise.
________________________________________________________
6. Using the prtconf command, compare the current listing with the
one you did several pages back.
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1313 13
Lab—Reconfiguring Devices
1. Now, power on all CD-ROMs and SCSI tape devices that are in
lunch boxes.
5. Using the dmesg command, compare the current listing with the
one you did in the previous exercise.
________________________________________________________
6. Using the prtconf command, compare the current listing with the
listing you did in the previous exercise.
________________________________________________________
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
13
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Device Nodes 14
Objectives
Upon completion of this module, you will be able to:
Evaluation
Complete the lab at end of this module.
References
UNIX System Administration Handbook by Nemeth, Snyder, and Seebass
(Prentice Hall Inc., 1989)
14-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Reset Reset
Script files
Login
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
■ The block diagram shows all of the major components that are
involved during a system boot.
✓ This lecture focuses on each of the general areas and explains them in more detail.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Resulting Output
Selftest Completed
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
bootblk
Next 15 sectors
Disk label
first sector
Slice 0 (root)
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
✓ This list is created by the installboot program during the boot block installation process.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
■ The kernel first identifies the system type and available memory.
✓ The size: numbers are program information and represent the number of instructions
loaded, assigned data, and un-assigned data.
■ The kernel loads device drivers and probes for system devices.
■ There must also be an entry in the /dev directory for each device
expected.
✓ Each expected device must be enabled in the kernel configuration file when the kernel is
initially built.
✓ There must also be an entry for each device in the /devices directory. If the entries are
not there, the device will be seen during a boot but cannot be used.
✓ If an entry for a device is missing in the /dev or /devices directory, reboot with the -r
option.
✓ Only devices that are present in the /devices directory show additional information at
boot time.
✓ The only disks that are present in the example shown are:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Resulting Output
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
■ After the kernel probes the system for devices, a series of script
files are executed that start up additional system software that
may be required.
✓ All of the script files reside in the /etc directory.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Command requiring
device access
/dev
Logical device pointers
/devices
Physical device pointers
Kernel
Device drivers
for the system
Device
Disk, tape
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
■ Device access
✓ A device is a piece of hardware that performs a specific function.
■ Device drivers
✓ The operating system communicates to devices by way of device drivers, which are
program modules in the kernel.
■ Kernel
✓ The kernel is the master program of system software that manages all the physical
resources of a workstation.
■ Device files
✓ Users access hardware devices by using device files. A device file is a special type of file
that allows Solaris software programs to read from and write to devices.
✓ A character (or “raw”) device file is an interface for devices that transfer individual
characters rather than blocks of characters. Devices like terminals and printers use the
character device file interface.
✓ A block device file is an interface for devices that transfer blocks of characters. Disk and
CD-ROM devices use a block device interface.
✓ Both character and block disk device pointers are stored in the /dev directory.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
■ Instance names
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
■ Instance names
✓ Instance names are abbreviations for the physical device names, and are also created
when the kernel identifies the device for the first time.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Bus-Oriented Controllers
/dev/[r]dsk/cwtxdysz
Controller number
Target number
Disk number
Slice or partition number
# ls -l /dev/dsk/c0t3d0s0
/dev/dsk/c0t3d0s0 ->
/devices/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/sd@3,0:a
Disk
# ls -l /dev/rmt/0
/dev/rmt/0 ->
/devices/iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000/[email protected]
Tape
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
Bus-Oriented Controllers
Sun systems use the following naming convention to describe the
logical device name for a disk device connected to a bus-oriented
controller (SCSI and IPI):
✓ Logical device names are located in the /dev directory and are symbolically linked to their
corresponding physical device names in the /devices directory.
■ Controller number
✓ Controller (or interface) numbers, such as c0, c1, and c3, are automatically assigned in
sequential order to each interface card.
✓ If your system has a built-in SCSI interface, the operating system automatically assigns a
0 (zero) to that card. Therefore, any disk drive that is connected to the built-in SCSI card
will have a device address that starts with c0. Controller number c1 would correspond to
a second SCSI host adapter (or esp@1) which is explained under the Physical Disk Device
Names Review section of this lesson.
■ Target address
✓ Target addresses such as t0, t1, and t3 correspond to the address switch setting that is
selected for each device. An external disk drive has an address switch located on the rear
panel.
■ Disk number
✓ The disk number is always set to d0 for any embedded SCSI device or IPI disk.
✓ Disk devices are accessed by their logical device names, and this name must include the
slice number. Disks cannot be accessed by just their controller/disk/target
designation.
✓ Note the contents of the /dev/dsk directory contains the logical device names of the
system’s disk devices and partitions.
Direct Controllers
✓ Disks connected to direct (or non-bus oriented) controllers such as the Xylogics™ 451 or
7053, do not have a target number in their logical device name.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
SS2
sbus obio
sd0 sd1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
■ The topmost object in the hierarchy is called the root node of the
device information tree.
✓ An intermediate object below the root node has a device driver associated with it, and is
called a leaf or bus nexus node.
✓ The kernel uses the information in this device tree to associate drivers with their
appropriate devices, and provides a set of pointers to the nodes (or drivers) that perform
specific operations.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
/devices/sbus@1,.../esp@0,.../sd@3,0:a
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
✓ The ellipses (...) represent the virtual memory address of the corresponding device.
✓ The above example describes the first SCSI disk (target address 3) connected to the first
SCSI host adapter.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
✓ In the Solaris 2.x computing environment, the instance name is bound to the physical
name by references in the /etc/path_to_inst file.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
Command format:
# prtconf
✓ The disk and tape device instance names correspond to possible address locations on the
SCSI host adapter, which are called target addresses. Assigning target address locations
is how the system distinguishes different devices connected to the same interface.
✓ The driver not attached message means that no driver for that device is in use at the time
the prtconf command is issued, or there is no driver for that device instance.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Controller ID [c0]
Target ID [t3] Logical name
Disk ID [d0]
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
- The disk’s logical device name is implied (Ex. esp0 [c0] target 3 [t3] lun 0
[d0] = c0t3d0).
- The disk’s marketing name and details about the disk’s geometry.
✓ The Solaris 2.2 software dmesg command is okay to use to display device information
unless the sendmail daemon is active. In that case, the output displays sendmail
daemon messages and has no device information to display.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
[mount -p]
# cd /data2/list /dev/dsk/c0t2d0s6 - /data2 ufs - no suid rw
c0t2d0
s0
s1
s3
s4 superblock, cylinder group(s), inode tables
s5 and inodes for file system sd2g [data2]
s6
s7
# pwd
/data2/list
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Notes
1. The system examines the mount table and finds that /data2 is
located at /dev/dsk/c0t2d0s6.
5. The number 24 tells the driver that the particular device is the first
partition (a), on the third possible SCSI disk (sd2).
6. /devices/sbus@1,f8000000/esp@0,800000/sd@2,0:g
is a block device, so there is a superblock in memory for /data2.
8. When you execute the pwd command, the desired directory path is
given.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Lab—Device Nodes
Overview
Note – For the purpose of this lab, manipulate only the tape drive
entries.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Lab Exercise
Note – dmesg shows you which devices that the kernel communicated
with are available at boot time.
st4 st5
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
1. Verify the tape drive you inserted the tape into by typing the
following: (st4 is /dev/rmt/0 and st5 is /dev/rmt/1)
This response implies that the device link, device node, device
driver, and a tape drive with a tape loaded all communicate.
This response implies that the device link, device node, device
driver, and a tape drive without a tape loaded all communicated
or that there is no tape drive available.
This response implies that only the device link and device node
were available; no device driver was available in kernel memory.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
Lab—Device Links
1. Now that we know which tape drive we are using, let’s look at the
various tape device links.
#rm /dev/rmt/*
#ls -l
_________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Lab—Device Links
# mt -f /dev/rmt/0 status
________________________________________________________
________________________________________________________
________________________________________________________
Why? __________________________________________________
________________________________________________________
________________________________________________________
10. Use the prtconf command. Does it show that the device drivers
are loaded for st4? Yes No
11. To re-create the device links for tape drive st4, type:
# halt
ok boot -rv
13. List the directory. Are all of the device links back? Yes No
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
(Should be /devices/sbus@1,f8000000/esp@0,800000)
4. Now that you know which tape drive you are using, type the
following to look at the various tape device nodes:
# ls -l *st*
# rm *st*
# ls -l *st*
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
# mt -f /dev/rmt/0 status
________________________________________________________
________________________________________________________
________________________________________________________
c. Why? __________________________________________________
________________________________________________________
________________________________________________________
9. Use the prtconf command. Does it show that the device drivers
are loaded for st4? Yes No
10. To re-create the device nodes for tape drive st4, type:
# halt
ok boot -rv
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1414 14
13. If you booted the system with certain devices powered off, what
would the prtconf file tell you about the device drivers?
________________________________________________________
________________________________________________________
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
14
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Run Control (rc) Scripts 15
Objectives
Upon completion of this module, you will be able to:
Evaluation
Complete the lab at the end of this module.
References
SunOS Reference Manual, Part Number 800-3827-10
15-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
System Startup
Resulting Output
ok boot -v
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
3. The boot PROM directs the system to the location of the boot
blocks.
4. The boot blocks call in the boot file /ufsboot for sd0a.
8. The kernel then describes the location of the root file system, the
swap partition, and the dump device.
✓ The first process started is the swapper, which handles the transactions between RAM
and swap.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
Script files:
rc0 rc5
rc1 rc6
rc2 rcS
rc3
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Reboot 6
Interactive reboot 5
Unused 4
Full multiuser mode 3
Multiuser mode without resources 2
Single-user mode S, s
Single-user mode without /export/home 1
Power-down mode 0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
Run Level 3
Run level 3 is also known as full multiuser mode.
✓ It is a system’s default run level, which is the default state of the system.
✓ All system processes are running, file resources are available for mounting (if the
machine is a server), and users can log in.
Run Level 2
Run level 2 is a multiuser mode without remote resources available.
✓ All daemons are running except for remote file-sharing daemons.
Run Level s, S
Run level S is single-user mode.
✓ Run level S is a special level where:
- The operating system is running, but all users are logged out, and most system
processes, such as print and mail, are not running.
✓ Run level S is convenient for doing backups, because all data is stable since no users are
logged in.
✓ Run level 1 is different in Solaris 2.2 software. It is exactly the same as run level S, except
that /export/home is not mounted.
Run Level 0
Run level 0 shuts down the system so that it is safe to turn off the
power.
Run Level 6
Run level 6 is used to halt the system to run level 0 and then reboot it
to run level 3.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Boot Sequence
/etc/inittab initdefault
/sbin/autopush
/sbin/rcS /etc/rcS.d/S*
/sbin/rc2 /etc/rc2.d/K*,S
/sbin/rc3 /etc/rc3.d/K*,S*
/usr/lib/saf/sac
/usr/lib/saf/ttymon
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
1. The init process looks in the inittab file for the initdefault
entry, which is set to run level 3.
2. The init process executes the commands (or scripts) for entries
that have sysinit in the action fields, such as /sbin/autopush
and /sbin/rcS.
Then, it executes the scripts for any entry that has a 3 in the
rstate field, such as the /sbin/rc2, /sbin/rc3,
/usr/lib/saf/sac, and /usr/lib/saf/ttymon executables.
✓ The sac and ttymon processes are used to provide login services for the console and
other TTY devices.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
rcS
rc0
rc1
/sbin rc2
rc3 rcS
rc5 rcS.d
rc6 rc0
rc0.d
rc1
rc1.d
/etc
rc2
rc2.d
rc3 S15nfs.server
rc3.d
S21rfs
rc5
rc6 nfs.server
init.d rfs
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Single-User
root fs /dev/dsk/c0t3d0s0
usr fs
/dev/dsk/c0t3d0s6
# mount -p
/dev/dsk/c0t3d0s0 - / ufs - no rw
/dev/dsk/c0t3d0s6 - /usr ufs - no rw
/proc - /proc proc - no rw
fd - /dev/fd fd - no rw
swap - /tmp tmpfs - no rw
Multiuser
root fs /dev/dsk/c0t3d0s0
# mount -p
/dev/dsk/c0t3d0s0 - / ufs - - no rw
/dev/dsk/c0t3d0s6 - /usr ufs - no rw
/proc - /proc proc - no rw
fd - /dev/fd fd - no rw
swap - /tmp tmpfs - no rw
/dev/dsk/c0t3d0s4 - /home ufs - no rw
/dev/dsk/c0t3d0s5 - /usr2 ufs - no rw
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
■ The root (/) and superuser (/usr) file systems are mounted at
single-user level.
✓ The other file systems are not automatically mounted at single-user. File systems are
easier to work on when they are not mounted and no activity is taking place on them, this
is the reason for all file systems being unmounted except / and /usr.
✓ All commands and utilities that only require the / and /usr file systems are available.
■ All file systems are mounted and ready for use at multiuser level.
✓ Any authorized user can log onto the machine when it is at multiuser level.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Booting Single-User
or . . .
ok boot -s
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
■ The -s is the universal option for the boot command that forces
the system to boot in single-user mode.
✓ Example: ‘>b -s’ is equivalent to ‘ok boot -s.’
✓ The init process reads the -s and puts the system in single-user mode.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Resulting Output
ok boot -sv
Rebooting with command: -sv
Boot device: /sbus/esp@0,800000/sd@3,0 File and args: -sv
Size: 618912+118756+45904 Bytes
SunOS Release 5.1 Version Generic [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1992, Sun Microsystems, Inc.
mem = 16384K (0x1000000)
avail mem = 14077952
Ethernet address = 8:0:20:c:10:d3
root nexus = SUNW,Sun 4_50
sbus0 at root: obio 0xf8000000
dma0 at sbus0: SBus slot 0 0x400000
esp0 at sbus0: SBus slot 0 0x800000 SBus level 3 sparc ipl 3
sd3 at esp0: target 3 lun 0
sd3 is /sbus@1,f8000000/esp@0,800000/sd@3,0
<SUN0207 cyl 1254 alt 2 hd 9 sec 36>
sd6 at esp0: target 6 lun 0
sd6 is /sbus@1,f8000000/esp@0,800000/sd@6,0
<>
root on /sbus@1,f8000000/esp@0,800000/sd@3,0:a fstype ufs
swap on swapfs fstype swapfs size 13420K
zs0 at root: obio 0xf1000000 sparc ipl 12
zs0 is /zs@1,f1000000
zs1 at root: obio 0xf0000000 sparc ipl 12
zs1 is /zs@1,f0000000
Hostname: SUNIPX
dump on /dev/dsk/c0t3d0s1 size 32872K
INIT: Single user mode
Type ctrl-d to proceed with normal startup
(or give root password for system maintenance): <cr>
Entering system maintenance mode
SunOS Release 5.2 Version Generic [UNIX(R) System V Release 4.0]
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
■ The /sbin/init looks to see if the -s option was used in the boot
command.
✓ The loadkeys function determines the correct function of such keys as the: Shift, Caps
Lock, Control, and Num Lock, among others.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Resulting Output
#
# exit
INIT: New run level: 3
The system is coming up. Please wait.
checking filesystems
/dev/rdsk/c0t3d0s5: is clean.
/dev/rdsk/c0t3d0s7: is clean.
/dev/dsk/c0t3d0s7 mounted
/dev/dsk/c0t3d0s5 mounted
starting routing daemon.
starting rpc services: rpcbind keyserv kerbd done.
Setting default interface for multicast: add net 224.0.0.0: gateway
sparc
Print services started.
volume management starting
syslog service starting.
The system is ready.
Pseudo-device: vol0
vol0 is /pseude/vol
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
✓ Always run fsck manually on all remaining file system prior to exiting single-user.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Resulting Output
# shutdown
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
Command format:
# shutdown
✓ The characteristics of the shutdown command are:
- It notifies logged-in users and hosts mounting remote resources with a warning
message to logout. It also sends a final message that a shutdown is coming.
- It asks for confirmation before it starts shutting the system down, unless the -y option
is used.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
# halt
# reboot
# sync
ok sync
ok sync
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
■ While booted, if the system crashes or the keys “Stop-A” are used,
you can synchronize the superblock from the PROM level.
✓ This only works if the operating system was booted.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Stop A
+
L1
■ Uniprocessor desksides/datacenters
Abort at PC 0xFFE9585C
> c <<cr>><<cr>>
To sync the superblock and avoid corruption after an abort, use the
following commands:
■ Uniprocessor desksides/datacenters
Abort at PC 0xFFE9585C
> g0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Notes
✓ The BREAK key is used on systems with an ASCII terminal as the console.
■ The c and the g0 allow you to return to the program you left
when the system was abruptly halted.
✓ c and go resume execution of a program at the same point you left it. They are executed
at the PROM level.
■ Both the g0 and sync help avoid file system corruption after an
abort.
✓ When the monitor level environment is running as a result of the system being
interrupted, these commands force a panic and produce a sync. They are executed at the
PROM level.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Lab—Software Boot
Overview
The purpose of this lab is to:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
Lab Exercise
1. Log in as root. Execute a reboot on the system. Record your
command line below:
System response:
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
3. When the system responded to the reboot, what did the reboot
command do?
d. System echoed: #
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
System response:
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
6. What did the halt command cause (or not cause) to happen when
it was executed (circle all that apply)?
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
4. Type a mount to see what file systems are mounted. Record your
command line and the system responses below:
System response:
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
7.
Type the shutdown command. Record your command line and
system responses below:
System response:
______________________________________
______________________________________
______________________________________
______________________________________
8. What did the shutdown command cause (or not cause) to happen
when it was executed (circle all that apply)?
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1515 15
_____ The system goes to the PROM and stays there until
rebooted.
_____ init 0
_____ init s
_____ init 6
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
15
Lab—System Aborts
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Network Terminology 16
Objectives
Upon completion of this module, you will be able to:
Evaluation
Complete the lab at the end of this module.
References
System and Network Administration, Part Number 800-3805
16-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Network
■ Local area network (LAN)
■ Remote network
Media
■ Coaxial cable (Sun Ethernet)
■ Twisted-pair cable
■ Fiber-optic cable
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
■ Remote network
✓ A network consisting of a group of machines geographically some distance away from the
LAN.
■ Coaxial cable
✓ Coaxial cable is stiff, hard to bend around corners, gives good noise resistance, and
provides fairly long distances. Connecting to the cable is fairly easy.
■ Twisted-pair cable
✓ Twisted-pair cable is inexpensive, bends easily, is susceptible to noise, and provides
fairly short distances. Connection to the cable is usually done in a wiring closet, using a
hub or concentrator.
■ Fiber-optic cable
✓ Fiber-optic cable is expensive but it is extremely noise-resistant and provides very high
speeds.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
■ Bus
■ Broadcast
■ Best-effort
■ Packet-switching
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
■ Ethernet
✓ Ethernet is a name given to a popular local area, packet-switching network invented by
Xerox in 1973. It is a 10-megabit per second (megabits/s) broadcast bus technology with
best-effort delivery and distributed access control.
✓ The Ethernet built into Sun Workstations adheres to the IEEE 802.3 standard.
■ Bus
✓ All stations share a single wire.
✓ Advantages are:
- distributed intelligence
- ease of installation
- ease of configuration
■ Broadcast
✓ All stations see every transmission.
■ Best-effort
✓ Sender is not notified when a frame is received; however, frames are not arbitrarily
discarded.
✓ If the Ethernet is quiescent, it transmits the frame immediately, otherwise it waits until the
cable is idle.
✓ If two or more workstations simultaneously begin transmitting, a collision results.
✓ All stations terminate transmission, wait a random amount of time, and try again.
✓ Stations use a binary exponential backoff algorithm to prevent multiple collisions. After 16
attempts to deliver a frame, the station reports failure with an “Ethernet jammed”
message.
■ Packet-switching
✓ All transmissions on the Ethernet are divided into packets (called frames) that are
multiplexed onto the network cable. Each frame contains identification that enables the
hosts connected to the Ether to determine the source and destination.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Ethernet Interface
Coaxial cable
Transceiver box
Transceiver
cable
Ethernet
control
logic
Ethernet data
link controller
ID PROM/
NVRAM
Byte-swapped
SPARC
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Network Hardware
Node
Transceiver cable
Maximum length = 50 meters
Node
Node
Node
Multiplexor
(Mux) box
Node
Node Node
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
■ Coaxial cable
✓ Forms the backbone of the Ethernet system.
■ Thicknet
✓ Ethernet traditionally uses “Thicknet,” coaxial cable, which is a modified version of RG-8
coaxial cable. Frequently referred to as “yellow cable,” there is a teflon version for use in
plenums. Recent developments include use of Thinnet and twisted pair.
✓ The signal on Ethernet is digital. Bits are transmitted in order, left to right, and appear as
a 5MHz periodic waveform on the cable.
- Marked in 2.5-meter segments for taps to obtain the clearest signal.
- Ends are terminated with 50-ohm terminators to prevent signal reflection and provide
a balanced electrical load.
■ Transceiver box
✓ Provides electrical isolation between the coaxial cable and the transceiver cable. Also
called a Media Access Unit (MAU).
■ Transceiver cable
✓ Connects the controller to the transceiver tap on the coaxial cable or to a multiplexor
(MUX) box. The transceiver cable is also called an Access Unit Interface (AUI) cable or
drop cable.
✓ Also a way of expanding beyond the 300 node limit. 1 MUX = 1 node.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
DB 15 Thicknet Connector
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
■ Fused
Warning – When the cable is on, you should secure the sliding clip to
the locking position. When trying to remove the cable, you should
make sure the sliding clip is in the open position, otherwise you will
pull on the cable and damage can occur to the sliding clip, as well as
to the cable itself.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Thinnet
Thick-to-thin
adapter box
50-ohm BNC terminator
Sun 4/490
workstation
Standard
BNC T adapter Thicknet
drop cable
SPARCstation 2
workstation
Thinnet SBus
adapter board
SPARCserver 690MP
50-ohm BNC terminator workstation
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
■ Thinnet
✓ Thin, low-cost coaxial cable. Thinnet is a network where up to 90 devices on a series of
thin coaxial cable segments are interconnected.
■ Thin cable
✓ 50-ohm cable with 50-ohm terminator at end.
✓ BNC T adapter—connects the thin cable transceiver to the thin coaxial cable in a Thinnet
network (female-male-female).
✓ Adapter, thick-to-thin—standard Ethernet connector (female) on one end and a type BNC
series coaxial connector (female) on the other. Used to connect systems Thicknet to
Thinnet.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Ethernet Address
8:0:20:9:2a:f0
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
8:0:20:9:4e:cc
✓ It is represented by hexadecimal digits and is subdivided into six 2-digit fields (12
hexadecimal digits) separated by colons.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
ISDN
ISDN connectors
NT
TE
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
✓ The TE supports devices in the standard ISDN interface, including digital phones, digital
facsimile, integrated voice/data terminal devices, as well as non-ISDN devices including
serial (RS-232) communication devices, such as computers, workstations, and terminals.
✓ The Sun ISDN connections also provide power across the interface, such as that required
for robust support of basic telephony, in the event that an attached workstation is down.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
- Up to 2 km between nodes
✓ The Ethernet in contrast, allows up to 2.5 km total network length and 500 meters between
nodes.
✓ Sun provides two distinct fiber rings that enable an optical bypass if the system is not
working. The optical bypass is used by the system if power failure occurs, and alleviates
problems of ring segmentation that can occur if there are multiple faults on a dual ring
FDDI network.
✓ FDDI/DX interface (Dual Attach) for VME-based systems provides a dual attachment
connection that supports two fiber optic rings for fault recovery.
✓ The boards Sun provides in their workstations enable built-in test, power-up, and
extended diagnostics.
✓ Any Sun server, desktop, or deskside workstation that supports FDDI can act as a router
between an Ethernet or Token Ring environment.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
# more /etc/hosts
[The /etc/hosts file on the “monterey” machine]
#
# Internet host table
#
127.0.0.1 localhost loghost
#
192.9.200.1 monterey
192.9.200.2 carmel
192.9.200.3 pacifica
Host
Network number
number
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
■ The /etc/hosts file lists all of the hosts and their Internet
addresses, often called IP addresses.
✓ An Internet address encodes the identification of the network as well as the identification
of a unique host on that network. This is accomplished by dividing the address into
components.
- Network number—is the portion of the Internet address that describes the network.
The number of bytes that comprises the network number is determined by the class of
the address.
- Host number—is the portion of the Internet address that describes the host.
✓ Because it contains both the network number and the host number, the Internet address
enables efficient routing.
✓ The localhost entry also enables software logins for diagnostic purposes.
✓ Be careful to add the addresses to the hosts file correctly, without extra spaces and
characters.
✓ You cannot use just any number for the Internet address or the network can begin to have
problems and can even stop functioning.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Datagram addressed to
127.0.0.1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
✓ A message sent by a higher-level protocol to a network address of 127 should loop back
inside the host.
✓ No message “sent” to a network address of 127 should ever appear on any network
anywhere.
✓ The loopback address is used to diagnose network problems that may be caused by
internal software corruption.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
This file identifies a machine’s Ethernet interface and its host name.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Notes
✓ For example, a machine with a Lance Ethernet interface (le0) will have a file in the /etc
directory called hostname.le0; whereas a machine with an Intel Ethernet interface (ie0)
will have a file called hostname.ie0.
✓ A machine with two network interfaces, such as ie0 and ie1, will have two files in /etc
called hostname.ie0 and hostname.ie1, respectively.
✓ Changing the host name involves editing the /etc/hostname.xx# file, and changing the
old host name to the new host name. To do this, the machine must be rebooted.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Lab—Network Terminology
Overview
The purpose of this lab is to answer questions about the Ethernet, the
Internet, and network terms in general. You will also be interrogating
your system for some answers.
Lab Exercise
True or False
T F Coaxial cable forms the backbone of Sun’s Ethernet
system.
Fill In
1. The maximum length of one Thicknet cable segment is:
___________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1616 16
Lab—Network Terminology
Network Configuration
1. Use the command ifconfig -a or dmesg to obtain the interface
address.
# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
inet 127.0.0.1 netmask ff000000
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
inet 129.150.28.90 netmask ffffff00 broadcast 129.150.28.255
ether 8:0:20:d:bd:79
7. Log into your machine and display the /etc/hosts file. There are
two columns in this file. Answer the questions below and
fill-in the blanks where necessary.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
16
Lab—Network Terminology
9. The localhost entry enables the machine to (circle all that apply):
10. You add entries to the hosts file when (circle all that apply):
11. The loghost entry enables the machine to (circle all that apply):
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Basic Network Troubleshooting 17
Objectives
Evaluation
References
17-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
Example:
# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
ether 8:0:20:d:bd:79
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Notes
✓ The interface can be a physical device, such as an Ethernet interface (le0 in the example),
or a pseudo-device such as the loopback device (lo0).
■ The second line for each interface lists the Internet address (inet),
the netmask, and if applicable, the broadcast or destination
address and the Ethernet address (ether).
✓ These are called flags. Flags indicate the state of the interface:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
# rup
venus up 18 days,21:55, load average: 0.10, 0.16, 0.00
mars up 3 days,9mins, load average: 0.12, 0.02, 0.01
192.9.200.16 up 3:24, load average: 0.08, 0.02, 0.01
mercury up 3:23, load average: 0.09, 0.02, 0.01
saturn up 19 days,21:22, load average: 0.21, 0.04, 0.02
orion up 19 days,21:12, load average: 0.42, 0.23, 0.02
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Notes
Command output:
# rup
venusup18 days,21:55,load average: 0.10, 0.16, 0.00
# rup
venus up 18 days,21:55, load average: 0.10, 0.16, 0.00
1 5 15
Minutes
Time system has been up
✓ The rup command shows how long network machines have been up since their last
reboot. The load average of the CPU is calculated over the last minute, 5 minutes, and 15
minutes.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
# ping elvis
elvis is alive
# ping houdini
no answer from houdini
# ping galatica
“NETWORK IS UNREACHABLE”
# ping elvira
ping: unknown host
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Notes
■ /usr/sbin/ping
The ping command sends an echo packet to the named host and
reports whether a reply is received. ping keeps trying until a
timeout of 20 seconds or an answer is received.
■ Alive
✓ The remote host is up and running network processes.
■ No answer
✓ The remote host is not up or is not running network processes.
■ Network unreachable
✓ The remote host is not on the local network
- To be connected to the local network, the network part of the Internet address must
match that of the host system.
■ Unknown host
✓ The remote host is not in the /etc/hosts file.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
# ping -s sunshine
PING micro3: 56 data bytes
64 bytes from sunshine (192.9.227.44): icmp_seq=0. time=24. ms
64 bytes from sunshine (192.9.227.44): icmp_seq=1. time=2. ms
64 bytes from sunshine (192.9.227.44): icmp_seq=2. time=2. ms
64 bytes from sunshine (192.9.227.44): icmp_seq=3. time=2. ms
64 bytes from sunshine (192.9.227.44): icmp_seq=4. time=2. ms
64 bytes from sunshine (192.9.227.44): icmp_seq=5. time=2. ms
64 bytes from sunshine (192.9.227.44): icmp_seq=6. time=2. ms
^C
----sunshine PING Statistics----
6 packets transmitted, 6 packets received, 0% packet loss
round-trip (ms) min/avg/max = 2/2/2
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Notes
Output format:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
Troubleshooting
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Notes
Possible Solutions
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
Troubleshooting—Error Messages
ie: cannot initialize
ie%d: no carrier
The 82586 has lost input to its carries detect pin while trying to transmit a
packet causing the packet to be dropped. Possible cause include an open
circuit somewhere in the network and noise on the carrier detect line from
the transceiver.
The driver and 82586 chip have lost synchronization with each other. The
driver recovers by resetting itself and the chip.
The driver has run out of resources while getting a packet ready to transmit.
The packet is put back on the output queue for retransmission after more
resources become available.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Troubleshooting—Error Messages
The driver has discovered that memory that should remain unchanged after
initialization has become corrupted. This error usually is a symptom of a
bad 82586 chip.
A bug in the LANCE chip has caused the chip’s transmitter section to stop.
The driver has detected this condition and reinitialized the chip.
The driver has run out of memory to use to buffer packets on output. The
packet being transmitted at the time of occurrence is lost.This error is usually
symptomatic of trouble elsewhere in the kernel.
The LANCE chip has signaled that it finished transmitting a packet but the
driver has sent no such packets.
The LANCE chip’s internal silo pointers have become misaligned. This error
arises from a chip bug.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
Troubleshooting—Error Messages
An incoming packet’s size was below the Ethernet minimum transmission size.
Occurs only in conjunction with a LANCE feature that the driver does not use.
Occurs only in conjunction with a LANCE feature that the driver does not use.
Excessive bus contention has prevented the LANCE chip from gathering
packet contents quickly enough to sustain the packet’s transmission over
the Ethernet. The affected packet is lost.
A packet collision has occurred after the channel’s slot time has elapsed.
This error usually indicates faulty hardware elsewhere on the net.
The LANCE chip has lost input to its carrier detect pin while trying to
transmit a packet.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Troubleshooting—Error Messages
The driver has dropped an incoming packet because it had no buffer space
for it.
While transmitting a packet, the LANCE chip has noticed that the packet’s
length exceeds the maximum allowed for Ethernet. This error indicates a
kernel bug.
The LANCE chip timed out while trying to acquire the bus for a DVMA
transfer.
Because of some other error, the receive section of the LANCE chip shut down
and had to be restarted.
Because of some other error, the transmit section of the LANCE chip shut
down and had to be restarted.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
Overview
■ ping
■ ifconfig
■ rup
Lab Exercises
Using ping
1. Invoke ping on your system.
Why?___________________________________________________
Why? __________________________________________________
________________________________________________________
________________________________________________________
4. Use more on the file /etc/hosts and record the systems included
below.
________________________________________________________
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
Lab—Using ping
Why? __________________________________________________
6. vi the /etc/hosts file and add the IP address and the host name
of the system you pinged above.
Why?___________________________________________________
192.9.200.200 sparcie
Why? __________________________________________________
11. If you sent 100 packets to the remote system and all but one packet
was dropped, what would that tell you about your network?
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
2. ping sparcie again (the sparcie with the new IP address you
just entered into /etc/hosts).
Why? __________________________________________________
The ping command only work on systems that share the same
network address. In the example above, the network address for the
system sparcie is 129.9.200.XXX.
4. What is your network address (look under the le0 heading; look
for the number following the word inet)?
inet: __________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1717 17
The numbers are systems that are using IP addresses that are not in
your /etc/hosts file. As you add systems to /etc/hosts, the amount
of systems that show only IP addresses decreases, while system names
increase.
4. Now add one system from the lab to the /etc/hosts file (a
system name you didn't see in the rup listing).
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
17
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Sun NFS Service 18
Objectives
Upon completion of this module, you will be able to:
■ List the NFS system server’s files, and describe how they are used.
■ List the NFS system client’s files, and describe how they are used.
■ Explain the fields and use of the dfstab, mnttab, and sharetab
files.
Evaluation
Complete the lab at the end of this module.
References
System and Network Administration, Part Number 800-3805-10
18-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
✓ The Sun NFS distributed computing file system was one of the first solutions to the
problem of remote file-sharing and has become the most successful solution. Sun created
a licencing policy for the NFS system and offered it to the industry for a very reasonable
fee.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Types of Clients
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
The NFS system enables a client to ask for a particular file (or some
part of a file) across the network as if the client had a local disk.
✓ All CPU processing is on the client, not the server.
✓ Mounts one or more directories from an NFS system server across the network.
✓ Mounts their /usr directory, /home directory, manual pages and other applications from
an NFS system server.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
NFS Background
server=monterey
mount /usr
mount /usr
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
✓ Using the same files means data is accessible to any machine on a network. Storage
costs can be reduced by having machines share large programs. Database consistency
can also be achieved by having all users read the same set of files.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
■ A server can serve clients of other server, and can be itself an NFS
system client.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
✓ The NFS file server is required by the NFS system protocol to immediately perform any
NFS write requests. This can slow the server down if it has many clients who are actively
writing files. The marketplace has developed various strategies for dealing with this
problem. One of the simplest strategies is to install an NFS accelerator board, such as
Prestoserve™, in your file server.
■ A server can serve clients of other servers and can be itself an NFS
client.
✓ An NFS system file server can also be an NFS system client. The server, however, cannot
serve directories that it has mounted as a client. For example, assume jupiter gets the
/usr/local directory from earth. If venus tries to mount it the output is:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Host = monterey /
. . . . . .
■ NFS mounting
Server = monterey
/
. . . . . .
Client = carmel
etc usr var
/
. . . . . .
ucb man etc kvm lib
. . . . . . etc usr var
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
■ The file system containing the directory you want must exist on
the local disk of the machine from which you want to NFS mount
it.
✓ You cannot NFS-mount a directory or file system from a machine that is currently NFS-
mounting the wanted directory or file system from another machine. The NFS system does
not allow you to do that.
■ The machine that is borrowing the NFS server’s file system is the
NFS client.
✓ The client mounts shared file systems or directories exported by the NFS server.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
■ The NFS system file server must allow access to the NFS client.
✓ The NFS system client makes the decision whether to NFS mount the file system or
directory once the NFS system file server enables access. The NFS system client must do
all the work to get the wanted file system or directory to its machine by making the mount
point directory and executing the mount command.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
#
# Internet host table
#
# If the NIS is running, this file is only
# consulted when booting
127.0.0.1 localhost loghost
#
192.9.200.1 monterey
192.9.200.2 carmel
192.9.200.3 pacifica
Network
number Host
number
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
■ The NFS server and the NFS client must know each other exists.
✓ The sharing and mounting of NFS file systems and directories can take place only when
each machine is aware of the other machine. Example: When you visit a friend, you must
know where that friend lives. Without the friend’s address, you might never find your
friend. It is the same with machines; each has a unique address on the network.
■ The /etc/hosts file lists all of the hosts and their Internet
addresses, often called IP addresses.
✓ Each machine has its name listed with its corresponding address. The addresses are
called Internet addresses.
✓ the loghost entry allows monterey to send and receive electronic mail messages.
✓ if localhost does not exist, monterey sends all data out to the network.
■ The Internet address contains the network number and the host
number.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
■ /etc/dfs/dfstab
■ /usr/bin/share
■ /etc/dfs/sharetab
■ /usr/sbin/mount
■ /etc/vfstab
■ /etc/mnttab
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
■ /etc/dfs/dfstab
✓ The server uses /etc/dfs/dfstab to determine which file systems to share.
■ /usr/bin/share
✓ The server uses share to make file systems available.
■ /etc/dfs/sharetab
✓ The /etc/dfs/sharetab file contains the names of the file systems that are actually
shared.
■ /usr/sbin/mount
✓ Client issues NFS mount request (/usr/sbin/mount).
■ /etc/vfstab
✓ Servers and Clients both have a /etc/vfstab file that reflects particular mounts that are
referred to when they boot up.
■ /etc/mnttab
✓ Servers and Clients both have a /etc/mnttab file that contain the names of the file
systems that are actually mounted.
✓ The client maintains communication with the server without a login or connection.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
# more /etc/dfs/dfstab
# Place share (1M) commands here for automatic execution
# on placing init state 3
#
# share [-F fstype] [-o options] [-d “<text>”] <pathname> [resources]
# .e.g.
# share -F nfs -o rw=engineering -d ”home dirs” /export/home2
share -F nfs -o rw=pound -d ”games” /usr/games
# more /etc/dfs/sharetab
/usr/games - nfs rw=pound games
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
■ It is within the same file system (on the same disk partition).
- Example: The /usr/local could not be exported if the /usr file system is currently
exported.
✓ BOTH /usr and /usr/local could be exported if both were separate file systems.
✓ The /etc/dfs/dfstab file specifies the directories you want to make available to the
network and any options you want applied to those directories.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Export Options
ro=client1[:client2]...
rw=client1[:client2]...
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
■ Options
■ Default
✓ The default for the /etc/dfs/dfstab file is read/write all systems.
■ ro
✓ Export this directory read only.
■ rw=host1[:host2]...
✓ Export this directory read mostly; listed hosts have read/write access, all others have read
only.
Example:
-rw=hostA:hostB
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
# shareall
# share
- /usr/games rw=pound “games”
# unshare /var/spool/mail
# unshareall
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
- After bootup, share can be run at any time to make a directory or file system available
for mounting. share must be run by root.
- shareall tells share to read the exports file and export all that is found there
- share without an option lists the currently exported file systems and directories
- unshareall is saying to remove all file systems and directories from being exported;
this does not affect any NFS clients that are using the exported file systems and
directories until they reboot; at that time, they will not be able to NFS mount what they
had previously mounted.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
grob%
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
✓ The dfshares command also returns information that tells you who is NFS mounting the
file system/directory.
✓ - Every time an NFS client mounts a file system or directory, an entry is made in the
mnttab file
■ dfshares server_name
✓ dfsharesserver_name dentifies which files are exported and to whom they are available.
% dfshares mars
mars: RPC: Program not registered
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Mount examples:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
Command format:
■ The mount point does not have to be the same path as the
server’s path to the file system.
✓ However, some software programs require default paths and may not function if the path
is different
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
umount examples:
# umount /usr/man
#
# umount /usr/local
#
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
✓ To unmount any file system it cannot have any running processes and you must change
directories out of it. When using umount, the mount point directory path is the only
argument needed.
✓ If any processes are executing in the mounted directory hierarchy, you cannot unmount
that file system. For example:
- # umount /usr
nfs umount: /usr is busy
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
The /etc/vfstab file can contain both local and network file systems:
# more /etc/vfstab
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s6 /usr ufs 2 no
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s7 /home ufs 3 no
# more /etc/vfstab
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s6 /usr ufs 2 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s7 /home ufs 3 no
henry:/usr/games /usr/games nfs - yes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
The /etc/vfstab file can have entries for local disks (ufs) and remote (nfs) mounts. The
fsck order should always be 0 for NFS mounted file systems.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
The /etc/vfstab and /etc/mnttab files exist on all hosts, and help
help to determine permanent and temporary mounts.
# more /etc/vfstab
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s6 /usr ufs 2 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s7 /home ufs 3 no
# more /etc/mnttab
/dev/dsk/c0t1d0s0 / ufs rw,suid 724141033
/dev/dsk/c0t1d0s6 /usr ufs rw,suid 724141033
/dev/dsk/c0t1d0s6 /home ufs suid,rw,dev=80000 42141047
topstuff:/usr/dist /usr/dist nfs ro,dev=21c0000 742141095
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
■ Both NFS and UFS mounts are listed in the /etc/mnttab file.
✓ At bootup, the rc files create the /etc/mnttab file. The rc files mounts all ufs file
systems that are found in the /etc/vfstab file, causing the mount information to be
loaded into the /etc/mnttab file. Later, the rc files mount the NFS file systems, causing
this data to be appended to the /etc/mnttab file.
- After the colon, the path of the file system/directory being borrowed is listed
- Following the server’s path is the absolute path to the directory being used as the
mount point
- You must always begin at root for both the server’s path and the path to the client’s
mount point directory
- The /etc/mnttab file differs from the /etc/vfstab with the dev=xxxx entry
- The dev=xxxx defines the device being used for the mount, SCSI=80xx; network=21xx
- NFS mounts have zeros (02) for the last two digits
- The zeros mean the file system or directory belongs to someone else and you are not
allowed to make tape backups of it or fsck it
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
The /etc/vfstab can contain both local and network file systems.
■ Before NFS:
# more /etc/vfstab
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s6 /usr ufs 2 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s7 /home ufs 3 no
■ After NFS:
# more /etc/vfstab
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 / ufs 1 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s6 /usr ufs 2 no
/dev/dsk/c0t1d0s6 /dev/rdsk/c0t1d0s7 /home ufs 3 no
henry:/usr/games /usr/games nfs - yes
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Notes
✓ If a mount point is listed in this file, you can use the mount command with the following
format: mount /mount_point.
✓ The /etc/vfstab file can have entries for both local disks (ufs) and remote (nfs)
mounts.
✓ The fsck order should always be 0 for NFS mounted file systems.
✓ This provides a way to create an /etc/vfstab file after all desired file systems have been
mounted. An example of the output of a mount -p command is shown below.
- # mount -p
/dev/dsk/c0t1d0s0/ ufs no suid
- The easiest way to insert new mounts into the /etc/vfstab is to redirect the
mount -p output.
✓ To create the new vfstab, redirect the output of the mount -p command to overwrite the
current fstab.
- 1) Mount all desired file systems (local and network) and verify operation.
- # cp /etc/vfstab /etc/vfstab.orig
(ALWAYS make a backup copy of /etc/vfstab file first!)
(THE FOLLOWING STEP WILL OVERWRITE THE ORIGINAL!!!)
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Lab—NFS Service
Overview
The purpose of this lab is to determine the functioning of the NFS
server, correctly export and unexport an NFS file system, and correctly
execute an NFS mount.
Lab Exercise
NFS Background
1. Log into your machine and more the /etc/hosts file. There are
two columns in this file.
2. The localhost entry allows the machine to (circle all that apply):
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Lab—NFS Background
3. You add entries to the hosts file when (circle all that apply):
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Lab—Partner Exercise
6. The NFS file system containing the wanted directory must (circle
all that apply):
c. Specifies which directory the client must use for the mount
point.
Partner Exercise
1. Ask your partner what the hostname and Internet address of
his or her machine is. Add these entries to your /etc/hosts file.
Be very careful not to leave any spaces between the end of the
hostname and the carriage return.
__________________ ___________________
__________________ ___________________
__________________ ___________________
__________________ ___________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Lab—Partner Exercise
3. Record the part that is the network number and the part that is the
host number from the above data in the spaces below (Omit the
localhost entry in the following data.):
# /etc/init.d/nfs.server start
# shareall
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Lab—Informational Commands
System response:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
Again you are to work in partners for this exercise. Your lab partner is
assigned by your instructor. One of your machines is assigned as the
NFS system server and remains the NFS server for the entire lab
procedure. The other machine is assigned as the NFS client and
remains the NFS client for the entire lab procedure. The NFS client
machine mounts the /usr/share directory on a directory called
/usr/share1. The /usr/share1 directory is created on the NFS client
machine.
NFS Client
2. On the NFS client, execute an NFS mount of the /usr/share
directory from your NFS server. Record the data below:
3. On the NFS client, list out the share1 directory. Record your data
below:
Command line: #
________________________________________________________
________________________________________________________
________________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
________________________________________________________
________________________________________________________
________________________________________________________
________________________________________________________
If the contents of the two files are the same, try to determine what
went wrong. If you cannot, ask your instructor for assistance. If
the vfstab and mnttab files differ on your NFS client machine,
continue.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1818 18
To simulate an unexported item on the NFS server, the NFS client will
attempt to mount an item not currently being exported by the NFS
server (/etc, for example).
NFS Server
8. On the NFS server, use the correct command execution to see if
/etc is currently being exported. Record your data below:
9. Now, from the NFS client machine, try to mount /etc on the same
directory as before. Record your data below:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
18
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
SunInstall 19
Objectives
References
19-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
■ Software Packages
■ Software Clusters
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Notes
Software Packages
■ A software package is a group of files and directories, which
describe a software application, such as the High-Sierra File
system or the on-line manual pages.
✓ The Solaris 2.x software release contains approximately 80 software packages, which total
approximately 300 Mbytes of disk space.
✓ Creating a software package is the standard way to deliver bundled and unbundled
software. Packages are administered using the package administration commands, and
are generally identified by a SUNWxxx naming convention.
Software Clusters
■ During installation, the software packages are grouped into
software clusters, which are logical collections of software
packages.
✓ For example, the System and Network Administration cluster includes the following
packages:
SunInstall 19-3
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
■ Entire Distribution
Entire Distribution
Developer
End User
Core
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Notes
SunInstall 19-5
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Software package
(OW V3)
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Notes
✓ For example, the OpenWindows software-package names used with the package
administration commands are:
- SUNWowMITSUNWowman
- SUNWowbcpSUNWowoft
- SUNWowbkSUNWowpmn
- SUNWowdemSUNWowrqd
- SUNWowdimSUNWowslib
- SUNWowdvSUNWowsrc
- SUNWowinc
✓ The package administration commands do not recognize the software installation cluster
names.
SunInstall 19-7
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Notes
The / (root) file system contains the /var directory which may
need additional space based on your requirements. For example,
spooling space for printing, mail and name service information.
Each Kernel
File System Each Client
Architecture
/export/root 20 Mbytes 10 Mbytes
/export/swap 24 Mbytes Not Applicable
/export/exec Not Applicable 15 Mbytes
SunInstall 19-9
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Installation Process
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Notes
■ Host name
■ IP address
- Domain name
■ Geographic region
- Standalone system
- Server
- Dataless client
SunInstall 19-11
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
This table identifies the commands for booting the Solaris 2.x
software distribution CD-ROM.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Notes
Note – Use the appropriate boot command listed in the table on the
previous page.
✓ The example in this next section describes how to install a homogeneous server (with one
disk), selecting the Entire Distribution software configuration cluster.
SunInstall 19-13
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Specify the terminal type you are using and then press Return.
Note – You will not see this screen if you are installing from a Sun
console.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Note – The host name must start with a lowercase letter, and can
include digits and hyphens.
SunInstall 19-15
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
SunInstall 19-17
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Select None - use /etc files with the arrow keys and then press Return.
If you had selected the NIS+ client option, you would be prompted to
supply the following information:
SunInstall 19-19
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Configuring Sub-networks
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
SunInstall 19-21
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Use the arrow keys to select your geographic region and press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Use the arrow keys to select your time zone and press Return
SunInstall 19-23
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Note – If you type an incorrect entry in one of the fields, use the
Backspace key to delete it and then re-enter it correctly.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
SunInstall 19-25
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Use the Tab key to move to the Custom Install option, which allows you
to customize:
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Note – You will keep returning to this menu until you are satisfied that
the installation is ready to be started.
Select the System Type option and press Return to bring up the
submenu.
SunInstall 19-27
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Use the Tab key to move to the Software Selection option and press
Return to bring up the sub-menu
Standalone
SunInstall 19-29
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
The only reason you will need to edit the End User System Support
software configuration is that it does not include frequently used and
important packages such as SunDiag software.
■ Use the Tab key to move to the Edit function and press
Return to activate the Edit function
*
( Apply ) ( Edit . . . )
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Use the Arrow keys to move through the listing. There is at least
another screenfull. (approximately 43 items in all)
SunInstall 19-31
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Use the arrow keys to highlight Online Diagnostics Tool and press
Return to select it.
Note – It is recommended that you use the Tab key to highlight the
Space button and check on disk drive space requirements.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Record the Minimum and Suggested disk space allocations for later use.
Press Return to dismiss this display and return to editing End User
System Support.
Use the Tab key to select Done and press Return to finish editing End
User System Support.
SunInstall 19-33
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
You have finished editing the End User System Support package and
returned to the Custom Install Configuration menu.
Use the Tab key to move to the Disks/File Systems option and then
press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Note – If you have more than one disk to configure, you will be
returned to this menu to select the other disk(s). Additional disks are
selected by using the arrow keys.
Use the arrow keys to highlight the disk to be configured and press
Return. A pop-up menu will appear.
Use the arrow keys to select Configure Disk on the pop-up menu and
press Return.
SunInstall 19-35
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
This menu allows you to set up parameters for use while configuring
disks. It also affects how partition sizes are displayed during the
editing sessions. The default values are usually sufficient.
Let the Provide Default Size Hints option default to Yes so that partition
size guidelines will be displayed automatically.
Use the arrow keys to highlight Apply and then press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
The default partition sizes and related mount points are displayed
below.
Use the Tab key to highlight the Space button to view the disk space
requirements and then press Return.
SunInstall 19-37
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Note – It is helpful to write down the size of each file system listed
here to help set up the appropriate file system sizes during disk
configuration.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
■ Use the Tab key to move through the file system mount
points and size descriptions.
In the example above, root, swap, /opt, and /usr have been
configured to a larger size and the cursor is sitting at the slice 7 mount
point waiting for /export/home to be created. Its size will be set to
use up all of the unallocated space that is left (262 Mbytes).
SunInstall 19-39
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Use the Tab key to highlight Apply and then press Return to end the
editing session on this disk drive.
Note – Observe that the /export/home mount point has been created
and that Unallocated Space is now zero.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Notice that a summary of the new file system mount points is now
shown on the display.
Use the Tab key to highlight Done and then press Return to end the
Local Disks & File Systems configuration.
Note – If there were another disk drive, you could start an editing
session on it at this point instead of selecting Done.
SunInstall 19-41
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Use the Tab key to highlight Begin Install and then press Return.
Use the Tab key to highlight Continue with Install and then press
Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
While the installation is proceeding you will see the progress display
below
Progress Display
SunInstall 19-43
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
Summary
SunInstall 19-45
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Before you start, complete the configuration sheet at the end of this lab
procedure. You may need instructor assistance.
3. Specify the system type and the software selection according to the
following:
■ Select the End User System Support cluster and edit it to add
the On-Line Diagnostics package.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
1919 19
- SunDefaults
- No overlapping cylinders
SunInstall 19-47
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
19
Hostname:
example: venus
IP Address
example: 129.150.28.79
No Subnet
Disk Layout:
slice 0 /
slice 1 swap
slice 5 /opt
slice 6 /usr
slice 7 /export/home
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
Appendix-SunInstall Quick Install A
Objectives
Upon completion of this lesson, you will be able to:
Reference Information
Solaris 2.1 System Configuration and Installation Guide, Chapter 6,
“Installing Solaris 2.1 on a Standalone Machine”
A-1
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
Introduction
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Installation Information
Hardware Requirements
To use the Quick Installation option to install and run Solaris 2.x
software locally, the system must:
■ Be a SPARC-based system.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
Disk Partitions
Quick Install provides default file systems and disk partitions.
/ (root)
swap Disk
drive
/opt
/usr
/export/home
Note – File systems and disk partitions are discussed elsewhere in this
course.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Server
Client
Client
Printer
Client-server environment
IP address: ___________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
3. Back up all user files and store the backups off-line if you are
reinstalling an existing system.
# halt
If you are installing a new system or you are not concerned about the
existing data on the system, press L1-A.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Quick Installation
> b sd(0,30,1)
> b sd(0,6,2)
ok boot sd(0,6,2)
> b cdrom
ok boot cdrom
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
Name Form
Enter the name of the system and press Return. This example uses
a system named sparc.
sparc
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Network Form
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
IP Address Form
Enter the IP address and press Return. This sample uses the IP
address 129.150.212.2.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Verification Form
sparc
2
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
NIS+ Client
>None-use /etc files
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Subnetworks Form
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
Verification Form
The entries in the example are correct. Select Yes, continue, and
press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
11. Enter the correct geographic region, using the Arrow keys to
highlight the correct selection, and press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
12. Enter the correct time zone, using the Arrow keys to highlight the
correct selection, and press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
If any changes are necessary, use the Tab key or Return to move to
the appropriate field. Press Return to continue.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
Verification Form
05/19/93 09:45
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
15. When the SunInstall™ utility’s main menu appears, complete the
standalone installation process.
To start the Quick Install process, select the Quick Install option
and press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
An asterisk marks the selected cluster. The default is the End User
System Support configuration cluster, which provides all of the
software necessary for a standalone system. Accept the default and
press Return.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
198 MB
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
16. After the disks are configured, you are shown the default
partitioning and file systems that SunInstall has chosen.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
19. When the installation is complete, the system displays the message
The system is ready and displays the login prompt.
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
AA A
Summary
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993
A
Exercise
4. Define the following terms: “host name” and “IP address” and
“domain.”
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
___________________________________________________________
5. Name the default cluster that is installed with the Quick Install
tool._______________________________________________________
Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. SunService November 1993