<div dir="ltr">You should send a SIGHUP to all glusterfs processes. Your logrotate configuration is just sending a SIGHUP to the GlusterD process. That&#39;s why the other processes are still logging to the old files.<div><br></div><div>You can use the `pkill` command to send a signal to all Gluster processes; `pkill -HUP gluster` .</div><div>Or you can use `killall`; `killall -HUP glusterd glusterfs glusterfsd`</div><div><br></div><div>~kaushal</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 28, 2015 at 2:38 PM, Roman <span dir="ltr">&lt;<a href="mailto:romeo.r@gmail.com" target="_blank">romeo.r@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Anyone?</div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">2015-03-13 10:42 GMT+02:00 Roman <span dir="ltr">&lt;<a href="mailto:romeo.r@gmail.com" target="_blank">romeo.r@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>They should log to:</div><div>/var/log/glusterfs/cli.log<br></div><div>/var/log/glusterfs/nfs.log<br></div><div>/var/log/glusterfs/glustershd.log<br></div><div>/var/log/glusterfs/glfsheal-vol-name.log<br></div><div><br></div><div>After I start gluster it&#39;s ok, but after first rotate gluster wirtes to </div><div>.1 files only:</div><div><br></div><div><div>/var/log/glusterfs/cli.log.1<br></div><div>/var/log/glusterfs/nfs.log.1<br></div><div>/var/log/glusterfs/glustershd.log.1<br></div><div>/var/log/glusterfs/glfsheal-vol-name.log.1</div></div><div><br></div><div>same applies to /var/log/bricks/*.log files.</div><div><br></div><div>on client machine</div><div>instead of /var/log/glusterfs/srv-volname.log logging goes to /var/log/glusterfs/srv-volname.log.1 after first rotate.</div><div>client uses glusterfs 3.5.2, but soon will be updated also.<br></div><div><br></div><div>Any help?</div><div><br></div><div><br></div><div>logrotate.d conf files</div><div><br></div><div><div>/var/log/glusterfs/*/*.log {</div><div>        daily</div><div>        rotate 7</div><div>        delaycompress</div><div>        compress</div><div>        notifempty</div><div>        missingok</div><div>        copytruncate</div><div>        postrotate</div><div>                [ ! -f /var/run/glusterd.pid ] || kill -HUP `cat /var/run/glusterd.pid`</div><div>        endscript</div><div>}</div></div><div><br></div><div><br></div><div><div>root@stor1:~# cat /etc/logrotate.d/glusterfs-common</div><div>/var/log/glusterfs/*.log {</div><div>        daily</div><div>        rotate 7</div><div>        delaycompress</div><div>        compress</div><div>        notifempty</div><div>        missingok</div><div>        postrotate</div><div>                [ ! -f /var/run/glusterd.pid ] || kill -HUP `cat /var/run/glusterd.pid`</div><div>        endscript</div><div>}</div></div><span><font color="#888888"><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>-- <br><div>Best regards,<br>Roman.</div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div>Best regards,<br>Roman.</div>
</font></span></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>