Hi, Just wondering if there was a method to manually force a re-sync of a geo replication slave so it is an identical mirror of the master? History of this request is that I have a test setup and the Gluster Geo-Replication seems to have missed 7 files out completely (not sure if this was a bug or an issue with my setup specifically as this is a test setup it has been setup and torn down a few times). Now though the Geo replica will not converge to be the same, ie. It's stable, new files add fine and files will delete, but the missing files just don't seem to be interested in synchronising! I'm guessing that as the rsync is triggered by the change log and as these files aren't changing it won't ever notice them again? I can manually copy the files (there are only 7 after all.) but I have only found them through a consistency checking script I wrote. I can run this through a cron to pick up any missing files, however I wondered if Gluster had something built in which did a check and sync? Also, If I did manually copy these files across how would that affect the consistency of the geo replica session? Running: GlusterFS 3.4.5 on CentOS 6.5 Regards James -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20141004/f20d4c82/attachment.html>
I am interested in hearing this answer too. James, if you have a consistency check script, maybe just changing the timestamp or some other attribute on the file (perhaps something as simple as chmod to something and then back) would trigger the integrated rsync. Dave On Sat, Oct 4, 2014 at 5:33 PM, James Payne <jimqwerty4 at hotmail.com> wrote:> Hi, > > > > Just wondering if there was a method to manually force a re-sync of a geo > replication slave so it is an identical mirror of the master? > > > > History of this request is that I have a test setup and the Gluster > Geo-Replication seems to have missed 7 files out completely (not sure if > this was a bug or an issue with my setup specifically as this is a test > setup it has been setup and torn down a few times). Now though the Geo > replica will not converge to be the same, ie. It?s stable, new files add > fine and files will delete, but the missing files just don?t seem to be > interested in synchronising! I?m guessing that as the rsync is triggered by > the change log and as these files aren?t changing it won?t ever notice them > again? I can manually copy the files (there are only 7 after all?) but I > have only found them through a consistency checking script I wrote. I can > run this through a cron to pick up any missing files, however I wondered if > Gluster had something built in which did a check and sync? Also, If I did > manually copy these files across how would that affect the consistency of > the geo replica session? > > > > Running: GlusterFS 3.4.5 on CentOS 6.5 > > > > Regards > > James > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20141007/32db8f3e/attachment.html>
The only way that I can think of would be to stop the geo-replication and re-create it again. I think that would initiate a new rsync crawl of all the files. On 10/4/2014 2:33 PM, James Payne wrote:> > Hi, > > Just wondering if there was a method to manually force a re-sync of a > geo replication slave so it is an identical mirror of the master? > > History of this request is that I have a test setup and the Gluster > Geo-Replication seems to have missed 7 files out completely (not sure > if this was a bug or an issue with my setup specifically as this is a > test setup it has been setup and torn down a few times). Now though > the Geo replica will not converge to be the same, ie. It's stable, new > files add fine and files will delete, but the missing files just don't > seem to be interested in synchronising! I'm guessing that as the rsync > is triggered by the change log and as these files aren't changing it > won't ever notice them again? I can manually copy the files (there are > only 7 after all...) but I have only found them through a consistency > checking script I wrote. I can run this through a cron to pick up any > missing files, however I wondered if Gluster had something built in > which did a check and sync? Also, If I did manually copy these files > across how would that affect the consistency of the geo replica session? > > Running: GlusterFS 3.4.5 on CentOS 6.5 > > Regards > > James > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20141007/4f4a5a8a/attachment.html>
?"touch <filename>" should trigger a re-sync. On Sun, Oct 5, 2014 at 3:03 AM, James Payne <jimqwerty4 at hotmail.com> wrote:> Hi, > > > > Just wondering if there was a method to manually force a re-sync of a geo > replication slave so it is an identical mirror of the master? > > > > History of this request is that I have a test setup and the Gluster > Geo-Replication seems to have missed 7 files out completely (not sure if > this was a bug or an issue with my setup specifically as this is a test > setup it has been setup and torn down a few times). Now though the Geo > replica will not converge to be the same, ie. It?s stable, new files add > fine and files will delete, but the missing files just don?t seem to be > interested in synchronising! I?m guessing that as the rsync is triggered by > the change log and as these files aren?t changing it won?t ever notice them > again? I can manually copy the files (there are only 7 after all?) but I > have only found them through a consistency checking script I wrote. I can > run this through a cron to pick up any missing files, however I wondered if > Gluster had something built in which did a check and sync? Also, If I did > manually copy these files across how would that affect the consistency of > the geo replica session? > > > > Running: GlusterFS 3.4.5 on CentOS 6.5 > > > > Regards > > James > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20141008/f93cd330/attachment.html>