Solaris10_SA200S10_SG.pdf - Intermediate System Administration for the Solaris\u2122 10 Operating System SA-200-S10 Student Guide Sun Microsystems Inc

Solaris10_SA200S10_SG.pdf - Intermediate System...

This preview shows page 1 out of 722 pages.

Unformatted text preview: Intermediate System Administration for the Solaris™ 10 Operating System SA-200-S10 Student Guide Sun Microsystems, Inc. UBRM05-104 500 Eldorado Blvd. Broomfield, CO 80021 U.S.A. Revision A.1 March 19, 2005 6:20 pm Copyright 2005 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Sun, Sun Microsystems, the Sun logo, Java, Solaris, Ultra, SunOS, Sun StorEdge, ToolTalk, SunSolve, SunService, Sun Blade, Sun Enterprise, OpenBoot, Sun Fire, and JumpStart are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. PostScript is a trademark or registered trademark of Adobe Systems, Incorporated, which may be registered in certain jurisdictions. Federal Acquisitions: Commercial Software – Government Users Subject to Standard License Terms and Conditions Export Laws. Products, Services, and technical data delivered by Sun may be subject to U.S. export controls or the trade laws of other countries. You will comply with all such laws and obtain all licenses to export, re-export, or import as may be required after delivery to You. You will not export or re-export to entities on the most current U.S. export exclusions lists or to any country subject to U.S. embargo or terrorist controls as specified in the U.S. export laws. You will not use or provide Products, Services, or technical data for nuclear, missile, or chemical biological weaponry end uses. DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS, AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. THIS MANUAL IS DESIGNED TO SUPPORT AN INSTRUCTOR-LED TRAINING (ILT) COURSE AND IS INTENDED TO BE USED FOR REFERENCE PURPOSES IN CONJUNCTION WITH THE ILT COURSE. THE MANUAL IS NOT A STANDALONE TRAINING TOOL. USE OF THE MANUAL FOR SELF-STUDY WITHOUT CLASS ATTENDANCE IS NOT RECOMMENDED. Export Commodity Classification Number (ECCN) assigned: 12 December 2001 Please Recycle Copyright 2005 Sun Microsystems Inc. 4150 Network Circle, Santa Clara, California 95054, Etats-Unis. Tous droits réservés. Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l’utilisation, la copie, la distribution, et la décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans l’autorisation préalable et écrite de Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun. Sun, Sun Microsystems, the Sun logo, Java, Solaris, Ultra, SunOS, Sun StorEdge, ToolTalk, SunSolve, SunService, Sun Blade, Sun Enterprise, OpenBoot, Sun Fire, et JumpStart sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d’autres pays. Toutes les marques SPARC sont utilisées sous licence sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d’autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc. UNIX est une marques déposée aux Etats-Unis et dans d’autres pays et licenciée exclusivement par X/Open Company, Ltd. PostScript est une marque fabrique d’Adobe Systems, Incorporated, laquelle pourrait être déposée dans certaines juridictions. Législation en matière dexportations. Les Produits, Services et données techniques livrés par Sun peuvent être soumis aux contrôles américains sur les exportations, ou à la législation commerciale dautres pays. Nous nous conformerons à lensemble de ces textes et nous obtiendrons toutes licences dexportation, de ré-exportation ou dimportation susceptibles dêtre requises après livraison à Vous. Vous nexporterez, ni ne ré-exporterez en aucun cas à des entités figurant sur les listes américaines dinterdiction dexportation les plus courantes, ni vers un quelconque pays soumis à embargo par les Etats-Unis, ou à des contrôles anti-terroristes, comme prévu par la législation américaine en matière dexportations. Vous nutiliserez, ni ne fournirez les Produits, Services ou données techniques pour aucune utilisation finale liée aux armes nucléaires, chimiques ou biologiques ou aux missiles. LA DOCUMENTATION EST FOURNIE “EN L’ETAT” ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L’APTITUDE A UNE UTILISATION PARTICULIERE OU A L’ABSENCE DE CONTREFAÇON. CE MANUEL DE RÉFÉRENCE DOIT ÊTRE UTILISÉ DANS LE CADRE D’UN COURS DE FORMATION DIRIGÉ PAR UN INSTRUCTEUR (ILT). IL NE S’AGIT PAS D’UN OUTIL DE FORMATION INDÉPENDANT. NOUS VOUS DÉCONSEILLONS DE L’UTILISER DANS LE CADRE D’UNE AUTO-FORMATION. Please Recycle Table of Contents About This Course .............................................................Preface-xix Course Goals........................................................................ Preface-xix Course Map............................................................................ Preface-xx Topics Not Covered............................................................. Preface-xxi How Prepared Are You?....................................................Preface-xxii Introductions ......................................................................Preface-xxiii How to Use Course Materials ..........................................Preface-xxiv Conventions .........................................................................Preface-xxv Icons .............................................................................Preface-xxv Typographical Conventions ................................... Preface-xxvi Notes to the Instructor..................................................... Preface-xxvii Installing the Solaris™ 10 Operating System ................................1-1 Objectives ........................................................................................... 1-1 Identifying the Fundamentals of the CD-ROM Installation ........ 1-2 Solaris 10 OS Installation and Upgrade Options.................. 1-2 Solaris Installation Command Line Interpreter (CLI) ......... 1-2 Custom JumpStart™ Installation............................................ 1-3 Solaris Flash Archive Installation ........................................... 1-3 Solaris WAN Boot ..................................................................... 1-4 Standard Upgrade to the Solaris OS ...................................... 1-4 Solaris Live Upgrade Software ............................................... 1-5 Hardware Requirements for Installation of the Solaris 10 OS ........................................................................... 1-5 Software Components of the Solaris OS............................... 1-6 Solaris OS Software Groups .................................................... 1-7 Installing the Solaris 10 OS From a CD-ROM or DVD............... 1-11 Pre-Installation Information .................................................. 1-11 Demonstration: Performing an Interactive Installation .... 1-13 Introducing the Solaris™ 10 OS Directory Hierarchy ...................2-1 Objectives ........................................................................................... 2-1 Introducing / (root) Subdirectories................................................. 2-2 Introducing Important System Directories ........................... 2-3 Introducing Important In-Memory System Directories ...... 2-4 v Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.Sun Services, Revision A.1 Introducing File Components .......................................................... 2-9 File Names.................................................................................. 2-9 Inodes.......................................................................................... 2-9 Data Blocks............................................................................... 2-10 Identifying File Types...................................................................... 2-11 Regular Files ............................................................................ 2-12 Directories ................................................................................ 2-13 Symbolic Links ........................................................................ 2-14 Device Files ............................................................................. 2-16 Using Hard Links............................................................................. 2-20 Introducing Hard Links ......................................................... 2-20 Creating New Hard Links ..................................................... 2-21 Removing Hard Links ........................................................... 2-22 Performing the Exercises ................................................................ 2-23 Exercise: Identifying File Types (Level 1)..................................... 2-24 Preparation............................................................................... 2-24 Tasks ......................................................................................... 2-24 Exercise: Identifying File Types (Level 2)..................................... 2-26 Preparation............................................................................... 2-26 Task Summary......................................................................... 2-26 Tasks ........................................................................................ 2-28 Exercise: Identifying File Types (Level 3)..................................... 2-29 Preparation............................................................................... 2-29 Task Summary......................................................................... 2-29 Tasks and Solutions ............................................................... 2-31 Exercise Summary............................................................................ 2-34 Managing Local Disk Devices......................................................... 3-1 Objectives ........................................................................................... 3-1 Introducing the Basic Architecture of a Disk ................................. 3-2 Physical Disk Structure ............................................................ 3-2 Data Organization on Disk Platters........................................ 3-3 Disk Slices................................................................................... 3-4 Introducing Solaris OS Device Naming Conventions ................ 3-10 Logical Device Names ............................................................ 3-10 Physical Device Names .......................................................... 3-11 Instance Names ....................................................................... 3-12 Listing a System’s Devices.............................................................. 3-13 The /etc/path_to_inst File ............................................... 3-13 The prtconf Command........................................................ 3-15 The format Command.......................................................... 3-16 Reconfiguring Devices .................................................................... 3-17 Performing a Reconfiguration Boot...................................... 3-17 Using the devfsadm Command ............................................ 3-18 Performing the Exercises ................................................................ 3-20 vi Intermediate System Administration for the Solaris™ 10 Operating System Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision A.1 Exercise: Configuring and Naming Devices (Level 1)................ 3-21 Preparation............................................................................... 3-21 Tasks ......................................................................................... 3-22 Exercise: Configuring and Naming Devices (Level 2)................ 3-23 Preparation............................................................................... 3-23 Task Summary......................................................................... 3-24 Tasks ......................................................................................... 3-24 Exercise: Configuring and Naming Devices (Level 3)................ 3-26 Preparation............................................................................... 3-26 Task Summary......................................................................... 3-27 Tasks and Solutions ............................................................... 3-27 Exercise Summary............................................................................ 3-30 Partitioning the Hard Disk ............................................................. 3-31 Introducing the Fundamentals of Disk Partitioning.......... 3-31 Recognizing Disk Space and Undesirable Conditions ...... 3-32 Recognizing Wasted Disk Space........................................... 3-33 Recognizing Overlapping Disk Slices ................................. 3-34 Introducing Disk Partition Tables ........................................ 3-35 Using the format Command ................................................ 3-36 Partitioning a Disk ................................................................. 3-38 Managing Disk Labels..................................................................... 3-45 Viewing the Disk VTOC ........................................................ 3-45 Relabeling a Disk..................................................................... 3-47 Performing the Exercises ................................................................ 3-48 Exercise: Working With Disks and Partitions (Level 1) ............. 3-49 Preparation............................................................................... 3-49 Tasks ......................................................................................... 3-49 Exercise: Working With Disks and Partitions (Level 2) ............. 3-51 Preparation............................................................................... 3-51 Task Summary......................................................................... 3-51 Tasks ......................................................................................... 3-52 Exercise: Working With Disks and Partitions (Level 3) ............. 3-56 Preparation............................................................................... 3-56 Task Summary......................................................................... 3-56 Tasks ......................................................................................... 3-57 Introducing the Solaris™ Management Console ........................ 3-64 Starting the Solaris Management Console .......................... 3-64 Using the Solaris Management Console Tools .................. 3-65 Restarting the Solaris Management Console ...................... 3-66 Identifying the Functional Areas of the Solaris Management Console.......................................................... 3-67 Partitioning a Disk by Using the Solaris Management Console Disks Manager Tool....................................................... 3-71 Partitioning the Disk Using the Disks Tool......................... 3-71 Performing the Exercises ................................................................ 3-80 vii Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision A.1 Exercise: Working With the Solaris Management Console (Level 1)........................................................................... 3-81 Preparation............................................................................... 3-81 Tasks ......................................................................................... 3-81 Exercise: Working With the Solaris Management Console (Level 2)........................................................................... 3-82 Preparation............................................................................... 3-82 Task Summary......................................................................... 3-82 Tasks ......................................................................................... 3-83 Exercise Summary............................................................................ 3-84 Managing Solaris OS File Systems ................................................ 4-1 Objectives ........................................................................................... 4-1 Introducing Solaris OS File Systems ............................................... 4-2 Disk-based File Systems........................................................... 4-2 Distributed File Systems .......................................................... 4-2 Pseudo File Systems ................................................................. 4-3 Creating a New ufs File System...................................................... 4-4 Viewing the Solaris OS ufs File System ................................ 4-4 Using the newfs Command................................................... 4-14 Checking the File System by Using the fsck Command........... 4-17 Data Inconsistencies Checked by the fsck Command ..... 4-17 Superblock Consistency ......................................................... 4-17 Cylinder Group Block Consistency ...................................... 4-17 Inode Consistency................................................................... 4-18 Data Block Consistency.......................................................... 4-18 The lost+found Directory .................................................... 4-18 Noninteractive Mode.............................................................. 4-18 Interactive Mode ..................................................................... 4-19 Resolving File System Inconsistencies .......................................... 4-20 Reconnecting an Allocated Unreferenced File.................... 4-20 Adjusting a Link Counter ...................................................... 4-21 Salvaging the Free List ........................................................... 4-21 Using Backup Superblocks .................................................... 4-22 Monitoring File System Use ........................................................... 4-25 Using the df Command ......................................................... 4-25 Using the du Command ......................................................... 4-28 Using the quot Command..................................................... 4-30 Using the Solaris Management Console Usage Tool ......... 4-31 Performing the Exercises .................................................................
View Full Document

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture