Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the system cannot be booted when Centos7 upgrades glibc

2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "Centos7 upgrade glibc leads to system can not boot how to solve", in the daily operation, I believe that many people in the Centos7 upgrade glibc caused the system can not boot how to solve the problem, the editor consulted all kinds of information, sorted out a simple and useful method of operation, hope to answer the "Centos7 upgrade glibc caused the system can not boot how to solve" doubt! Next, please follow the editor to study!

I am using centos7 (in theory, this method can only be used for both centos7 and Redhat7)

Note: this method is only for Redhat7/Centos7 or above.

The cause of the problem:

When tuning hbase, it is found that the hadoop native library can be upgraded to optimize hbase. When upgrading the hadoop native library, it is found that the glibc that the hadoop native library depends on is inconsistent with the glibc that the system depends on, so the glibc is upgraded. After querying the corresponding information, the upgrade was completed, and the server was found to be abnormal (unable to boot).

The solution is as follows:

1. Overwrite the installed programs with the rpm package that comes with the system.

two。 As you may not even be able to get into the system at this time, you need to enter the CD into rescue mode to mount the system disk to modify and install the RPM package.

Solution:

1. Download the iso of the installation CD of the system version

two。 To enter rescue mode from CD boot, you need to set CD priority boot in bios and enter rescue mode according to the prompts.

3. After entering rescue mode

4. Go to the directory where the system is located and delete the glibc after the upgrade

# cd / mnt/sysimage/lib64 / / go to the lib64 directory where you want to repair the system # rm-rf * 2.18* / / this action deletes all files with version 2.18 of glibc # cd / / return to the directory of the rescue built-in system

5. Mount the iso image in order to use the rpm package (in this step, the automatic mount is successful, so you don't need to mount it manually. You can use the command df-h to check the CD and mount it successfully)

# mkdir media / / create a directory # mount / dev/cdrom / media / / Mount the CD

6. Install the RPM package

# cd / media/Packages / / go to the directory of the rpm package # rpm-ivh-- force-- root=/mnt/sysimage glibc-* / / install the rpm package related to glibc

7. Restart the computer, the system will automatically repair and restart automatically, at this time the system should be able to return to normal.

At this point, on the "Centos7 upgrade glibc caused the system can not boot how to solve" the study, I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report