Re: logrotate and auto start = no

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 15 Feb 2012, Wido den Hollander wrote:
> 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

This is my choice.  We can probably just move the check into the 'start' 
block.  It also looks like the auto_start check is doing something weird 
if the value is "mds"... 

> 3. Add a note in the documentation about this behaviour
> 
> I think that logrotation should work regardless the setting of auto start?

Yeah, definitely!

sage


> 
> What do you think?
> 
> Wido
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux