How Do I Roll Back the Kernel Version If I Mistakenly Upgrade the Kernel?
Scenarios
SDI, RAID, and IB hardware drivers of the BMS are related to the kernel. You are not advised to upgrade the kernel version.
If you have upgraded the kernel, perform the operations in this section. This section uses CentOS 7.2 as an example to describe how to set the BMS OS to start from the default kernel if you have upgraded the kernel.
Upgrade Scenario
- Run the uname -a command to query the current kernel version.
[root@bms-centos ~]# uname -a Linux bms-centos 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- Run the yum update kernel command to upgrade the kernel.
- Run the cat /boot/grub2/grub.cfg |grep menuentry command to check the kernel information of the OS after the upgrade.
As shown in the following figure, 3.10.0-327.el7.x86_64 is the default kernel version and 3.10.0-862.3.2.el7.x86_64 is the upgraded kernel version.
Emergency Settings After Kernel Upgrade
- Run the following commands to set the original kernel version as the default startup kernel and verify the modification result:
grub2-set-default "CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)"
grub2-editenv list
[root@bms-centos ~]# grub2-editenv list saved_entry-CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)
- After the verification is complete, restart the OS from the default kernel.
- Run the uname -a command to check whether the kernel version is restored.
OS FAQ FAQs
- Can I Install or Upgrade BMS OSs by Myself?
- Can the BMS OS Be Replaced?
- Is a GUI Provided for BMS OSs?
- Is an Upload Tool Delivered with BMS OSs?
- How Do I Configure the Static Host Name of a BMS?
- How Do I Set the Password Validity Period?
- How Do I Set SSH Configuration Items?
- How Can I Handle the Eight-Hour Difference Between the Windows BMS and Local Time
- How Do I Change the SID of a Windows Server 2012 BMS?
- How Do I Change the Kernel Version of CentOS 7 BMSs?
- How Do I Reserve Log Space If the Root Partition Automatically Expands Disks?
- How Do I Roll Back the Kernel Version If I Mistakenly Upgrade the Kernel?
- How Do I Increase the Swap Partition Size?
- How Do I Increase the Size of the Root Partition of a BMS Which Is Quickly Provisioned?
- Common Linux Commands
- How Do I Update the Disk Metadata After the LVM Volume Is Remounted?
- How Do I Handle a Network Failure After Services Are Switched from a Windows BMS Booted from an EVS Disk to an HA BMS?
Feedback
Was this page helpful?
Provide feedbackFor any further questions, feel free to contact us through the chatbot.
Chatbotmore