当前位置:网站首页>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 .
边栏推荐
- Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
- Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
- Huge number multiplication (C language)
- Learning XML DOM -- a typical model for parsing XML documents
- [testing theory] thinking about testing profession
- 守护进程Xinted和日志记录Syslogd
- shell awk
- re. Sub() usage
- Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
- Snake (C language)
猜你喜欢
JMeter common configuration components and parameterization
[Galaxy Kirin V10] [server] NUMA Technology
Virtual machine configuration network
Introduction to canoe automatic test system
Canoe the second simulation engineering xvehicle 3 CAPL programming (operation)
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
Canoe: what is vtsystem
[Galaxy Kirin V10] [desktop] build NFS to realize disk sharing
Elevator dispatching (pairing project) ③
Network connection (III) functions and similarities and differences of hubs, switches and routers, routing tables and tables in switches, why do you need address translation and packet filtering?
随机推荐
Article publishing experiment
Hidden C2 tunnel -- use of icmpsh of ICMP
Huge number multiplication (C language)
Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
Canoe: what is vtsystem
[untitled]
Application and Optimization Practice of redis in vivo push platform
[Galaxy Kirin V10] [desktop] can't be started or the screen is black
Dichotomy search (C language)
Learning XML DOM -- a typical model for parsing XML documents
Quick sort (C language)
The last month before a game goes online
Replace() function
Write a program that uses pointers to set all elements of an int array to 4.18: 0.
[Galaxy Kirin V10] [desktop] cannot add printer
How to deal with the relationship between colleagues
本地Mysql忘记密码的修改方法(windows)[通俗易懂]
Using SA token to solve websocket handshake authentication
Fundamentals of database operation
Canoe - the second simulation project -xvihicle1 bus database design (operation)