当前位置:网站首页>Heartbeat启动后无反应
Heartbeat启动后无反应
2022-07-04 10:55:00 【星哥玩云】
在将heartbeat应用到线上后,启动service heartbeat start,发现之后就再没反应了,查看日志tail -f /var/log/ha-log如下:
heartbeat[30680]: 2015/01/27_18:04:29 info: Version 2 support: false heartbeat[30680]: 2015/01/27_18:04:29 WARN: Logging daemon is disabled --enabling logging daemon is recommended heartbeat[30680]: 2015/01/27_18:04:29 info: ************************** heartbeat[30680]: 2015/01/27_18:04:29 info: Configuration validated. Starting heartbeat 2.1.3 heartbeat[30681]: 2015/01/27_18:04:29 info: heartbeat: version 2.1.3 heartbeat[30681]: 2015/01/27_18:04:29 WARN: No Previous generation - starting at 1422353070 heartbeat[30681]: 2015/01/27_18:04:29 info: Heartbeat generation: 1422353070 heartbeat[30681]: 2015/01/27_18:04:29 info: No uuid found for current node - generating a new uuid. heartbeat[30681]: 2015/01/27_18:04:29 info: Creating FIFO /var/lib/heartbeat/fifo.
一直保持在此不动,heartbeat所管理的资源也没有启动。
刚开始没有任何头绪,即使查看debug日志也没有什么作用,还会有什么地方会有报错信息呢?
终于想到service hearbeat status,终于有所提示:
Cannot shmget for process status: Invalid argument
顺着这根线百度,查到是由于kernel.shmmax,是内核参数导致的。因为这台机器是老机器,版本为5.5,而新配置的6.5服务器没有这个问题。
我的机器shmmax数据设置的过大,从而导致创建共享内存失败。
shmmax内核参数定义单个共享内存段的最大值,一般建议使用物理内存的一半,单位为字节。
以2G为例:2048/2*1024*1024=1073741824
在/etc/sysctl.conf中添加kernel.shmmax=1073741824,在系统重启后仍生效。
改完之后,service heartbeat start,仍未启动,再次service hearbeat status报错
Cannot shmget for process status: No space left on device
这是由于shmall共享内存设置过大导致
shmall内核参数定义共享内存页数,一般建议设置为物理内存大小,单位为页,1页=4k
以2G为例:2048*1024*1024/4000= 536870
在/etc/sysctl.conf中添加kernel.shmall=536870,在系统重启后仍生效。
以上全部改完后,再次service heartbeat start,正常启动且顺利接管VIP。
ok,希望给大家带来帮助。
边栏推荐
- JMeter assembly point technology and logic controller
- [Galaxy Kirin V10] [server] NUMA Technology
- Aike AI frontier promotion (2.14)
- 51 data analysis post
- Introduction to tree and binary tree
- Canoe - the third simulation project - bus simulation - 3-2 project implementation
- The bamboo shadow sweeps the steps, the dust does not move, and the moon passes through the marsh without trace -- in-depth understanding of the pointer
- 2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
- Appscan installation error: unable to install from Net runtime security policy logout appscan solution
- Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
猜你喜欢
Canoe - the third simulation project - bus simulation - 3-1 project implementation
C language structure to realize simple address book
Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
Network connection (II) three handshakes, four waves, socket essence, packaging of network packets, TCP header, IP header, ACK confirmation, sliding window, results of network packets, working mode of
[Galaxy Kirin V10] [server] system partition expansion
Quick sort (C language)
Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
[Galaxy Kirin V10] [server] failed to start the network
VI text editor and user rights management, group management and time management
BGP advanced experiment
随机推荐
Canoe-the second simulation project-xvehicle-1 bus database design (idea)
Postman interface test
unit testing
Canoe - the third simulation project - bus simulation - 3-1 project implementation
Capl: timer event
Huge number (C language)
[Galaxy Kirin V10] [desktop] printer
[Galaxy Kirin V10] [desktop] cannot add printer
Appscan installation steps
Basic function exercises
[Galaxy Kirin V10] [desktop] login system flash back
[advantages and disadvantages of outsourcing software development in 2022]
On binary tree (C language)
Introduction to tree and binary tree
How to quickly parse XML documents through C (in fact, other languages also have corresponding interfaces or libraries to call)
Article publishing experiment
Aike AI frontier promotion (2.14)
/*Write a function to open the file for input, read the contents of the file into the vector container of string class 8.9: type, and store each line as an element of the container object*/
Dichotomy search (C language)
Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)