[Pacemaker] ha_logd and logfile rotation

Lars Ellenberg lars.ellenberg at linbit.com
Wed Aug 7 17:20:47 UTC 2013


On Tue, Aug 06, 2013 at 12:26:02PM -0600, Dan Urist wrote:
> I'm trying to use heartbeat with ha_logd, but I can't find any
> documentation for the proper way to handle log file rotation when using
> ha_logd. The docs at http://linux-ha.org/wiki/Ha.cf state:
> 
> > If the logging daemon is used, all log messages will be sent through
> > IPC to the logging daemon, which then writes them into log files. In
> > case the logging daemon dies (for whatever reason), a warning message
> > will be logged and all messages will be written to log files directly.
> 
> So it's not possible to stop ha_logd, rotate the log files and then
> restart it. How can I rotate log files without restarting heartbeat? 

If you logrotate with "delay compress" or whatever that is called,
it should just notice itself and reopen.

Also, logd is supposed to handle SIGHUP by re-opening the log files.
If it does not do that for you, upgrade.
If it still does not do that, complain again ;-)

-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com

DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.




More information about the Pacemaker mailing list