SlideShare a Scribd company logo
Diagnostics of a
Linux System
Understanding Your Operating System




Stephan Barth                       Sander van Vugt
Senior Technical Support Engineer   Independent Trainer and Consultant
stephan.barth@novell.com            mail@sandervanvugt.nl
Overview

      A Few Words About Us


      Basic Parts of a Linux System (theory)


      Analyzing and Debugging


      Other Important Tools and Commands


      Demo: Troubleshooting Server Issues
2   © Novell, Inc. All rights reserved.
Basic Parts of a Linux System
Basic Parts of a Linux System


       Boot loader, e.g. Grub, LILO

       Kernel

       glibc

       init




4   © Novell, Inc. All rights reserved.
Basic Parts of a Linux System

    •   Monolithic kernel with modules
    •   Compiled in options and drivers
         –   zcat /proc/config.gz

    •   Modules that are being loaded
         –   lsmod

         –   dmesg

         –   /proc and /sys



5   © Novell, Inc. All rights reserved.
Basic Parts of a Linux System

    •   Glibc
         –   # /lib/libc.so.6
         –   /etc/ld.so.conf
         –   /etc/ld.so.cache
         –   ldconfig
         –   Timezone
         –   rpm -q --provides glibc
         –   ldd and nm
         –   More info with: info glibc
    •   Try to compile packages on your own
6   © Novell, Inc. All rights reserved.
Basic Parts of a Linux System

    •   init
    •   ldd /sbin/init
    •   /etc/inittab
         –   initial boot

         –   runlevels

         –   tty's




        Demo
7   © Novell, Inc. All rights reserved.
Understanding Your Operating System

    •   What happens during boot?
         –   Kernel start up and initrd
         –   boot options
         –   boot.msg
              >   Examples

         –   module options
         –   debug kernel
         –   MCE
         –   hal
         –   lspci, lsusb
8   © Novell, Inc. All rights reserved.
Understanding Kernel Loading
    from GRUB
    •   GRUB is the first thing that runs when booting the server

    •   Responsible for loading kernel and initrd

    •   root file system is activated as a kernel argument

    •   Specific options can be loaded from the boot prompt




        Demo
9   © Novell, Inc. All rights reserved.
Analyzing and Debugging
Application Debugging

     •   ldd $(which gpg)

     •   rpm -q --requires gpg2

     •   strace / ltrace

     •   objdump

     •   GNU debugger gdb

     •   Valgrind

     •   Closed source software
11   © Novell, Inc. All rights reserved.
Running Services


        strace/ltrace


        Increase debug level


        Change init script – very last option




12   © Novell, Inc. All rights reserved.
Memory and Storage

     •   Memory debugging is difficult

          –   ps

          –   top

          –   sar


     •   Disk usage

          –   df vs. du


13   © Novell, Inc. All rights reserved.
Other Important Tools and Commands
Miscellaneous Tools

     •   Parted

     •   Ethtool

     •   RPM
          –   rpm -qf

          –   rpm -qa --last

          –   zypper

     •   How to find files, packages: ARCHIVES.gz, pin, distpin

15   © Novell, Inc. All rights reserved.
Looking at Startup

     •   Different stages in startup

          –   GRUB

          –   loading of kernel and initrd

          –   init taking over and doing initial boot

          –   init starting runlevels




         Demo
16   © Novell, Inc. All rights reserved.
Novell Tools            ®




         supportconfig


         Novell Support Advisor




17   © Novell, Inc. All rights reserved.
Demo: Troubleshooting Server Issues
Diagnostics of a Linux System
Unpublished Work of Novell, Inc. All Rights Reserved.
This work is an unpublished work and contains confidential, proprietary, and trade secret information of Novell, Inc.
Access to this work is restricted to Novell employees who have a need to know to perform tasks within the scope
of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified,
translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of Novell, Inc.
Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability.


General Disclaimer
This document is not to be construed as a promise by any participating company to develop, deliver, or market a
product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in
making purchasing decisions. Novell, Inc. makes no representations or warranties with respect to the contents
of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any
particular purpose. The development, release, and timing of features or functionality described for Novell products
remains at the sole discretion of Novell. Further, Novell, Inc. reserves the right to revise this document and to
make changes to its content, at any time, without obligation to notify any person or entity of such revisions or
changes. All Novell marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc.
in the United States and other countries. All third-party trademarks are the property of their respective owners.

