Bug 763467 (GLUSTER-1735)

Summary: log rotate with brick option
Product: [Community] GlusterFS Reporter: Lakshmipathi G <lakshmipathi>
Component: loggingAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.0.5CC: gluster-bugs, vijay, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: All
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lakshmipathi G 2010-09-29 05:17:43 UTC
log rotate will rename the existing file and create a new one.

but its not working  when brick option is provided-
==============
#gluster volume log rotate test 10.192.141.187:/mnt/a4
log rotate successful
10.192.141.187#ls -ltr /etc/glusterd/logs/bricks
total 16
-rw-r--r-- 1 root root 13952 Sep 28 06:36 mnt-a4.log
==============

Comment 1 Lakshmipathi G 2010-09-30 03:59:27 UTC
tested again with qa35 -


#gluster volume log rotate add1 10.192.141.187:/mnt/add1
log rotate successful
10.192.141.187#ls -ltr /etc/glusterd/logs/bricks/
total 4
-rw-r--r-- 1 root root 3542 Sep 30 02:52 mnt-add1.log
-----------------------------
without brick option it works with qa35

10.192.141.187#gluster volume log rotate add1                         
log rotate successful
10.192.141.187#ls -ltr /etc/glusterd/logs/bricks/
total 8
-rw-r--r-- 1 root root 3656 Sep 30 02:56 mnt-add1.log.1285829802
-rw-rw-rw- 1 root root  107 Sep 30 02:56 mnt-add1.log