Heartbeat 无法将目录切换至

Heartbeat 无法将目录切换至

我在启动 heartbeat 3.0.5 时遇到了一些错误,/var/log/ha-log 的输出如下:

[root@localhost ha.d]# tail -200  /var/log/ha-log  
Apr 20 21:52:16 localhost heartbeat: [2215]: info: Pacemaker support: false
Apr 20 21:52:16 localhost heartbeat: [2215]: WARN: Logging daemon is disabled --enabling logging daemon is recommended
Apr 20 21:52:16 localhost heartbeat: [2215]: info: **************************
Apr 20 21:52:16 localhost heartbeat: [2215]: info: Configuration validated. Starting heartbeat 3.0.5
Apr 20 21:52:16 localhost heartbeat: [2217]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2217]: info: heartbeat: version 3.0.5
Apr 20 21:52:16 localhost heartbeat: [2217]: WARN: No Previous generation - starting at 1366465937
Apr 20 21:52:16 localhost heartbeat: [2217]: info: Heartbeat generation: 1366465937
Apr 20 21:52:16 localhost heartbeat: [2217]: info: No uuid found for current node - generating a new uuid.
Apr 20 21:52:16 localhost heartbeat: [2217]: info: Creating FIFO /usr/var/lib/heartbeat/fifo.
Apr 20 21:52:16 localhost heartbeat: [2217]: info: glib: UDP Broadcast heartbeat started on port 694 (694) interface eth0
Apr 20 21:52:16 localhost heartbeat: [2217]: info: glib: UDP Broadcast heartbeat closed on port 694 interface eth0 - Status: 1
Apr 20 21:52:16 localhost heartbeat: [2217]: info: glib: ucast: write socket priority set to IPTOS_LOWDELAY on eth0
Apr 20 21:52:16 localhost heartbeat: [2217]: info: glib: ucast: bound send socket to device: eth0
Apr 20 21:52:16 localhost heartbeat: [2217]: info: glib: ucast: bound receive socket to device: eth0
Apr 20 21:52:16 localhost heartbeat: [2217]: info: glib: ucast: started on port 694 interface eth0 to 192.168.121.152
Apr 20 21:52:16 localhost heartbeat: [2217]: info: glib: ping heartbeat started.
Apr 20 21:52:16 localhost heartbeat: [2217]: info: G_main_add_TriggerHandler: Added signal manual handler
Apr 20 21:52:16 localhost heartbeat: [2217]: info: G_main_add_TriggerHandler: Added signal manual handler
Apr 20 21:52:16 localhost heartbeat: [2217]: info: G_main_add_SignalHandler: Added signal handler for signal 17
Apr 20 21:52:16 localhost heartbeat: [2223]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2224]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2225]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2226]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2228]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2222]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2227]: ERROR: Cannot chdir to [/var/lib/heartbeat/cores]: No such file or directory
Apr 20 21:52:16 localhost heartbeat: [2217]: info: Local status now set to: 'up'
Apr 20 21:52:17 localhost heartbeat: [2217]: info: Link 192.168.121.1:192.168.121.1 up.
Apr 20 21:52:17 localhost heartbeat: [2217]: info: Status update for node 192.168.121.1: status ping

任何帮助都将不胜感激!谢谢。

答案1

该问题通过以下方式解决:

  1. 多次创建目录:mkdir /var/lib/heartbeat/cores
  2. 大量创建目录:mkdir /var/lib/heartbeat/cores/root
  3. 多次创建目录:mkdir /var/lib/heartbeat/cores/hacluster

Heartbeat 不会自动创建它们。

谢谢。

相关内容