how to rotate log of client side

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

 



https://github.com/gluster/glusterfs/blob/master/extras/glusterfs-logrotate

<https://github.com/gluster/glusterfs/blob/master/extras/glusterfs-logrotate>This
is part of release tarball as of now in 3.2.2 (and future). Its not yet
included in RPM files. Need more testing of these before getting this to
mainstream.

2011/7/19 Amar (???? ????????) <amarts at gmail.com>

> FYI.. Check inline.
>
>
> 2011/7/19 Amar Tumballi <amar at gluster.com>
>
>> Is there any way to rotate client side?s log ****
>>>
>>> ** **
>>>
>>> It?s getting bigger every day. ****
>>>
>>> **
>>>
>>
>> get the pid of client process
>>
>>>  **
>>>
>>> **
>>>
>> # ps aux | grep glusterfs <----- to get the pid of the glusterfs client
>> process
>>
>> move the existing log file to some other file.
>>
>> # mv <current-log-file>.log <some-name-you-choose>.log.1
>>
>> send SIGHUP to the pid of client process.
>>
>> # kill -HUP $PID
>>
>>>
>>>
>>
>> Your log rotation is complete.
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gluster.org/pipermail/gluster-users/attachments/20110719/bc6511a3/attachment.htm>


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux