All of lore.kernel.org
 help / color / mirror / Atom feed
* logrotate and auto start = no
@ 2012-02-15 14:26 Wido den Hollander
  2012-02-15 14:40 ` Sage Weil
  0 siblings, 1 reply; 3+ messages in thread
From: Wido den Hollander @ 2012-02-15 14:26 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

Hi,

When "auto start = no" is set for the OSD's, the logs won't get rotated.

I've set this to no so I can easily reboot machines without all OSD's 
starting, I think it's easier with testing or when you replace a broken 
disk.

Anyway, this prevents the logs from being rotated, causing my disks to 
fill up:

/var/log/ceph/*.log {
     rotate 7
     daily
     compress
     sharedscripts
     postrotate
         invoke-rc.d ceph reload >/dev/null || service ceph reload 
 >/dev/null
     endscript
     missingok
}

The init script doesn't touch daemons which have auto start set to no, 
but this also prevents logrotate from doing it's job.

Some suggestions:

1. Don't use the init script for logrotation
2. Modify the init script
3. Add a note in the documentation about this behaviour

I think that logrotation should work regardless the setting of auto start?

What do you think?

Wido

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-15 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-15 14:26 logrotate and auto start = no Wido den Hollander
2012-02-15 14:40 ` Sage Weil
2012-02-15 15:20   ` [PATCH] init: Only check if auto start is disabled when the issued command is "start" Wido den Hollander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.