Mohammed Rafi K C
2017-Apr-05 05:52 UTC
[Gluster-users] Fw: Deletion of old CHANGELOG files in .glusterfs/changelogs
On 04/04/2017 10:53 PM, mabi wrote:> Anyone? > > > >> -------- Original Message -------- >> Subject: Deletion of old CHANGELOG files in .glusterfs/changelogs >> Local Time: March 31, 2017 11:22 PM >> UTC Time: March 31, 2017 9:22 PM >> From: mabi at protonmail.ch >> To: Gluster Users <gluster-users at gluster.org> >> >> Hi, >> >> 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. >> >> 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?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. You can safely delete**all processed** 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. Adding Kotresh, and Aravinda . Regards Rafi KC>> >> >> >> Regards, >> Mabi > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170405/b1e9842f/attachment.html>
Aravinda
2017-Apr-05 05:57 UTC
[Gluster-users] Fw: Deletion of old CHANGELOG files in .glusterfs/changelogs
This tool can be used to archive Gluster Changelogs to different directory https://github.com/aravindavk/archive_gluster_changelogs regards Aravinda On 04/05/2017 11:22 AM, Mohammed Rafi K C wrote:> > > > On 04/04/2017 10:53 PM, mabi wrote: >> Anyone? >> >> >> >>> -------- Original Message -------- >>> Subject: Deletion of old CHANGELOG files in .glusterfs/changelogs >>> Local Time: March 31, 2017 11:22 PM >>> UTC Time: March 31, 2017 9:22 PM >>> From: mabi at protonmail.ch >>> To: Gluster Users <gluster-users at gluster.org> >>> >>> Hi, >>> >>> 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. >>> >>> 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? > > 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. > > You can safely delete**all processed** 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. > > Adding Kotresh, and Aravinda . > > Regards > Rafi KC > > >>> >>> >>> >>> Regards, >>> Mabi >> >> >> _______________________________________________ >> Gluster-users mailing list >> Gluster-users at gluster.org >> http://lists.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170405/931c9daf/attachment.html>
Amar Tumballi
2017-Apr-05 06:44 UTC
[Gluster-users] Fw: Deletion of old CHANGELOG files in .glusterfs/changelogs
> Local Time: March 31, 2017 11:22 PM > UTC Time: March 31, 2017 9:22 PM > From: mabi at protonmail.ch > To: Gluster Users <gluster-users at gluster.org> <gluster-users at gluster.org> > > Hi, > > 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. > > 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? > > > 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. >+1 for the reasoning.> > You can safely delete* *all processed** 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. > >If georep is the only consumer, you can use Aravinda's tool <https://github.com/aravindavk/archive_gluster_changelogs>to move the files to another dir, and delete them. Regards, Amar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170405/584c5235/attachment.html>