[ClusterLabs] Log rotation for /var/log/debug-pcmk.log
jpokorny at redhat.com
Thu Jan 12 06:33:00 EST 2017
On 11/01/17 18:46 +0000, Andrew Nagy wrote:
> I hope this is the right place....
> We have pacemaker running (on at least one) RHEL 7.2 server with a
> huge (8+ GB) /var/log/debug-pcmk.log file. No one else here knows
> anything about pacemaker and the person who built/configured the
> server is unavailable for the next two weeks. There is *no* enough
> free space on /var/log (bad, I know). How do I fix this with minimal
> impact to the users or the application (NFS server)? If a service
> outage is unavoidable, I can work with that too.
I suppose this, run as root, would work:
cp /var/log/debug-pcmk.log <BACKUP-LOCATION> # optional
truncate -s 0 /var/log/debug-pcmk.log
You have to live with a fact that few lines queued to be logged in
the interim (there may be overlaps runtime-wise) may be dropped.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: not available
More information about the Users