More Related Content

PDF
Linux kernel modules
PDF
Kernel Configuration and Compilation
PDF
Your first dive into systemd!
PDF
IRQs: the Hard, the Soft, the Threaded and the Preemptible
PDF
Systemd: the modern Linux init system you will learn to love
PPTX
First steps on CentOs7
PDF
A Reimplementation of NetBSD Based on a Microkernel by Andrew S. Tanenbaum
PDF
Effective service and resource management with systemd
Linux kernel modules
Kernel Configuration and Compilation
Your first dive into systemd!
IRQs: the Hard, the Soft, the Threaded and the Preemptible
Systemd: the modern Linux init system you will learn to love
First steps on CentOs7
A Reimplementation of NetBSD Based on a Microkernel by Andrew S. Tanenbaum
Effective service and resource management with systemd

What's hot (20)

PDF
Running Applications on the NetBSD Rump Kernel by Justin Cormack
PDF
Introduction to systemd
PDF
Containers with systemd-nspawn
PDF
Docker_AGH_v0.1.3
PDF
Introduction to NetBSD kernel
PDF
Linux con europe_2014_f
PDF
Full system roll-back and systemd in SUSE Linux Enterprise 12
PDF
Building High Availability Clusters with SUSE Linux Enterprise High Availabil...
ODP
Kvm and libvirt
PPTX
Device drivers Introduction
PPT
linux minimal os tutorial - by shatrix
PDF
OpenWrt From Top to Bottom
PDF
U-Boot - An universal bootloader
PDF
Basic of Systemd
PDF
Pdf c1t tlawaxb
PPTX
Containers and Cloud: From LXC to Docker to Kubernetes
PDF
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
PDF
The Linux Block Layer - Built for Fast Storage
PDF
Systemd mlug-20140614
PDF
Kernel Recipes 2015 - So you want to write a Linux driver framework
Running Applications on the NetBSD Rump Kernel by Justin Cormack
Introduction to systemd
Containers with systemd-nspawn
Docker_AGH_v0.1.3
Introduction to NetBSD kernel
Linux con europe_2014_f
Full system roll-back and systemd in SUSE Linux Enterprise 12
Building High Availability Clusters with SUSE Linux Enterprise High Availabil...
Kvm and libvirt
Device drivers Introduction
linux minimal os tutorial - by shatrix
OpenWrt From Top to Bottom
U-Boot - An universal bootloader
Basic of Systemd
Pdf c1t tlawaxb
Containers and Cloud: From LXC to Docker to Kubernetes
Building a Two Node SLES 11 SP2 Linux Cluster with VMware
The Linux Block Layer - Built for Fast Storage
Systemd mlug-20140614
Kernel Recipes 2015 - So you want to write a Linux driver framework
Ad

Viewers also liked (20)

PPTX
Mastering unix
PDF
Oracle SOA Suite 11g Troubleshooting Methodology
ODP
Building Vibrant Communities - Erfolgreiche Einführung von Enterprise 2.0
PPT
Duncan Allen :: Supporting Healthcare Systems Interoperability
PPTX
eScience, Education and Knowledge Management
PDF
Improving Data for Decision-Making: Leveraging Data Quality Audits in Haryana...
PDF
Dhis2 android user_man
PDF
Methodology Of Enterprise Applications Capacity Planning
PPTX
Responsive Design and Information Architecture with Oracle Web Center Content...
PPTX
PEPFAR’s DATIM4U and Associated Interoperability Components
PPTX
Health Information System: Interoperability and Integration to Maximize Effec...
PPTX
IEEE Presentation
PPTX
Oracle architecture with details-yogiji creations
PPT
OpenStand – Principles for Open Standards and Open Development
PPTX
Database Consolidation using the Oracle Multitenant Architecture
PDF
OOW09 Integration Architecture EBS R12
PPT
Fusion Middleware Oracle Data Integrator
PDF
Trouble shoot with linux syslog
PDF
Linux Shell Scripting Craftsmanship
PPS
UNIX - Class4 - Advance Shell Scripting-P1
Mastering unix
Oracle SOA Suite 11g Troubleshooting Methodology
Building Vibrant Communities - Erfolgreiche Einführung von Enterprise 2.0
Duncan Allen :: Supporting Healthcare Systems Interoperability
eScience, Education and Knowledge Management
Improving Data for Decision-Making: Leveraging Data Quality Audits in Haryana...
Dhis2 android user_man
Methodology Of Enterprise Applications Capacity Planning
Responsive Design and Information Architecture with Oracle Web Center Content...
PEPFAR’s DATIM4U and Associated Interoperability Components
Health Information System: Interoperability and Integration to Maximize Effec...
IEEE Presentation
Oracle architecture with details-yogiji creations
OpenStand – Principles for Open Standards and Open Development
Database Consolidation using the Oracle Multitenant Architecture
OOW09 Integration Architecture EBS R12
Fusion Middleware Oracle Data Integrator
Trouble shoot with linux syslog
Linux Shell Scripting Craftsmanship
UNIX - Class4 - Advance Shell Scripting-P1
Ad

