[Gluster-users] Bug in log rotation for 3.3.1

Torbjørn Thorsen torbjorn at trollweb.no
Mon Feb 25 11:16:37 UTC 2013


If the gluster binaries accept SIGHUP and re-opens their logging fd's
on that signal,
then the current logrotate script doesn't seem too bad.
I'm guessing the logrotate stuff in the github repo is newer than the
3.3.1 packages from the download.gluster.org repo, as that is not the
version I have installed.

It's maybe not ideal that it will send SIGHUP to all instances of the
binaries, though, and not only the one instance managed by the service
scripts.

In my experience, implementing a "/etc/init.d/$SERVICE reload" command
that handles the signal sending, and then having the logrotate script
call that works pretty well.
The service management script in /etc/init.d/ has a clearer way of the
PID file handling, and can probably pick out the correct instance of
glusterd and the others.

I could give this idea a whirl if there is any interest in using this approach.

On Mon, Feb 25, 2013 at 12:04 PM, Amar Tumballi <amarts at redhat.com> wrote:
> On 02/25/2013 03:20 PM, Robert Hajime Lanning wrote:
>>
>> On 02/24/13 20:41, Toby Corkindale wrote:
>>>
>>> In the meantime, could someone advise me on the correct way to tell
>>> Glusterfs to rotate the logs for the bricks and mounts?
>>
>>
>> Have you tried:
>> # gluster volume log rotate <VOLNAME> [BRICK]
>>
>
> This should work, but in future, we would like to depend on 'logrotate'
> package and be friendly with it, so that it gets triggered at regular
> interval, and as an admin, users of gluster need not bother about log file
> rotations.
>
> So, would like experts in this area to help us with enhancing
> 'extras/glusterfs-logrotate' [1] logrotate config file.
>
> -Amar
>
> [1] -
> https://github.com/gluster/glusterfs/blob/master/extras/glusterfs-logrotate
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users



--
Vennlig hilsen
Torbjørn Thorsen
Utvikler / driftstekniker

Trollweb Solutions AS
- Professional Magento Partner
www.trollweb.no

Telefon dagtid: +47 51215300
Telefon kveld/helg: For kunder med Serviceavtale

Besøksadresse: Luramyrveien 40, 4313 Sandnes
Postadresse: Maurholen 57, 4316 Sandnes

Husk at alle våre standard-vilkår alltid er gjeldende



More information about the Gluster-users mailing list