Red Hat Enterprise Linux 3 Introduction to System Administration
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat Enterprise Linux 3 Introduction to System Administration Red Hat Enterprise Linux 3: Introduction to System Administration Copyright © 2003 by Red Hat, Inc. Red Hat, Inc. 1801 Varsity Drive Raleigh NC 27606-2072 USA Phone: +1 919 754 3700 Phone: 888 733 4281 Fax: +1 919 754 3701 PO Box 13588 Research Triangle Park NC 27709 USA rhel-isa(EN)-3-Print-RHI (2003-07-25T17:11) Copyright © 2003 by Red Hat, Inc. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, V1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/). Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. Distribution of the work or derivative of the work in any standard (paper) book form for commercial purposes is prohibited unless prior permission is obtained from the copyright holder. Red Hat, Red Hat Network, the Red Hat "Shadow Man" logo, RPM, Maximum RPM, the RPM logo, Linux Library, PowerTools, Linux Undercover, RHmember, RHmember More, Rough Cuts, Rawhide and all Red Hat-based trademarks and logos are trademarks or registered trademarks of Red Hat, Inc. in the United States and other countries. Linux is a registered trademark of Linus Torvalds. Motif and UNIX are registered trademarks of The Open Group. XFree86 is a trademark of The XFree86 Project, Inc, and is pending registration. Intel and Pentium are registered trademarks of Intel Corporation. Itanium and Celeron are trademarks of Intel Corporation. AMD, Opteron, Athlon, Duron, and K6 are registered trademarks of Advanced Micro Devices, Inc. Netscape is a registered trademark of Netscape Communications Corporation in the United States and other countries. Java and Swing are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. or other countries. Oracle is a registered trademark, and Oracle8i, Oracle9i, and interMedia are trademarks or registered trademarks of Oracle Corporation. Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. SSH and Secure Shell are trademarks of SSH Communications Security, Inc. FireWire is a trademark of Apple Computer Corporation. IBM, AS/400, OS/400, RS/6000, S/390, and zSeries are registered trademarks of International Business Machines Corporation. eServer, iSeries, and pSeries are trademarks of International Business Machines Corporation. All other trademarks and copyrights referred to are the property of their respective owners. The GPG fingerprint of the [email protected] key is: CA 20 86 86 2B D6 9D FC 65 F6 EC C4 21 91 80 CD DB 42 A6 0E Table of Contents Introduction..........................................................................................................................................i 1. Changes to This Manual ........................................................................................................i 2. Document Conventions.........................................................................................................ii 3. More to Come ....................................................................................................................... v 3.1. Send in Your Feedback .......................................................................................... v 4. Sign Up for Support.............................................................................................................. v 1. The Philosophy of System Administration ................................................................................... 1 1.1. Automate Everything......................................................................................................... 1 1.2. Document Everything ........................................................................................................ 2 1.3. Communicate as Much as Possible.................................................................................... 3 1.3.1. Tell Your Users What You Are Going to Do ...................................................... 3 1.3.2. Tell Your Users What You Are Doing ................................................................ 4 1.3.3. Tell Your Users What You Have Done ............................................................... 4 1.4. Know Your Resources........................................................................................................ 5 1.5. Know Your Users............................................................................................................... 6 1.6. Know Your Business.......................................................................................................... 6 1.7. Security Cannot be an Afterthought .................................................................................. 6 1.7.1. The Risks of Social Engineering......................................................................... 7 1.8. Plan Ahead......................................................................................................................... 7 1.9. Expect the Unexpected ...................................................................................................... 8 1.10. Red Hat Enterprise Linux-Specific Information.............................................................. 8 1.10.1. Automation ....................................................................................................... 8 1.10.2. Documentation and Communication ................................................................ 9 1.10.3. Security ........................................................................................................... 10 1.11. Additional Resources..................................................................................................... 10 1.11.1. Installed Documentation ................................................................................. 10 1.11.2. Useful Websites .............................................................................................. 11 1.11.3. Related Books ................................................................................................. 11 2. Resource Monitoring .................................................................................................................... 13 2.1. Basic Concepts................................................................................................................. 13 2.2. System Performance Monitoring ..................................................................................... 13 2.3. Monitoring System Capacity ........................................................................................... 14 2.4. What to Monitor?............................................................................................................. 14 2.4.1. Monitoring CPU Power .................................................................................... 15 2.4.2. Monitoring Bandwidth...................................................................................... 16 2.4.3. Monitoring Memory.......................................................................................... 16 2.4.4. Monitoring Storage ........................................................................................... 17 2.5. Red Hat Enterprise Linux-Specific Information.............................................................. 18 2.5.1. free.................................................................................................................. 18 2.5.2. top .................................................................................................................... 19 2.5.3. vmstat.............................................................................................................. 20 2.5.4. The Sysstat Suite of Resource Monitoring Tools ............................................. 21 2.5.5. OProfile............................................................................................................. 24 2.6. Additional Resources....................................................................................................... 28 2.6.1. Installed Documentation ................................................................................... 28 2.6.2. Useful Websites ................................................................................................ 28 2.6.3. Related Books ................................................................................................... 29 3. Bandwidth and Processing Power ............................................................................................... 31 3.1. Bandwidth........................................................................................................................ 31 3.1.1. Buses................................................................................................................. 31 3.1.2. Datapaths........................................................................................................... 32 3.1.3. Potential Bandwidth-Related Problems ............................................................ 32 3.1.4. Potential Bandwidth-Related Solutions ............................................................ 32 3.1.5. In Summary. .................................................................................................. 33 3.2. Processing Power ............................................................................................................