I created a ping check on pacemaker, like so:
pcs resource create ping ocf:pacemaker:ping dampen=5s multiplier=1000 host_list=127.0.0.1 clone
Used something other than 127.0.0.1 of course.
Here's the source code: https://github.com/ClusterLabs/pacemaker/blob/master/extra/resources/ping
The ping check foresees an rc code of 0, 1, and any other.
Wanting to see warning and errors, I enabled debug:
pcs resource update ping debug=1
However, instead of logging to /var/log/pacemaker.log
, these messages are logged to /var/log/syslog
.
Articles like this are just descriptors: https://support.sciencelogic.com/s/article/3961
And this is outdated: http://www.beekhof.net/blog/2013/pacemaker-logging
There doesn't seem to be a way to set this. What am I missing?
EDIT: Most guides I'm finding on this assume CentOs.
On Ubuntu, it seems the pacemaker sysconfig it located here:/etc/default/pacemaker
This happens because pacemaker inherits the corosync config in
/etc/corosync/corosync.conf
and this containsYou could check if the pacemaker log is written to corosync.log, in this case you should have this in your corosync.conf:
If you want to have a dedicated
pacemaker.log
you have to add the following configuration items to your/etc/sysconfig/pacemaker
:You can control verbosity with e.g.
Copy the modified config file to all nodes of your cluster and reload pacemaker.