当前位置:网站首页>No response after heartbeat startup
No response after heartbeat startup
2022-07-04 11:02:00 【Brother Xing plays with the clouds】
Will be heartbeat After applying to online , start-up service heartbeat start, There was no response after discovery , Check the log tail -f /var/log/ha-log as follows :
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.
Always stay here ,heartbeat The managed resources are not started .
At first, there was no clue , Even if viewed debug Logs are useless , Where else will there be error messages ?
Finally thought of service hearbeat status, Finally, I have a hint :
Cannot shmget for process status: Invalid argument
Along this line Baidu , It is found that it is due to kernel.shmmax, It is caused by kernel parameters . Because this machine is an old one , Version is 5.5, And the newly configured 6.5 The server There is no such problem .
My machine shmmax The data setting is too large , Thus, the creation of shared memory fails .
shmmax Kernel parameters define the maximum value of a single shared memory segment , It is generally recommended to use half of the physical memory , The unit is byte .
With 2G For example :2048/2*1024*1024=1073741824
stay /etc/sysctl.conf Add kernel.shmmax=1073741824, It still takes effect after the system is restarted .
After a change ,service heartbeat start, Still not started , Again service hearbeat status Report errors
Cannot shmget for process status: No space left on device
This is because shmall The shared memory setting is too large, resulting in
shmall The kernel parameter defines the number of shared memory pages , It is generally recommended to set the physical memory size , The unit is page ,1 page =4k
With 2G For example :2048*1024*1024/4000= 536870
stay /etc/sysctl.conf Add kernel.shmall=536870, It still takes effect after the system is restarted .
After all the above changes , Again service heartbeat start, Start normally and take over smoothly VIP.
ok, I hope to help you .
边栏推荐
- Understanding of object
- Introduction to canoe automatic test system
- Fundamentals of database operation
- Write a program that uses pointers to set all elements of an int array to 4.18: 0.
- Deepmind proposed a Zuan AI, which specially outputs network attack language
- How to quickly parse XML documents through C (in fact, other languages also have corresponding interfaces or libraries to call)
- First article
- Climb Phoenix Mountain on December 19, 2021
- [Galaxy Kirin V10] [server] FTP introduction and common scenario construction
- Open the neural network "black box"! Unveil the mystery of machine learning system with natural language
猜你喜欢

Jemeter script recording
![[test theory] test process management](/img/d2/65865dffacf38d9a8be720868b75f0.jpg)
[test theory] test process management

F12 clear the cookies of the corresponding web address

Learning XML DOM -- a typical model for parsing XML documents

Elevator dispatching (pairing project) ②

JMeter correlation technology

Installation of ES plug-in in Google browser

Introduction to canoe automatic test system

2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected

Canoe - the third simulation project - bus simulation - 3-2 project implementation
随机推荐
Summary of automated testing framework
Recursive method to achieve full permutation (C language)
Common system modules and file operations
Canoe: distinguish VT, VN and vteststudio from their development history
Strings and characters
I What is security testing
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
DDL language of MySQL database: create, modify alter, delete drop of databases and tables
本地Mysql忘记密码的修改方法(windows)[通俗易懂]
Fundamentals of database operation
First article
Object. Assign () & JS (= >) arrow function & foreach () function
[Galaxy Kirin V10] [desktop] FTP common scene setup
/*Write a loop to output the elements of the list container in reverse order*/
Locust learning record I
Elevator dispatching (pairing project) ①
Summary of collection: (to be updated)
Application and Optimization Practice of redis in vivo push platform
[test theory] test the dimension of professional ability
How to use diff and patch to update the source code