Similar to Diagnostics of a Linux System (20)

PDF
Configure, Pack and Distribute: An RPM Creation Workshop
PDF
Migrate from Red Hat to SUSE Linux Enterprise Server
PDF
Securing Your Linux System
PPTX
Saeed al ali 10 bb
PDF
#WeSpeakLinux Session
PDF
The Ultimate IBM and Lotus on Linux Workshop for Windows Admins
PDF
OSMC 2010 | Insides SUSE Linux by Joachim Werner
PDF
BrainShare 2010 SLC - ELS306 Linux Disaster Recovery Made Easy
PDF
Linux Disaster Recovery Made Easy
PDF
Linux Presentation_SSD.pdf
PDF
Download Integrating Novell Open Enterprise Server for Linux ebook All Chapte...
PPT
Unix Administration 2
PDF
An Introduction To Linux
PPT
PDF
24HOP Introduction to Linux for SQL Server DBAs
PPT
Linux interview questions-ppt
PDF
Course 102: Lecture 22: Package Management
PPT
Linux concept workshop
Configure, Pack and Distribute: An RPM Creation Workshop
Migrate from Red Hat to SUSE Linux Enterprise Server
Securing Your Linux System
Saeed al ali 10 bb
#WeSpeakLinux Session
The Ultimate IBM and Lotus on Linux Workshop for Windows Admins
OSMC 2010 | Insides SUSE Linux by Joachim Werner
BrainShare 2010 SLC - ELS306 Linux Disaster Recovery Made Easy
Linux Disaster Recovery Made Easy
Linux Presentation_SSD.pdf
Download Integrating Novell Open Enterprise Server for Linux ebook All Chapte...
Unix Administration 2
An Introduction To Linux
24HOP Introduction to Linux for SQL Server DBAs
Linux interview questions-ppt
Course 102: Lecture 22: Package Management
Linux concept workshop

More from Novell (20)

PDF
Filr white paper
PDF
Social media class 4 v2
PDF
Social media class 3
PDF
Social media class 2
PDF
Social media class 1
PDF
Social media class 2 v2
PDF
LinkedIn training presentation
PDF
Twitter training presentation
PDF
Getting started with social media
PDF
Strategies for sharing and commenting in social media
PPT
Information Security & Compliance in Healthcare: Beyond HIPAA and HITECH
PPT
Workload iq final
PDF
The Identity-infused Enterprise
PDF
Shining the Enterprise Light on Shades of Social
PDF
Accelerate to the Cloud
PDF
The New Business Value of Today’s Collaboration Trends
PDF
Preventing The Next Data Breach Through Log Management
PDF
Iaas for a demanding business
PDF
Workload IQ: A Differentiated Approach
PDF
Virtual Appliances: Simplifying Application Deployment and Accelerating Your ...
Filr white paper
Social media class 4 v2
Social media class 3
Social media class 2
Social media class 1
Social media class 2 v2
LinkedIn training presentation
Twitter training presentation
Getting started with social media
Strategies for sharing and commenting in social media
Information Security & Compliance in Healthcare: Beyond HIPAA and HITECH
Workload iq final
The Identity-infused Enterprise
Shining the Enterprise Light on Shades of Social
Accelerate to the Cloud
The New Business Value of Today’s Collaboration Trends
Preventing The Next Data Breach Through Log Management
Iaas for a demanding business
Workload IQ: A Differentiated Approach
Virtual Appliances: Simplifying Application Deployment and Accelerating Your ...

