当前位置:网站首页>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 .
边栏推荐
- VI text editor and user rights management, group management and time management
- [Galaxy Kirin V10] [server] system partition expansion
- [Galaxy Kirin V10] [server] failed to start the network
- JMeter Foundation
- Heartbeat启动后无反应
- 3W word will help you master the C language as soon as you get started - the latest update is up to 5.22
- 守护进程Xinted和日志记录Syslogd
- Analysis function in SQL
- DNS hijacking
- [test theory] test the dimension of professional ability
猜你喜欢
20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
Summary of collection: (to be updated)
Article publishing experiment
Climb Phoenix Mountain on December 19, 2021
Canoe - the third simulation project - bus simulation - 3-1 project implementation
Notes on writing test points in mind mapping
Huge number (C language)
Function introduction of canbedded component
[Galaxy Kirin V10] [desktop] FTP common scene setup
Post man JSON script version conversion
随机推荐
I What is security testing
For and while loops
[Galaxy Kirin V10] [server] KVM create Bridge
Installation of ES plug-in in Google browser
Canoe: what is vtsystem
F12 clear the cookies of the corresponding web address
re. Sub() usage
DDL language of MySQL database: create, modify alter, delete drop of databases and tables
Send a request using paste raw text
Summary of collection: (to be updated)
Getting started with window functions
Deepmind proposed a Zuan AI, which specially outputs network attack language
本地Mysql忘记密码的修改方法(windows)
Post man JSON script version conversion
Performance test overview
Article publishing experiment
[Galaxy Kirin V10] [desktop] login system flash back
[test theory] test phase analysis (unit, integration, system test)
Canoe test: two ways to create CAPL test module
Snake (C language)