• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

CENTOS 5.4, there is Karnel panic

J Cole

Basic Pleskian
i have a server that will not boot, CENTOS 5.4, there is Karnel panic, unable to load SELint policy.

The problem was after upgrade Plesk to 9.5 the email would not work and I reboot. It will not boot

How do i install a fix without boot up the michine.
I need to instal kernel-2.6.18-194.el5.i686.rpm

Am not a pro.


J Cole
 
Try to boot with any Linux LiveCD, mount your disk and edit /etc/sysconfig/selinux with

SELINUX=disabled

After that try to boot with your kernel.
 
Hello, I got it boot.
in the boot setting i add enforcing=0 and after boot i add enforcing=0 to /etc/grub.conf

J Cole
 
Here is a small script for this.

#!/bin/bash

# This file will load at every start (add to /etc/rc.local)
# Will verify if the kernel is different with the older started kernel and send a mail to you.
# in /boot/grub/grub.conf you need to put panic=5

# Checking whether Root Runs the Application
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root !" 1>&2
exit 1
fi
MAIL='YOURMEMAIL-HERE' // edit this line

RUNKERNEL=`uname -a |awk '{print $3}'`
FILEKERNEL='/etc/krnversion'


# If Kernel Version File does not exist, create it from the current running kernel
if [ ! -f $FILEKERNEL ]; then
echo $RUNKERNEL > $FILEKERNEL
else
GETFILEKERNEL=`cat $FILEKERNEL`
# if the file exists, compare the running kernel with the one on file and if they differ, update the kernel record file with the current kernel & notify the administration
if [ "$RUNKERNEL" != "$GETFILEKERNEL" ]; then
echo $RUNKERNEL > $FILEKERNEL
echo "!!! Warning !!!

Difference found in Kernel Versions between the Running Kernel Version and the Kernel Version File !
This probably happened because of a Kernel Upgrade or the loading of an Older Kernel to compensate for a newer Kernel panic.
Please check the versions below, make a determination and act accordingly:

Running Kernel Version is $RUNKERNEL while the Kernel Version on File is $GETFILEKERNEL

* However, the Kernel Version File was updated to match the Running Kernel Version *
#" > ~anquietas/Desktop/KERNEL_SCRIPT_LOG
| mail -s "Kernel Versios Difference Detected !" MAIL
fi
fi
 
Back
Top