Description of problem: ===================== Currently there is no way for the admin from CLI to resolve gfid split brain based on some policy like choice of the brick, mtime or size or a way to retain both files The only option is for the admin to work on the files from backend ie bricks We should be having a way to resolve gfid split brain Version-Release number of selected component (if applicable): ============ 3.8.4-11
Upstream patch: https://review.gluster.org/#/c/17485/
Update ========= Verified with below scenario's scenario 1: 1) created gfid split-brain 2) resolved split-brain using "bigger-file" option 3) wait for heal to complete scenario 2: 1) created gfid split-brain 2) resolved split-brain using "mtime" option 3) wait for heal to complete scenario 3: 1) created gfid split-brain 2) resolved split-brain using "source-brick" option 3) wait for heal to complete Observation: After issuing split-brain command using policy, observed healing is not done immediately. Its taking few minutes to complete healing ( even with single file ) but from back end its clearing the dirty tag immediately.
Once you run this command it will immediately resolve the gfid split-brain but there might be some data heal pending on the entry after this. So you can see the entry in the heal info output until that is cleared by explicitly running the heal or by doing any update operations on the file or the shd kicks in at the regular interval. Once the heal completes the entry will be removed from the heal info.
Changing status to Verified. See #comment 8 for more details.
Have updated the doc text. Kindly review and confirm.
LGTM.
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. https://access.redhat.com/errata/RHSA-2018:2607