The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Kernel Update Best Practices

Discussion in 'Data Protection' started by WorkinOnIt, Mar 13, 2017.

Tags:
  1. WorkinOnIt

    WorkinOnIt Well-Known Member

    Joined:
    Aug 3, 2016
    Messages:
    94
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I manage several servers and recently ran into an issue with updating one of the kernals - after reboot I was completely locked out of the server - SSH keys and even console access would not work due to passwords not being recognised. I eventually solved that issue with the help of a datacentre root pw reset - though it was quite inconvenient to have to reset all keys and passwords.

    The servers are all VPSs on KVM and either CLOUDLINUX 6.8/whm 6.2 or CentOS 7.3

    My questions is;

    1) Why would that have happened;

    2) What is a quick run down of the "best practice" for kernal updates - there does not really seem to be an up to date methodology listed.

    3) On one specific machine, I do not have access to snapshots - would a kernal update on this machine be very high risk? I do have WHM backup enabled - but I assume this is not going to contain the OS files!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Rebooting a machine after a kernel update should not result in an ability to access the server. It's likely something else happened during the reboot that lead to the login credentials failing to work. Could you review /var/log/secure for the time this happened and see what shows up for the failed login attempts?

    Generally, upon installing the new kernel via YUM, you simply reboot the system so that it uses the new kernel.

    Kernel updates are not generally high risk, but it is possible for unforeseen events (e.g. file system errors) to result in the server failing to boot upon issuing the reboot command.

    Thank you.
     
  3. Pankaj K

    Pankaj K Member

    Joined:
    Mar 13, 2017
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    kernel updates are very safe they do not cause any issues. I generally use yum install kernel which installs the new kernel keeping the old kernel as it is. Yes this can cause lot of having lots of old kernel but you can keep clearing old kernels when your /boot is full
     
Loading...

Share This Page