Troubleshooting and Performance

Slides:



Advertisements
Similar presentations
Objectives Overview Define an operating system
Advertisements

Linux+ Guide to Linux Certification Chapter Nine System Initialization.
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Linux+ Guide to Linux Certification, Second Edition
Linux+ Guide to Linux Certification, Second Edition
Chapter 14 Troubleshooting, Performance, and Security.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Hands-On Microsoft Windows Server 2003 Administration Chapter 10 Monitoring and Troubleshooting Windows Server 2003.
1 Web Server Administration Chapter 3 Installing the Server.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 2: Managing Hardware Devices.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 2: Managing Hardware Devices.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 1 Introduction to Managing the SUSE Linux Enterprise Server.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
Xuan Guo Chapter 1 What is UNIX? Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003 Original Notes.
Cambodia-India Entrepreneurship Development Centre - : :.... :-:-
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 14: Troubleshooting Windows Server 2003 Networks.
Operating Systems.
Installing software on personal computer
Guide to Linux Installation and Administration, 2e1 Chapter 13 Backing Up System Data.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Operating Systems Operating System
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Chapter 6 Advanced Installation. Objectives  Describe the types and structure of SCSI devices  Explain the different levels of RAID and types of RAID.
Administering Windows 7 Lesson 11. Objectives Troubleshoot Windows 7 Use remote access technologies Troubleshoot installation and startup issues Understand.
Hands-On Microsoft Windows Server 2008
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 4 Manage Software for SUSE Linux Enterprise Server.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 2: Managing Hardware Devices.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Chapter Fourteen Windows XP Professional Fault Tolerance.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 14 Managing and Troubleshooting Windows 2000.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Linux+ Guide to Linux Certification, Third Edition Chapter 6 Advanced Installation.
University of Management & Technology 1 Operating Systems & Utility Programs.
Module 12: Managing Disaster Recovery. Overview Preparing for Disaster Recovery Backing Up Data Scheduling Backup Jobs Restoring Data Configuring Shadow.
CHAPTER 8 TROUBLESHOOT LINUX SYSTEM. 8.1 Troubleshoot methodology The maintenance cycle.
Explain the purpose of an operating system
Chapter 8: Operating Systems and Utility Programs Catherine Gifford Dan Falgares.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
What is a BIOS? * basic input/output system (BIOS), also known as the System BIOS * The BIOS software is built into the PC on a non-volatile ROM and is.
1 What is a Kernel The kernel of any operating system is the core of all the system’s software. The only thing more fundamental than the kernel is the.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Module 15 Managing Windows Server® 2008 Backup and Restore.
OPERATING SYSTEMS Lecture 3: we will explore the role of the operating system in a computer Networks and Communication Department 1.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Linux Kernel Management. Module 9 – Kernel Administration ♦ Overview The innermost layer of Linux operating system is the kernel, which is a thin layer.
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
Linux Operations and Administration Chapter Twenty Advanced Linux Administration.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Chapter 9 Operating Systems Discovering Computers Technology in a World of Computers, Mobile Devices, and the Internet.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
This slide deck is for LPI Academy instructors to use for lectures for LPI Academy courses. ©Copyright Network Development Group Module 10 Understanding.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Chapter Objectives In this chapter, you will learn:
Guide to Linux Installation and Administration, 2e
Chapter 4 – Introduction to Operating System Concepts
CONFIGURING HARDWARE DEVICE & START UP PROCESS
IS3440 Linux Security Unit 7 Securing the Linux Kernel
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
COP 4343 Unix System Administration
Presentation transcript:

Troubleshooting and Performance Chapter Fourteen Troubleshooting and Performance

Objectives Describe and outline common troubleshooting procedures Identify good troubleshooting practices Effectively troubleshoot common hardware-related problems Effectively troubleshoot common software-related problems Monitor system performance using command-line and graphical utilities Understand the purpose and usage of kernel modules

Troubleshooting Methodology Figure 14-1: The maintenance cycle

Troubleshooting Methodology Monitoring Process by which system areas are observed for problems or irregularities Proactive maintenance Measure taken to reduce future system problems Reactive maintenance Measure taken when system problems arise

Troubleshooting Methodology Documentation System information that is stored in a log book for future references Troubleshooting procedures The tasks performed when solving system problems

Troubleshooting Methodology Figure 14-2: Common troubleshooting procedures

Troubleshooting Methodology Two golden rules to guide you during any troubleshooting process: Prioritize problems Prioritize the problems according to severity and spend a reasonable amount of time on each problem given its priority Try to solve the root of the problem To avoid missing the underlying cause of any problem, try to justify why a certain solution is successful

Hardware-Related Problems Figure 14-3: The KDE Control Center

Hardware-Related Problems The absence of a device driver will also prevent the operating system from using the associated hardware devices Kudzu program Program used to detect and install support for new hardware

Hardware-Related Problems Figure 14-4: The kudzu welcome screen

Hardware-Related Problems Figure 14-5: Configuring new hardware using kudzu

Hardware-Related Problems If the hard disk that contains the / filesystem fails, then perform the following steps: Power down the computer and replace the failed hard disk Reinstall Linux on the new hard disk Restore the original configuration and data files using a back-up utility

