Red Hat Bugzilla – Bug 1474380
[geo-rep]: few of the self healed hardlinks on master did not sync to slave
Last modified: 2018-01-18 05:46:06 EST
Description of problem:
In the following scenario, the sync of hardlinks do not happen to slave.
1. Create geo-rep between master and slave
2. Mount the volume
3. Create a file (file1)
4. Let the file sync to slave
5. kill one set of replica for a subvolume containing file1
6. create a hardlink of file1 (ln file1 file2).=> Ensure that the file2 hashes to the same subvolume of file1
7. Start the master volume forcefully to heal file2 . Wait for heal to happen
8. Kill the other set of the replica (than the step 5)
9. Start the geo-replication
In the above scenario the hardlinks are not synced to slave and there are no errors.
Step 1 to Step 5 remains same
6. create a hardlink of file1 (ln file1 file2).=> Ensure that the file2 hashes to the different subvolume of file1
Step 7 to Step 8 remains same
In this scenario, sync happens as follows:
a. If both the bricks active are (selfhealed bricks) which has recoreded MKNOD. Sync happens.
b. If the self healed brick containing MKNOD for sticky bit file becomes PASSIVE, hardlinks are not synced.
Version-Release number of selected component (if applicable):
Always with the above steps.
upstream patch : https://review.gluster.org/17880
upstream 3.12 patch : https://review.gluster.org/17905
downstream patch : https://code.engineering.redhat.com/gerrit/#/c/113790/
Verified with build: glusterfs-geo-replication-3.8.4-37.el7rhgs.x86_64
One additional step between 4 and 5:
=> Stop the geo-replication
Validated both the scenario mentioned in the description, the hardlinks are properly synced with 3.8.4-37 build..
One of the history changelog processed between builds:
.history/.processed for the active brick
[root@dhcp43-168 .processed]# cat CHANGELOG.1502033284
E ce3d230f-59ba-4cd6-8c55-b0fe8e2dd62a MKNOD 33188 0 0 00000000-0000-0000-0000-000000000001%2Fnew_hardlink_file_to_file1
^^ Did not succeed to sync to slave with build glusterfs-geo-replication-3.8.4-18.6.el7rhgs.x86_64
[root@dhcp42-74 .processed]# cat CHANGELOG.1502034691
E 6b7f3186-9779-43cc-95a0-aa952e7fab51 MKNOD 33188 0 0 00000000-0000-0000-0000-000000000001%2Fnew_hardlink_file_to_file1
^^ Succeed to sync to slave with build glusterfs-geo-replication-3.8.4-37.el7rhgs.x86_64
Moving this bug to verified state. Further hardlink during heal scenarios will be carried and if needed will be tracked by different bugs.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.