From b63756aef00eda48cd421f670372e9454afc3525 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 1 Mar 2019 11:12:35 -0500 Subject: [PATCH] long_running_cluster: Force logrotate at 06:25 The scheduled logrotate cronjob at 06:25 doesn't actually get run like I assumed. This is because the cron.daily job doesn't use -f. Signed-off-by: David Galloway --- roles/long_running_cluster/tasks/logrotate.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/long_running_cluster/tasks/logrotate.yml b/roles/long_running_cluster/tasks/logrotate.yml index bf66a6eb..27607cde 100644 --- a/roles/long_running_cluster/tasks/logrotate.yml +++ b/roles/long_running_cluster/tasks/logrotate.yml @@ -2,8 +2,7 @@ # Because of the high debug level enabled for LRC daemons, the root drives # fill up rather quickly. The drives fill up before the daily logrotate can # run so we rotate every 6 hours and keep 3 days worth. This can be adjusted -# as needed. Logrotate already runs daily at 06:25 so there are 3 additional -# scheduled cronjobs to rotate 4x daily. +# as needed. - name: "Write custom ceph logrotate config" template: @@ -14,6 +13,6 @@ cron: name: "Logrotate ceph logs every 6 hours" minute: "25" - hour: "0,12,18" + hour: "0,6,12,18" job: "/usr/sbin/logrotate -f /etc/logrotate.d/ceph-common" user: root -- 2.47.3