Author: Sahil Suri

Troubleshooting a Linux kernel panic after patching

Introduction The term “kernel panic” is nothing short of terrifying for any system administrator. A kernel panic is a desperate safety precaution exercised by the operating system’s kernel upon detecting an internal fatal error which it is either unable to safely recover from or cannot have the system continue to run without having a much higher risk of major data loss. The kernel routines that handle panics, known as panic() in AT&T-derived and BSD Unix source code, are generally designed to output an error message to the console, dump an image of kernel memory to disk for post-mortem debugging, and then either wait for the system to be manually rebooted, or initiate an automatic reboot.  The information provided is of a highly technical nature and aims to assist a system administrator or more specifically a kernel engineer in diagnosing the problem.  Although not very common, kernel panics can also be caused by errors originating outside kernel space. A kernel panic could be caused due to numerous different reasons. In this article, we will be demonstrating the steps we performed to troubleshoot a kernel panic scenario which occurred after we rebooted the system post application of a system patching/update activity.   Background The system on which the kernel panic occurred was running RHEL 6.9 and the panic was caused after we restarted the system to boot it from the new...

Read More

Introduction to upstart system initialization program

Introduction In our earlier articles, we’ve discussed the sysVinit and systemd service managers. In this article, we shift our focus to upstart and understand what is upstart and how it works. We’ll also discuss why OS distributions considered using upstart over init or a combination of upstart and init. Upstart was written by Scott James Remnant, a former employee of Canonical Ltd in 2006. It was started as an ambitious project as somewhat of a hybrid of SysVinit and Systemd. Upstart was originally developed for the Ubuntu distribution but is intended to be suitable for deployment in all Linux distributions as a replacement for the venerable System-V init. It was heavily adopted in Ubuntu and partially adopted in Centos 6 and RHEL 6. But it did not become very popular and all major enterprise distributions including Ubuntu shifted to systemd in their latest stable releases being Ubuntu 16.04 and RHEL/Centos 7.   What is upstart? Like sysvinit and systemd upstart is a program that handles the system initialization process after the kernel is loaded. The system initialization is a critical part of operating system functionality is it controls the operation of every script and service. Upstart, like it’s counterparts manages services not only during system boot or shutdown but constitutes management of existing services while the system is running and also the addition or removal of services or scripts from the...

Read More

Introducing systemd

Introduction The systemd system and service manager is relatively new for our Enterprise Linux operating systemd but has been under development by Redhat since 2010 on the Fedora platform. It was created by Redhat developers Lennart Poettering and Kay Sievers to provide a standard process for controlling which programs start when a Linux system boots. In one of our previous articles, we talked about the sysVinit system and service manager. In this article, we will introduce you to systemd and describe the advantages which have led systemd to replace sysVinit.   What is systemd? Like sysVinit, systemd is a system and service manager which means it controls how different services are started and stopped during system boot and shutdown respectively. It also controls how new services (usually daemon-based services) are added to the system and managed thereafter. Systemd also replaces the concept of run levels which was part of sysVinit with targets which we will discuss in this article.   How does systemd work? First, let’s mention that systemd replaces init as the process with the PID 1. We can verify it by using the top command as shown below: [root@linuxnix ~]# top -p 1 -n 1 top - 03:55:41 up 17 min, 1 user, load average: 0.01, 0.02, 0.05 Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.3 us, 0.5 sy, 0.0 ni, 98.2...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.