We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byJennifer Hunnicutt
Modified about 1 year ago
hp education services education.hp.com 85 System Crash Dump Version C.00 H4264S Module 9 Slides
© 2001 Hewlett-Packard Company H4264S C.00 86 System Panic An HP-UX system will panic when it encounters a situation in which it does not know how to respond. In these situations, the system halts (it panics). There are three types of system panics: - HPMC - ToC - PANIC
© 2001 Hewlett-Packard Company H4264S C.00 87 High Priority Machine Checks Hardware initiated failures Usually indicate a hardware problem BUT Can also be caused by software.
© 2001 Hewlett-Packard Company H4264S C.00 88 Transfer of Control Can be initiated by the user, usually because the system has hung Can be caused by MC/ServiceGuard, while attempting to ensure data integrity
© 2001 Hewlett-Packard Company H4264S C.00 89 Panics Panics are software failures in kernel mode. The HP-UX kernel has detected an internal problem. The system is “stopping,” because continuing to process could cause more problems. Stopping is safer.
© 2001 Hewlett-Packard Company H4264S C.00 90 System Crash Dump /var/adm/crash crash.0 image.0.1INDEX crash.1 image.0.2vmunix.0 A crash dump is a core image stored to the dump area upon system panic. The dump area is usually primary swap, but it is configurable. The /sbin/savecrash command causes the dump area contents to be saved to dump files. It must be executable. A crash dump consists of the following files in the following directories:
© 2001 Hewlett-Packard Company H4264S C.00 91 Big Picture Memory CPU /var OS Tables Kernel Dump/Swap Disks Dump/Swap #2 1 2 /var/adm/crash/crash.0 image.0.1INDEXimage.0.2vmunix.0
© 2001 Hewlett-Packard Company H4264S C.00 92 Memory Classes Memory BC Text Data Text Data Unused Pages Text Data Kernel text Kernel data (static and dynamic tables) F/S Data As of HP-UX 11.00, physical memory is divided into 8 classes: kcode ksdata kddata fsdata bcache userpg ustack unused Use the crashconf -v command to view the configured memory classes.
© 2001 Hewlett-Packard Company H4264S C.00 93 Configuring Memory Classes and Dump Devices # crashconf -v CLASS PAGES INCLUDED IN DUMP DESCRIPTION -------- ---------- ---------------- ------------------------------------- UNUSED 36007 no, by default unused pages USERPG 7911 no, by default user process pages BCACHE 11559 no, by default buffer cache pages KCODE 1507 no, by default kernel code pages USTACK 191 yes, by default user process stacks FSDATA 89 yes, by default file system metadata KDDATA 4093 yes, by default kernel dynamic data KSDATA 4179 yes, by default kernel static data Total pages on system: 65536 Total pages included in dump: 8552 DEVICE OFFSET(kB) SIZE (kB) LOGICAL VOL. NAME ------------ ---------- ---------- ------------ ------------------------- 31:0x005000 72544 245760 64:0x000002 /dev/vg00/lvol2 ---------- 245760 The crashconf command allows configuration of dynamic memory classes and dump devices while the system is up and running: # crashconf -i userpg # crashconf -e fsdata # crashconf /dev/vg01/dumplvol # crashconf -v
© 2001 Hewlett-Packard Company H4264S C.00 94 How Much Dump Space Is Needed? Buffer Cache Text Data Text Data Free Pages Text data Kernel text Kernel data (OS tables) Memory (2 GB) Selective items are dumped! Disk Swap (1.5 GB)
© 2001 Hewlett-Packard Company H4264S C.00 95 Dump Configuration Startup Files Pool of startup/shutdown scripts Data Configuration Files /etc/rc.config.d /sbin/init.d rc script crashconf savecrash...... crashconf savecrash...... /sbin/rc1.d S080crashconf S440savecore start
© 2001 Hewlett-Packard Company H4264S C.00 96 Obtaining the Crash Dump Message /var/adm/crash/crash.0 image.0.1INDEXvmunix.0 corefile Procedure for Extracting the Dump Message from the Crash Files /tmp kernfile # crashutil -v COREFILE /var/adm/crash/crash.0 \ /tmp/corefile /tmp/kernfile # cd /tmp # adb -k kernfile corefile msgbuf+8/s... Panic: Data page fault... $q # Note: Enter $ q to quit/terminate
© 2001 Hewlett-Packard Company H4264S C.00 97 The Interactive Editor — ied Provides command rerun, recall, search, and editing in any interactive utility Uses the EDITOR shell variable Creates utility command history in -h filename #export EDITOR=vi #ied -h ~root/.q4_history interactive utility or command
© 2001 Hewlett-Packard Company H4264S C.00 98 Another Debugger — q4 Displays kernel, process, and thread symbols, structures, and unions Uses Perl scripts Includes commands in /usr/contrib/bin Includes documentation in /usr/contrib/do c Installs from compressed tarball in /usr/contrib/lib –cd /usr/contrib/lib –uncompress Q4Lib.tar.Z –tar xvf Q4Lib.tar Prepare the kernel for debugging with q4: –q4pxdb /stand/vmunix # Live Kernel –q4pxdb /var/adm/crash/crash.0/vmunix # Crash dump Kernel
© 2001 Hewlett-Packard Company H4264S C.00 99 q4 Documentation, Commands, and Syntax q4 help lists, commands, topics, and syntax q4> help q4> help topic q4> help examine Commands to retrieve basic system information and status q4> load struct utsname from &utsname; print -t System versions q4> examine panicstr using s Panic string q4> examine &msgbuf+8 using s Console message buffer q4> examine &time using Y System time at the crash q4> examine &boot_string using s Bootstring (device path and kernel name) q4> examine &nproc using D Maximum # of processes (full word decimal) q4> examine &maxfiles_lim using D Maximum # of file descriptors/proc q4> examine &maxdsiz using D Maximum amount of private data q4> examine &maxvgs using D Maximum # of volume groups exit or quit or bye to exit the debugger
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.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Ladebug Kernel Debugging Tutorial Bob Lidral. Introduction Kinds of kernel debugging How to use Ladebug for kernel debugging Not how to debug a kernel.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Linux Booting Procedure SKBEJ. 2 How Linux boot?
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Utilizing the GDB debugger to analyze programs Background and application.
Booting and boot levels. 05/09/20152 …The Boot Process Linux uses the init command and a directory structure based on run-levels to start running the.
OPERATING SYSTEMS Introduction Lots of choices in operating systems. (ex.)unix, windows, chorus, Mac, etc Lots of factors in deciding an operating system.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
Hp education services education.hp.com 50 LVM Problems Version C.00 H4264S Module 6 Slides.
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
Linux Architecture Overview 1. Initialization Uboot – hardware init, loads kernel Kernel – remaining initialization, calls “init” Init – 1 st process,
1 Objectives Manage and install new file systems.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
1 Memory Management (II) Chapter 8. 2 Paging Implementation n Each page table entry contains a present bit to indicate whether the page is in main memory.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
System Administration – Part 2. Devices in UNIX are files: A device can be accessed with different file names All device files are stored in /dev or its.
Linux Operations and Administration Chapter Ten Apache Web Server.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
A Tutorial on Introduction to gdb By Sasanka Madiraju Graduate Assistant Center for Computation and Technology.
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp Fill out.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Cs431-cotter1 Linux Operating System Review Chapter 10.
1 CCNA 2 v3.1 Module 2. 2 CCNA 2 Module 2 Introduction to Routers.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
Objectives To describe the services an operating system provides to users, processes, and other systems To discuss the various ways of structuring an.
Chapter 2 Booting and Shutting Down Kim Grempler (Sections 2.0 to 2.3) Leon Dague (Sections 2.4 to 2.7)
135 Shutdown and Reboot Version A.01 H3064S Module 17 Slides.
Drivers and the kernel1-1 Drivers and the kernel UNIX system has three layers: m The hardware m The operating system kernel m The user-level programs Kernel.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Linux Commands C151 Multi-User Operating Systems.
Chapter 2: Exploring the UNIX/Linux File Systems and File Security Guide To UNIX Using Linux Third Edition.
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
Configuring a Router Module 3 Semester 2. Router Configuration Tasks Name a router Set passwords Examine show commands Configure a serial interface Configure.
1 Chapter 3.2 : Virtual Memory What is virtual memory? What is virtual memory? Virtual memory management schemes Virtual memory management schemes Paging.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
计算机系 信息处理实验室 Lecture 6 Management Mechanisms
The Structure of Processes (Chap 6 in the book “The Design of the UNIX Operating System”)
Filesystem Hierarchy Dr. Michael L. Collard 1.
1. This presentation covers : User Interface Administration Files System and Services Management 2.
Chapter Two Exploring the UNIX/Linux File Systems and File Security Guide To UNIX Using Linux Fourth Edition Chapter 2 Unix (31 slides)1 CTEC 110.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 8: Main Memory.
SUSE Linux Enterprise Desktop Administration Chapter 7 Manage Directories and Files.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
WANs and Routers Routers. Router Description Specialized computer Like a general purpose PC, a router has: CPU Memory System Bus Connecting Internal.
© 2017 SlidePlayer.com Inc. All rights reserved.