Solution to the system abnormality (unable to boot) caused by upgrading glibc in Centos7

Solution to the system abnormality (unable to boot) caused by upgrading glibc in Centos7

I am using centos7 (theoretically this method can be used to solve the problem only for centos7 and Redhat7)

Note: This method is only applicable to Redhat7/Centos7 and above.

Cause of the problem:

When tuning hbase, I checked the information and found that I could upgrade the hadoop local library to optimize hbase. When upgrading the hadoop local library, it was found that the glibc that the hadoop local library depends on and the glibc that the system depends on were inconsistent, so glibc was upgraded. After querying the corresponding information and completing the upgrade, it was found that the server was abnormal (unable to boot).

Solution:

1. Use the system's own rpm package to overwrite the installed program.
2. Since you may not even be able to enter the system at this time, you need to use the CD to enter the rescue mode to mount the system disk to modify and install the rpm package

Solution:

1. Download the iso of the system version installation CD
2. Boot from the CD to enter the rescue mode. You need to set the CD to boot first in the BIOS and enter the rescue mode according to the prompts.

insert image description here

3. After entering rescue mode

insert image description here

4. Enter the system directory and delete the glibc after the previous upgrade

# cd /mnt/sysimage/lib64 //Enter the lib64 directory of the system to be repaired# rm -rf *2.18* //This operation will delete all files related to the 2.18 version of glibc# cd / //Return to the directory of the rescue system

5. Mount the iso image to use the rpm package (this step is successful in my case, so you don’t need to mount it manually. You can use the command df -h to check if the CD is mounted successfully)

# mkdir media //Create directory # mount /dev/cdrom /media //Mount the CD

6. Install the rpm package

# cd /media/Packages //Enter the rpm package directory # rpm -ivh --force --root=/mnt/sysimage glibc-* //Install rpm packages related to glibc

7. Restart the computer, the system will be automatically repaired and restarted. At this time, the system should be able to return to normal.

This is the end of this article about the solution to the system abnormality (unable to boot) caused by upgrading glibc in Centos7. For more related content about system abnormality caused by upgrading glibc in Centos7, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Solution to "No such file or directory" in locale after installing glibc-2.14 in CentOS6.5
  • Centos6.5 glibc upgrade process introduction
  • CentOS6 upgrade glibc operation steps
  • Detailed process of upgrading glibc dynamic library in centos 6.9

<<:  Simply master the use of horizontal line annotations and code comments in HTML

>>:  A brief introduction to the general process of web front-end web development

Recommend

Introduction to keyword design methods in web design

Many times, we ignore the setting of the web page ...

Tutorial on installing jdk1.8 on ubuntu14.04

1. Download jdk download address我下載的是jdk-8u221-li...

Detailed explanation of MySQL database paradigm

Preface: I have often heard about database paradi...

HTML tags list and usage instructions

List of HTML tags mark type Name or meaning effec...

How to install jupyter in docker on centos and open ports

Table of contents Install jupyter Docker port map...

Detailed discussion of several methods for deduplicating JavaScript arrays

Table of contents 1. Set Deduplication 2. Double ...

JS implements sliding up and down on the mobile terminal one screen at a time

This article shares with you the specific code of...

Detailed tutorial for downloading and installing mysql8.0.21

Official website address: https://www.mysql.com/ ...

How to add fields to a large data table in MySQL

Preface I believe everyone is familiar with addin...

Detailed tutorial on installing Python 3 virtual environment in Ubuntu 20.04

The following are all performed on my virtual mac...

Nginx one domain name to access multiple projects method example

Background Recently, I encountered such a problem...

How to create LVM for XFS file system in Ubuntu

Preface lvm (Logical Volume Manager) logical volu...

How to solve the problem of ERROR 2003 (HY000) when starting mysql

1. Problem Description When starting MYSQL, a pro...