Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 921025 - [FEAT] : list directories which are in split-brain state in "gluster v heal <volume_name> info split-brain" command output
[FEAT] : list directories which are in split-brain state in "gluster v heal <...
Status: CLOSED CURRENTRELEASE
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: replicate (Show other bugs)
2.0
Unspecified Unspecified
medium Severity unspecified
: ---
: ---
Assigned To: Pranith Kumar K
storage-qa-internal@redhat.com
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-13 06:38 EDT by spandura
Modified: 2016-09-17 08:19 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-05-20 08:00:32 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description spandura 2013-03-13 06:38:04 EDT
Description of problem:
=========================
If directories are in split-brain state we are not reporting it in  "gluster v heal <volume_name> info split-brain" command output.

It will be good to report directories split-brain info


Version-Release number of selected component (if applicable):
==============================================================
[root@melman:~] Mar-13-2013 15:34:04 $ glusterfs --version
glusterfs 3.3.0.6rhs built on Mar 11 2013 04:46:21

[root@melman:~] Mar-13-2013 16:05:56 $ rpm -qa | grep gluster
glusterfs-fuse-3.3.0.6rhs-3.el6rhs.x86_64
Comment 3 Ravishankar N 2015-05-20 08:00:32 EDT
1. RHS 3.0.4 lists directories that are in split-brain:
---------------------------------------------------------
gluster v heal testvol info split-brain
Gathering list of split brain entries on volume testvol has been successful 

Brick 10.70.42.194:/brick/brick1
Number of entries: 6
at                    path on brick
-----------------------------------
2015-05-20 10:54:00 /dir
2015-05-20 11:04:00 /dir
2015-05-20 11:14:00 /dir
2015-05-20 11:24:01 /dir
2015-05-20 11:34:01 /dir
2015-05-20 11:44:01 /dir

Brick 10.70.42.194:/brick/brick2
Number of entries: 8
at                    path on brick
-----------------------------------
2015-05-20 10:44:07 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
2015-05-20 10:44:07 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
2015-05-20 10:54:07 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
2015-05-20 11:04:07 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
2015-05-20 11:14:07 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
2015-05-20 11:24:08 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
2015-05-20 11:34:08 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
2015-05-20 11:44:08 <gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898>
------------------------------------------------------------

2. Additionally they are also listed in the heal info command:
------------------------------------------
gluster v heal testvol info
Brick ravi3:/brick/brick1/
/dir - Is in split-brain
Number of entries: 1

Brick ravi3:/brick/brick2/
<gfid:62fd0ff6-bdfa-43ad-8909-b024b208c898> - Is in split-brain
Number of entries: 1

-----------------------------------

3. AFR xattrs on the backend:
 getfattr -d -m . -e hex  /brick/brick*/dir
getfattr: Removing leading '/' from absolute path names
# file: brick/brick1/dir
trusted.afr.testvol-client-0=0x000000000000000000000000
trusted.afr.testvol-client-1=0x000000000000000100000000
trusted.gfid=0x62fd0ff6bdfa43ad8909b024b208c898
trusted.glusterfs.dht=0x000000010000000000000000ffffffff

# file: brick/brick2/dir
trusted.afr.testvol-client-0=0x000000000000000100000000
trusted.afr.testvol-client-1=0x000000000000000000000000
trusted.gfid=0x62fd0ff6bdfa43ad8909b024b208c898
trusted.glusterfs.dht=0x000000010000000000000000ffffffff
-----------------

Hence closing the bug.

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