Software-Related Problems: Application-Related Problems Dependencies The prerequisites required for program execution such as shared libraries or other packages ldd command Command used to display the shared libraries used by a certain program

Software-Related Problems: Application-Related Problems ldconfig command Command that updates the /etc/ld.so.conf and /etc/ld.so.cache files /etc/ld.so.conf files File that contains a list of directories that contain shared libraries /etc/ld.so.cache file File that contains the location of shared library files

Software-Related Problems: Application-Related Problems Filehandles Connection that a program makes to files on a filesystem unlimit command Command used to modify process limit parameters in the current shell /var/log directory Directory that contains most system log files

Software-Related Problems: OS-Related Problems Most software-related problems are related to the operating system itself These typically involve problems with boot loaders, filesystems, and serial devices mkbootdisk command Command used to create a boot floppy diskette

Software-Related Problems: OS-Related Problems Figure 14-6: The Red Hat Linux installation welcome screen

Software-Related Problems: OS-Related Problems Figure 14-7: Obtaining a shell in rescue mode

Software-Related Problems: OS-Related Problems Figure 14-8: The command-line shell used in rescue mode

Software-Related Problems: OS-Related Problems Table 14-1: Common keywords used with the setserial utility

Performance Monitoring Jabbering Process by which failing hardware components send large amounts of information to the CPU Bus mastering Process by which peripheral components perform tasks normally executed by the CPU

Performance Monitoring To ease identification of performance problems, you should run performance utilities on a healthy Linux system on a regular basis during normal business hours and record results in a system log book Baseline A measure of normal system activity

Monitoring Performance with sysstat Utilities System Statistics (sysstat) package Software package that contains common performance monitoring utilities such as mpstat, iostat, sar, and isag Multiple Processor Statistics (mpstat) utility Command that displays CPU statistics

Monitoring Performance with sysstat Utilities Input/Output Statistics (iostat) command Command that displays Input/Output statistics for block devices System Activity Reporter (sar) command Command that displays various system statistics

Monitoring Performance with sysstat Utilities Table 14-2: Common options to the sar command

Monitoring Performance with sysstat Utilities Table 14-2 (continued): Common options to the sar command

Monitoring Performance with sysstat Utilities If there are a large number of pages being sent to and taken from the swap partition, then the system will suffer from slower performance To remedy this, you could add more physical memory (RAM) to the system Interactive System Activity Grapher (isag) command Command used to graph system performance information stored in the /var/log/sa directory

Monitoring Performance with sysstat Utilities Figure 14-9: Choosing a file to view using the System Activity Grapher

Monitoring Performance with sysstat Utilities Figure 14-10: Choosing statistics using the System Activity Grapher

Monitoring Performance with sysstat Utilities Figure 14-11: Viewing user statistics using the System Activity Grapher

Other Performance Monitoring Utilities free command Command used to display memory and swap statistics vmstat command Command used to display memory, CPU, and swap statistics

Kernel Modules Many device drivers and kernel features are compiled into the kernel However, these may also be inserted into the kernel as modules to reduce the size of the kernel It is good form to compile standard device support into the kernel and leave support for other devices and features as modules

Kernel Modules insmod command modprobe command lsmod command Command used to insert a module into the Linux kernel modprobe command Command used to insert a module and all necessary prerequisites modules into the Linux kernel lsmod command Command that lists modules currently used by the Linux kernel

Kernel Modules rmmod command /etc/modules.conf file Command that removes a module from the Linux kernel /etc/modules.conf file File used to load and alias modules at system initialization /etc/rc.d/rc.local file File used to load modules at system initialization

Compiling a New Linux Kernel To gain certain hardware or kernel support, it may be necessary to recompile the current kernel with different features or download the source code for a newer kernel and compile it /usr/src/linux The directory that contains source code for the Linux kernel during compilation

Compiling a New Linux Kernel Figure 14-12: The make menuconfig interface

Compiling a New Linux Kernel Figure 14-13: The make xconfig interface

Compiling a New Linux Kernel Figure 14-14: Configuring code maturity level options

Compiling a New Linux Kernel Figure 14-15: Configuring USB support

Patching the Linux Kernel To install a more current Linux kernel version, you normally download the source code for that kernel and place it in a directory that will be referenced by /usr/src/linux Patch command Command used to supply a patch to the Linux kernel source code

Chapter Summary After installation, Linux administrators monitor the system, perform proactive and reactive maintenance, and document important system information Common troubleshooting procedures involve collecting data to isolate and determine the cause of system problems, as well as implementing and testing solutions that can be documented for future use System problems may be categorized as hardware- or software-related

Chapter Summary IRQ conflicts, invalid hardware settings, absence of kernel support, and hard disk failure are common hardware-related problems on Linux systems Software-related system problems may be further categorized as application-related or operating system-related System performance is affected by a variety of hardware and software factors

Chapter Summary Using performance monitoring utilities to create a baseline is helpful when diagnosing performance problems in the future System features and hardware support may be compiled into the Linux kernel or provided by a kernel module You may compile a Linux kernel with only the necessary features and support in order to increase system performance