Hp education services education.hp.com 85 System Crash Dump Version C.00 H4264S Module 9 Slides.

Slides:



Advertisements
Similar presentations
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.
Advertisements

© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice OpenVMS Guests Under HPVM Barry Kierstein.
Utilizing the GDB debugger to analyze programs Background and application.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Linux Booting Procedure
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 2 Booting and Shutting Down Kim Grempler (Sections 2.0 to 2.3) Leon Dague (Sections 2.4 to 2.7)
Operating-System Structures
Exploring the UNIX File System and File Security
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
Memory Management (II)
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
OPERATING SYSTEMS Introduction
Guide To UNIX Using Linux Third Edition
Linux Operating System
CCNA 2 v3.1 Module 2.
WANs and Routers Routers. Router Description Specialized computer Like a general purpose PC, a router has:  CPU  Memory  System Bus Connecting Internal.
Linux Operations and Administration
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
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 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
Guide To UNIX Using Linux Fourth Edition
Booting and boot levels
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
Manage Directories and Files in Linux
Computer Programming for Biologists Oct 30 th – Dec 11 th, 2014 Karsten Hokamp  Fill out.
Hp education services education.hp.com 50 LVM Problems Version C.00 H4264S Module 6 Slides.
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.
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.
Chapter Two Exploring the UNIX File System and File Security.
1 Objectives Manage and install new file systems.
The Structure of Processes (Chap 6 in the book “The Design of the UNIX Operating System”)
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.
Getting Started Additional information. Important DOS Commands Getting Started dirlists disk directories verdisplays OS version clsclear command prompt.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Linux Introduction What is Linux? How do you use it?
Linux Architecture Overview 1. Initialization Uboot – hardware init, loads kernel Kernel – remaining initialization, calls “init” Init – 1 st process,
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.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
A Tutorial on Introduction to gdb By Sasanka Madiraju Graduate Assistant Center for Computation and Technology.
70 Starting Network Services Version A.01 H3065S Module 7 Slides.
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 Commands C151 Multi-User Operating Systems.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
135 Shutdown and Reboot Version A.01 H3064S Module 17 Slides.
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.
Ladebug Kernel Debugging Tutorial Bob Lidral. Introduction Kinds of kernel debugging How to use Ladebug for kernel debugging Not how to debug a kernel.
Configuring a Router Module 3 Semester 2. Router Configuration Tasks Name a router Set passwords Examine show commands Configure a serial interface Configure.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Thousands of Linux Installations (and only one administrator) A Linux cluster client for the University of Manchester A V Le Blanc I T Services University.
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
SQL and SQL*Plus Interaction
UBUNTU INSTALLATION
Crash Dump Analysis - Santosh Kumar Singh.
Chapter 2: System Structures
Structure of Unix OS.
Operation System Program 4
Operating System Concepts
Configuring a Router Module 3 Semester 2.
Main Memory Background Swapping Contiguous Allocation Paging
Process Description and Control
COP 4343 Unix System Administration
Linux Architecture Overview.
Chapter 8: Memory Management strategies
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
The UNIX Time Sharing System
Presentation transcript:

hp education services education.hp.com 85 System Crash Dump Version C.00 H4264S Module 9 Slides

© 2001 Hewlett-Packard Company H4264S C 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 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 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 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 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 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 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 Configuring Memory Classes and Dump Devices # crashconf -v CLASS PAGES INCLUDED IN DUMP DESCRIPTION UNUSED no, by default unused pages USERPG 7911 no, by default user process pages BCACHE 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: Total pages included in dump: 8552 DEVICE OFFSET(kB) SIZE (kB) LOGICAL VOL. NAME :0x :0x /dev/vg00/lvol 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 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 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 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 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 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 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