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 1489876 - cli must throw a warning to discourage use of x2 volume which will be deprecated
cli must throw a warning to discourage use of x2 volume which will be deprecated
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: replicate (Show other bugs)
3.3
Unspecified Unspecified
high Severity unspecified
: ---
: RHGS 3.4.0
Assigned To: Karthik U S
Vijay Avuthu
rebase
:
Depends On:
Blocks: 1503134
  Show dependency treegraph
 
Reported: 2017-09-08 10:42 EDT by nchilaka
Modified: 2018-09-20 01:07 EDT (History)
7 users (show)

See Also:
Fixed In Version: glusterfs-3.12.2-1
Doc Type: Release Note
Doc Text:
Since replica 2 volumes are prone to split-brain, they will be deprecated in the future releases of Red Hat Gluster Storage 3.4. Therefore, while creating a replica 2 volume, an appropriate warning message is displayed which recommends to use the Arbiter or replica 3 configurations.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-09-04 02:35:11 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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:2607 None None None 2018-09-04 02:37 EDT

  None (edit)
Description nchilaka 2017-09-08 10:42:51 EDT
Description of problem:
rhgs roadmap going forward is to discourage and then deprecate x2 configurations to avoid split brains.
we have updated the document, but the same needs to be even seen on cli
(ref doc bug#1482352 - Discourage replica 2 configurations )

update cli to warn x2 creations in all below cases:
1)while creating x2 volume
2)while converting distribute only to x2
3)while removing bricks from x3 to convert to x2
4)while adding/removing bricks in x2 configurations

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


Additional info:
Comment 2 nchilaka 2017-09-08 10:44:49 EDT
ravi, we need to take this bug for sure in 3.4.0 to be in sync with documentation
Comment 3 Ravishankar N 2017-09-08 11:03:55 EDT
Agreed. Karthik's patch https://review.gluster.org/16899 is already merged upstream to address this issue and will automatically make it to 3.4.0. downstream.

Here is the sample output:
[root@vm4 ~]# gluster v create testvol replica 2  192.168.122.10:/bricks/brick{1..2} force
Replica 2 volumes are prone to split-brain. Use Arbiter or Replica 3 to avoid this. See:  https://gluster.readthedocs.io/en/latest/Administrator%20Guide/Split%20brain%20and%20ways%20to%20deal%20with%20it/.
Do you still want to continue?
 (y/n) 


Nag, request you to add this bug to the spreadsheet you created to keep track of the 3.4.0 bugs.
Comment 4 Sunil Kumar Acharya 2017-09-27 05:35:23 EDT
Since patch is there upstream moving to POST state.
Comment 7 Vijay Avuthu 2018-03-15 05:36:12 EDT
Update:
===========

Verified with build : glusterfs-server-3.12.2-5.el7rhgs.x86_64

> Able to see warning while creating x2 volume

# gluster vol create 12 replica 2 10.70.35.61:/bricks/brick1/b0 10.70.35.174:/bricks/brick1/b1
Replica 2 volumes are prone to split-brain. Use Arbiter or Replica 3 to avoid this. See: http://docs.gluster.org/en/latest/Administrator%20Guide/Split%20brain%20and%20ways%20to%20deal%20with%20it/.
Do you still want to continue?
 (y/n) y
volume create: 12: success: please start the volume to access data
#


> Didn't see any warnings for below scenario's
    - while converting distribute only to x2
    - while removing bricks from x3 to convert to x2
    - while adding/removing bricks in x2 configurations

Changing status to Verified and will raise new bz for the above scenario's
Comment 9 Srijita Mukherjee 2018-09-03 11:30:57 EDT
Have updated the doc text. Kindly review the technical accuracy.
Comment 10 Karthik U S 2018-09-03 12:06:23 EDT
LGTM.
Comment 12 errata-xmlrpc 2018-09-04 02:35:11 EDT
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

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