Diagnostics of a Linux System

  • 1. Diagnostics of a Linux System Understanding Your Operating System Stephan Barth Sander van Vugt Senior Technical Support Engineer Independent Trainer and Consultant stephan.barth@novell.com mail@sandervanvugt.nl
  • 2. Overview A Few Words About Us Basic Parts of a Linux System (theory) Analyzing and Debugging Other Important Tools and Commands Demo: Troubleshooting Server Issues 2 © Novell, Inc. All rights reserved.
  • 3. Basic Parts of a Linux System
  • 4. Basic Parts of a Linux System Boot loader, e.g. Grub, LILO Kernel glibc init 4 © Novell, Inc. All rights reserved.
  • 5. Basic Parts of a Linux System • Monolithic kernel with modules • Compiled in options and drivers – zcat /proc/config.gz • Modules that are being loaded – lsmod – dmesg – /proc and /sys 5 © Novell, Inc. All rights reserved.
  • 6. Basic Parts of a Linux System • Glibc – # /lib/libc.so.6 – /etc/ld.so.conf – /etc/ld.so.cache – ldconfig – Timezone – rpm -q --provides glibc – ldd and nm – More info with: info glibc • Try to compile packages on your own 6 © Novell, Inc. All rights reserved.
  • 7. Basic Parts of a Linux System • init • ldd /sbin/init • /etc/inittab – initial boot – runlevels – tty's Demo 7 © Novell, Inc. All rights reserved.
  • 8. Understanding Your Operating System • What happens during boot? – Kernel start up and initrd – boot options – boot.msg > Examples – module options – debug kernel – MCE – hal – lspci, lsusb 8 © Novell, Inc. All rights reserved.
  • 9. Understanding Kernel Loading from GRUB • GRUB is the first thing that runs when booting the server • Responsible for loading kernel and initrd • root file system is activated as a kernel argument • Specific options can be loaded from the boot prompt Demo 9 © Novell, Inc. All rights reserved.
  • 11. Application Debugging • ldd $(which gpg) • rpm -q --requires gpg2 • strace / ltrace • objdump • GNU debugger gdb • Valgrind • Closed source software 11 © Novell, Inc. All rights reserved.
  • 12. Running Services strace/ltrace Increase debug level Change init script – very last option 12 © Novell, Inc. All rights reserved.
  • 13. Memory and Storage • Memory debugging is difficult – ps – top – sar • Disk usage – df vs. du 13 © Novell, Inc. All rights reserved.
  • 14. Other Important Tools and Commands
  • 15. Miscellaneous Tools • Parted • Ethtool • RPM – rpm -qf – rpm -qa --last – zypper • How to find files, packages: ARCHIVES.gz, pin, distpin 15 © Novell, Inc. All rights reserved.
  • 16. Looking at Startup • Different stages in startup – GRUB – loading of kernel and initrd – init taking over and doing initial boot – init starting runlevels Demo 16 © Novell, Inc. All rights reserved.
  • 17. Novell Tools ® supportconfig Novell Support Advisor 17 © Novell, Inc. All rights reserved.
  • 20. Unpublished Work of Novell, Inc. All Rights Reserved. This work is an unpublished work and contains confidential, proprietary, and trade secret information of Novell, Inc. Access to this work is restricted to Novell employees who have a need to know to perform tasks within the scope of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of Novell, Inc. Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability. General Disclaimer This document is not to be construed as a promise by any participating company to develop, deliver, or market a product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. Novell, Inc. makes no representations or warranties with respect to the contents of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The development, release, and timing of features or functionality described for Novell products remains at the sole discretion of Novell. Further, Novell, Inc. reserves the right to revise this document and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. All Novell marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-party trademarks are the property of their respective owners.