0% found this document useful (0 votes)
44 views2 pages

Kernel Patching Guide for RHEL Servers

Kernel patching is performed to fix bugs or enhance server performance by updating to the latest kernel, as recommended by Red Hat. The process involves verifying the existing kernel, checking available updates, applying the updates using the yum command, and troubleshooting any boot issues that arise. Rollback procedures are also outlined for different RHEL versions in case of problems after an update.

Uploaded by

bharadwajgopi.pv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views2 pages

Kernel Patching Guide for RHEL Servers

Kernel patching is performed to fix bugs or enhance server performance by updating to the latest kernel, as recommended by Red Hat. The process involves verifying the existing kernel, checking available updates, applying the updates using the yum command, and troubleshooting any boot issues that arise. Rollback procedures are also outlined for different RHEL versions in case of problems after an update.

Uploaded by

bharadwajgopi.pv
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Kernal patching:

1. Why we do kernel patching.


as per recommandations by redhat to fix a bug OR to increse the server
performance by updating latest kernel.
>> Genrelaly customer asks to keep their server update with latest kernel
pathces.
>> And when we raise a redhat case for any issue, sometimes redhat will
recommand to update the server to fix the bugs in old patch level.
2. How do you do kernel patching.
using yum command.
3. Explain the kernel patch upgradation.
When coustomer wants to update any server:
- First verify what is the existing kernel with uname -r command.
- Verify the redhat satillite channels confiured in that server with yum repolist
and redhat-channel -l command.
- Check what are the updates available with yun check-update (also check if any
excludes there in the [Link] file)
- Once we have downtime with the customer , raise a CRQ and procced witg update by
(yum update all ).
- Verify whether [Link] or [Link] updated new kernel as a default kernel.
- Reboot the server.
- Once server is up, validate the kernel with uname -r
4. AFter kernel patch upgradation, server not booting [Link] do you troubleshoot?
- First check the error on console screen.
- Boot the server with old kernel
- check the logs why it is not booting with new kernel.
- Fix the issue accordingly.
5. Have you ever faced any issue that server not booting with new kernel after
kernel update?
Yes, I see couple of times.
a) Once, due to anti virous version. As per the logs,In that server Macfee
antivirous is running which is not compatable with new kernel and it is preventing
the server to boot with new kernel.
Hence first i updated the Macfee and then booted the server. It came to online
without any issues.
b) in another situation, i see issue with initramfs. as ususal i booted with old
kernel and removed the new kernel and again reinstalled the kernel and booted
again.
5. After yum update kernel is not updated even updates are available. What could be
the reason?
6. How to role back the kernel update?
7. tell me the latest kernels in RHEL6 and 7.
8. How to roleback tthe kernel updates.
a) Rollback steps for RHEL 5.11 servers
# rpm -Uhv --rollback '8 hours ago'
# shutdown -r now "CRQ000000215186 Rollback"
b) Rollback steps RHEL 6.10 servers
# yum --disableexcludes=all rollback last
# shutdown -r now "CRQ000000215186 Rollback"
9) how to understand uname -r command?
Example:
# Kernel version - 2.6.18...
a. 2.6 = major version
b. .18 = minor version
c. anything else after the minor version indicates that the kernel was patched by
the distributor
10)How will you do kernel upgrade in your invironment.
If servers are bulk, Releage managment will do the patching with [Link]
are like L1 [Link] they face any issue after patching again they will escalate to
us to fix.
We do with yum command only if we have multiple teams involved (like DB &
Applications Team)

Common questions

Powered by AI

If a server fails to boot after a kernel update, the troubleshooting steps include: 1) Check the error messages on the console screen. 2) Boot the server using the previous kernel. 3) Analyze the logs to determine why the new kernel failed to boot. 4) Address the identified issue, which could involve actions like updating incompatible software such as antivirus or issues with initramfs .

The 'uname -r' command is used to display the current kernel version, showing the major and minor version numbers and any additional identifiers indicating patches by the distributor. This command helps in managing and verifying kernel versions before and after patching, providing clear insights into the kernel state before proceeding with other updates or troubleshooting .

Rolling back to a previous kernel version in RHEL involves different commands based on the version: For RHEL 5.11, use the command 'rpm -Uhv --rollback '8 hours ago'' followed by 'shutdown -r now'. For RHEL 6.10, the command is 'yum --disableexcludes=all rollback last' followed by 'shutdown -r now'. These procedures ensure that the system reverts to the previously stable kernel version .

Potential compatibility issues after a kernel update include software conflicts, as seen with antivirus programs like McAfee that may not be compatible with the new kernel. Resolving such issues by updating incompatible software ensures that the server is able to boot with the new kernel, thereby improving overall server functionality and security through the latest kernel features and fixes .

A kernel might not be set as default after an upgrade if the configuration files grub.conf or grub2.cfg were not updated properly, possibly due to user error or script failure during the update process. To verify, you can check these configuration files to ensure the new kernel is set as the default boot entry and match it with the latest installed kernel version using 'uname -r' .

Coordinating kernel updates with other teams such as Database and Application teams is crucial to prevent downtime and conflicts. Challenges that might arise include scheduling downtime suitable for all teams, ensuring compatibility of all applications with the new kernel, and aligning testing processes across teams. Effective communication and planning are essential to address these issues and ensure smooth transitions during updates .

Issues that might prevent a kernel from updating even when updates are available include exclusions in the yum.conf file and incorrect repository configurations. To resolve these, ensure there are no unnecessary excludes in yum.conf and verify that the repositories are correctly configured with all necessary channels .

In environments with a large number of servers and multiple teams, kernel upgrade processes are often managed by Release Management using automation. This allows the L1 Team to handle initial installations and routine updates automatically. If issues arise post-patch, they are escalated to L2 Teams for resolution. This division of roles helps streamline operations and ensures that only complex problems are passed on to more skilled teams .

Kernel patching is recommended to fix bugs or increase server performance by updating to the latest kernel version. Customers typically request kernel updates to ensure their servers are up-to-date with the latest patches, as recommended by Red Hat or to resolve issues that may have been identified in older patch levels .

The kernel upgrade process using the yum command involves several steps: 1) Verify the existing kernel version with the 'uname -r' command. 2) Check the configured Red Hat Satellite channels using 'yum repolist' and 'redhat-channel -l'. 3) Identify available updates with 'yum check-update'. 4) After scheduling downtime, raise a CRQ and proceed with 'yum update all'. 5) Confirm that grub.conf or grub2.cfg has been updated to set the new kernel as default. 6) Reboot the server and validate the new kernel with 'uname -r' .

You might also like