<div dir="ltr"><br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><span class=""><blockquote type="cite"><blockquote class="m_-6748981546244674762protonmail_quote" type="cite">
<div>Local Time: March 31, 2017 11:22 PM<br>
</div>
<div>UTC Time: March 31, 2017 9:22 PM<br>
</div>
<div>From: <a class="m_-6748981546244674762moz-txt-link-abbreviated" href="mailto:mabi@protonmail.ch" target="_blank">mabi@protonmail.ch</a><br>
</div>
<div>To: Gluster Users <a class="m_-6748981546244674762moz-txt-link-rfc2396E" href="mailto:gluster-users@gluster.org" target="_blank"><gluster-users@gluster.org></a><br>
</div>
<div><br>
</div>
<div>Hi,<br>
</div>
<div><br>
</div>
<div>I am using geo-replication since now over a year on my
3.7.20 GlusterFS volumes and noticed that the
CHANGELOG.<TIMESTAMP> in the .glusterfs/changelogs
directory of a brick never get deleted. I have for example
over 120k files in one of these directories and it is growing
constantly.<br>
</div>
<div><br>
</div>
<div>So my question, does GlusterFS have any mechanism to
automatically delete old and processed CHANGELOG files? If not
is it safe to delete them manually?<br>
</div>
</blockquote>
</blockquote>
<br></span>
I will try to answer the question, I'm not an expert in
geo-replication, So I could be wrong here. I think GlusterFS won't
delete the changelogs automatically, reason being geo-replication is
not the author of changelogs, it is just a consumer any other
application could use changelogs.<br></div></blockquote><div><br><br></div><div>+1 for the reasoning.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
<br>
You can safely delete<b> *all processed*</b> changelogs from actual
changelogs directory and geo-replication directory. You can look
into the stime set as the extended attribute on the root to see the
time which geo-replication last synced.<br>
<br></div></blockquote><div><br></div>If georep is the only consumer, you can use <a href="https://github.com/aravindavk/archive_gluster_changelogs">Aravinda's tool </a>to move the files to another dir, and delete them.<br> <br></div><div class="gmail_quote">Regards,<br></div><div class="gmail_quote">Amar<br></div><div class="gmail_quote"><div> </div></div></div></div>