[Gluster-users] loging bug?

Roman romeo.r at gmail.com
Fri Mar 13 08:42:08 UTC 2015


Hi,

Running glusterfs 3.5.3 built on Nov 17 2014 15:48:54 on two servers and
one client. And all have same issue: they are loging to the wrong place.

They should log to:
/var/log/glusterfs/cli.log
/var/log/glusterfs/nfs.log
/var/log/glusterfs/glustershd.log
/var/log/glusterfs/glfsheal-vol-name.log

After I start gluster it's ok, but after first rotate gluster wirtes to
.1 files only:

/var/log/glusterfs/cli.log.1
/var/log/glusterfs/nfs.log.1
/var/log/glusterfs/glustershd.log.1
/var/log/glusterfs/glfsheal-vol-name.log.1

same applies to /var/log/bricks/*.log files.

on client machine
instead of /var/log/glusterfs/srv-volname.log logging goes to
/var/log/glusterfs/srv-volname.log.1 after first rotate.
client uses glusterfs 3.5.2, but soon will be updated also.

Any help?


logrotate.d conf files

/var/log/glusterfs/*/*.log {
        daily
        rotate 7
        delaycompress
        compress
        notifempty
        missingok
        copytruncate
        postrotate
                [ ! -f /var/run/glusterd.pid ] || kill -HUP `cat
/var/run/glusterd.pid`
        endscript
}


root at stor1:~# cat /etc/logrotate.d/glusterfs-common
/var/log/glusterfs/*.log {
        daily
        rotate 7
        delaycompress
        compress
        notifempty
        missingok
        postrotate
                [ ! -f /var/run/glusterd.pid ] || kill -HUP `cat
/var/run/glusterd.pid`
        endscript
}








-- 
Best regards,
Roman.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150313/43d6894e/attachment.html>


More information about the Gluster-users mailing list