<meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="https://github.com/gluster/glusterfs/blob/master/extras/glusterfs-logrotate">https://github.com/gluster/glusterfs/blob/master/extras/glusterfs-logrotate</a><div>
<br></div><div><a href="https://github.com/gluster/glusterfs/blob/master/extras/glusterfs-logrotate"></a>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.<br>
<br><div class="gmail_quote">2011/7/19 Amar (ಅಮರೠತà³à²‚ಬಳà³à²³à²¿) <span dir="ltr"><<a href="mailto:amarts@gmail.com">amarts@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
FYI.. Check inline.<div><div></div><div class="h5"><br><br><div class="gmail_quote">2011/7/19 Amar Tumballi <span dir="ltr"><<a href="mailto:amar@gluster.com" target="_blank">amar@gluster.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="KO" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Malgun Gothic";color:#1F497D">Is there any way to rotate client side’s log <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Malgun Gothic";color:#1F497D"><u></u>Â <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Malgun Gothic";color:#1F497D">It’s getting bigger every day. <u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u></span></p></div></div></div></div></blockquote><div><br></div></div><div>get the pid of client process </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="KO" link="blue" vlink="purple"><div><div><div><p class="MsoNormal"><span lang="EN-US">Â <u></u></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u></span></p></div></div></div></blockquote><div># ps aux | grep glusterfs <----- to get the pid of the glusterfs client process</div><div><br></div><div>move the existing log file to some other file.</div>
<div><br></div><div># mv <current-log-file>.log <some-name-you-choose>.log.1</div><div><br></div><div>send SIGHUP to the pid of client process.</div><div><br></div><div># kill -HUP $PID Â </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="KO" link="blue" vlink="purple"><div><div><p class="MsoNormal"><span lang="EN-US">Â </span></p></div></div></div></blockquote><div><br></div><div>Your log rotation is complete.</div><div>Â </div></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>