Bug 1191396 - AFR: Enable users to analyse and resolve split-brain
Summary: AFR: Enable users to analyse and resolve split-brain
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: replicate
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anuradha
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-11 09:11 UTC by Anuradha
Modified: 2016-09-20 02:00 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.7.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-14 17:29:07 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Anuradha 2015-02-11 09:11:08 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Anand Avati 2015-02-11 09:44:57 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#1) for review on master by Anuradha Talur (atalur)

Comment 2 Anand Avati 2015-02-16 07:41:12 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#2) for review on master by Anuradha Talur (atalur)

Comment 3 Anand Avati 2015-02-16 08:59:47 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#3) for review on master by Anuradha Talur (atalur)

Comment 4 Anand Avati 2015-02-17 07:38:50 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#4) for review on master by Anuradha Talur (atalur)

Comment 5 Anand Avati 2015-02-17 09:11:13 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#5) for review on master by Anuradha Talur (atalur)

Comment 6 Anand Avati 2015-02-17 14:19:21 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#6) for review on master by Anuradha Talur (atalur)

Comment 7 Anand Avati 2015-02-18 09:30:52 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#7) for review on master by Anuradha Talur (atalur)

Comment 8 Anand Avati 2015-02-19 09:34:20 UTC
REVIEW: http://review.gluster.org/9633 (cluster/afr : provide split-brain info by using getxattr) posted (#8) for review on master by Anuradha Talur (atalur)

Comment 9 Anand Avati 2015-02-25 10:35:38 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#1) for review on master by Anuradha Talur (atalur)

Comment 10 Anand Avati 2015-02-26 06:32:20 UTC
COMMIT: http://review.gluster.org/9633 committed in master by Pranith Kumar Karampuri (pkarampu) 
------
commit 9112806b02b1c8668acff87af62553462aa7cf48
Author: Anuradha <atalur>
Date:   Mon Feb 9 12:44:33 2015 +0530

    cluster/afr : provide split-brain info by using getxattr
    
    This patch is one part to enable users analyze and resolve
    split-brain.
    
    Problem : To know if a file is in data/metadata split-brain
    
    Solution : Performing "getfattr -n afr.split-brain-status
    <path-to-file>" from the mount provides this information.
    Also provides the list of afr children to analyse to
    get more information.
    
    Change-Id: I4d9b429794759a906371416cb84c84a212e2c7b9
    BUG: 1191396
    Signed-off-by: Anuradha <atalur>
    Reviewed-on: http://review.gluster.org/9633
    Reviewed-by: Ravishankar N <ravishankar>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Krutika Dhananjay <kdhananj>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu>
    Tested-by: Pranith Kumar Karampuri <pkarampu>

Comment 11 Anand Avati 2015-03-04 07:21:37 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#2) for review on master by Anuradha Talur (atalur)

Comment 12 Anand Avati 2015-03-04 09:34:02 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#3) for review on master by Anuradha Talur (atalur)

Comment 13 Anand Avati 2015-03-12 09:46:35 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#4) for review on master by Anuradha Talur (atalur)

Comment 14 Anand Avati 2015-03-13 06:01:04 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#5) for review on master by Anuradha Talur (atalur)

Comment 15 Anand Avati 2015-03-13 12:34:28 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#6) for review on master by Anuradha Talur (atalur)

Comment 16 Anand Avati 2015-03-18 17:48:45 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#7) for review on master by Anuradha Talur (atalur)

Comment 17 Anand Avati 2015-03-19 10:09:42 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#8) for review on master by Anuradha Talur (atalur)

Comment 18 Anand Avati 2015-03-19 11:22:27 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#9) for review on master by Anuradha Talur (atalur)

Comment 19 Anand Avati 2015-03-19 11:25:52 UTC
REVIEW: http://review.gluster.org/9743 (cluster/afr : enable inspection & resolution of files in split-brain) posted (#10) for review on master by Anuradha Talur (atalur)

Comment 20 Anand Avati 2015-03-19 13:33:17 UTC
COMMIT: http://review.gluster.org/9743 committed in master by Vijay Bellur (vbellur) 
------
commit d06692d1deec425f74747e2c463e56f7eca981c8
Author: Anuradha <atalur>
Date:   Wed Feb 25 15:09:28 2015 +0530

    cluster/afr : enable inspection & resolution of files in split-brain
    
    Part 2/2 patch to enable users analyze and resolve
    split-brain.
    
    This patch enables :
    1) Users to inspect the files in data and metadata split-brain.
    2) Resolve the split-brain.
    Both using a series of setfattr commands.
    
    Consider a volume "test" with 2 bricks.
    
    1) To inspect a file f1:
    setfattr -n replica.split-brain-choice -v test-client-0 f1
            After the execution of this command, if no read_subvol
    is found, reads will be served from test-client-0 (corresponding
    to brick-0).
    
    2) To resolve split-brain :
    setfattr -n replica.split-brain-heal-finalize -v test-client-0 f1
            Execution of this command will lead to the resolution
    of data and metadata split-brain with subvol mentioned in the
    command (test-client-0 here) as the source and the rest as sink.
    
    Change-Id: Ia20f3ee5abd3119e3d54fcc599f1e55ac65fd179
    BUG: 1191396
    Signed-off-by: Anuradha <atalur>
    Reviewed-on: http://review.gluster.org/9743
    Reviewed-by: Pranith Kumar Karampuri <pkarampu>
    Tested-by: Gluster Build System <jenkins.com>

Comment 21 Anand Avati 2015-04-07 11:14:20 UTC
REVIEW: http://review.gluster.org/10153 (tests: Replace getxattr with getfattr) posted (#1) for review on master by Krutika Dhananjay (kdhananj)

Comment 22 Anand Avati 2015-04-08 06:07:33 UTC
COMMIT: http://review.gluster.org/10153 committed in master by Pranith Kumar Karampuri (pkarampu) 
------
commit 1d8e04c2544dec0a0f7fd8ada76287db2a2f71c1
Author: Krutika Dhananjay <kdhananj>
Date:   Tue Apr 7 16:36:27 2015 +0530

    tests: Replace getxattr with getfattr
    
    Change-Id: Ibbe97dae51a81c8d5142c53a57fd9c630dfb6f46
    BUG: 1191396
    Signed-off-by: Krutika Dhananjay <kdhananj>
    Reviewed-on: http://review.gluster.org/10153
    Reviewed-by: Anuradha Talur <atalur>
    Reviewed-by: Pranith Kumar Karampuri <pkarampu>
    Tested-by: Pranith Kumar Karampuri <pkarampu>
    Tested-by: Gluster Build System <jenkins.com>

Comment 23 Niels de Vos 2015-05-14 17:29:07 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 24 Niels de Vos 2015-05-14 17:35:50 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 25 Niels de Vos 2015-05-14 17:38:12 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 26 Niels de Vos 2015-05-14 17:45:59 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report.

glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user


Note You need to log in before you can comment on or make changes to this bug.