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

The cause and solution of system collapse when Linux upgrades Glibc

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces the causes and solutions of system collapse when Linux upgrades Glibc. In daily operation, I believe that many people have doubts about the causes and solutions of system collapse when Linux upgrades Glibc. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "the causes and solutions of system collapse when Linux upgrade Glibc". Next, please follow the editor to study!

In the Linux system, the Glibc-2.7 version is required when installing the software, but the Glibc version is too low and needs to be upgraded, which leads to the collapse of the system. What is the reason for this? What should we do with it? The following editor will introduce the solution to the collapse of the system when Linux upgrades Glibc.

Phenomenon:

The installation of HP hardware Monitoring (hpasmcli) prompts that you need to rely on Glibc-2.7, while the native Glibc-2.5 needs to upgrade Glibc. Unfortunately, there are more dependency problems during the upgrade. When you think of the smooth installation of hpasmcli on other servers, you want to copy the glibc library files of other servers directly to this machine. The files involved are:

/ lib/libc-2.5.so # 32-bit system

/ lib64/libc-2.5.so # 64-bit system

Because the server system I operate is 64-bit, a large number of kernel errors are reported on the screen immediately when the / lib64/libc-2.5.so file is overwritten, as follows (where host refers to the server hostname):

Message from syslogd@ at Fri Apr 26 18:10:35 2013 . Host kernel: in6b rsp 00007fff8c0b8698 error 4 Message from syslogd@ at Fri Apr 26 18:10:35 2013 . Host kernel: init [1]: segfault at 0000000000000000 rip 00002b28b2052e6b rsp 00007fff8c0b8698 error 4 Message from syslogd@ at Fri Apr 26 18:10:35 2013 . Host last message repeated 17 times Message from syslogd@ at Fri Apr 26 18:10:35 2013 . Host kernel: init [1]: segfau6b rsp 00007fff8c0b8698 error 4 Message from syslogd@ at Fri Apr 26 18:10:35 2013 . Host kernel: init [16b rsp 00007fff8c0b8698 error 4

Then the system crashed and could no longer log in.

Urgently contact the computer room to restart the server and inform you that it cannot be started.

Ah, caused the accident with my own hands!

Main points:

Glibc is the libc library, or c runtime, released by gnu. Glibc is the lowest-level api in linux systems, and almost any other runtime depends on glibc. In addition to encapsulating the system services provided by the linux operating system, glibc itself also provides the implementation of many other necessary functional services. Since glibc includes almost all the common standards of UNIX, it can be expected that its content is all-inclusive.

Advice for upgrading Glibc: do not install Glibc on a running system, otherwise it will cause the system to crash, at least install the new Glibc to a separate directory to ensure that you do not overwrite the Glibc that is currently in use. I covered it ignorantly, embarrassed! )

Solution:

Rush to the computer room. Fortunately, I saved the original library file (libc-2.5.so.bak) in the directory / lib before replacement, and used the Linux system disk to enter "rescue mode", restore the replaced 2 library files, and restart the system.

The system has started normally, so leave it to colleagues in other departments to recover the data.

At this point, the study on "the reasons and solutions for the collapse of the system when Linux upgrades Glibc" is over. I hope to be able to solve your 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

Servers

Wechat

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

12
Report