| Summary: | Do not allow removal of replicas using "remove-brick" command | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | spandura |
| Component: | glusterfs | Assignee: | Ravishankar N <ravishankar> |
| Status: | CLOSED ERRATA | QA Contact: | spandura |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.1 | CC: | grajaiya, ravishankar, vagarwal, vbellur |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | RHGS 2.1.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.4.0.47.1u2rhs-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-02-25 08:05:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1021928 | ||
|
Description
spandura
2013-11-22 07:35:23 UTC
Patch review: https://code.engineering.redhat.com/gerrit/#/c/16184/ This patch has not been sent upstream. It is a temporary fix and must be reverted as described in the commit message. Verified the fix on the build " glusterfs 3.4.0.52rhs built on Dec 19 2013 12:20:16 " . Bug is fixed . Moving the bug to verified state. Following are the cases tested. 1) Created a dis_rep_vol. Tried to remove one replica limb from each sub-volume. 2) Started dis_rep_vol . Remove one replica limb from each sub-volume with "force" option. 3) Remove one replica limb from each sub-volume with "commit" option. 4) Remove one replica limb from each sub-volume without any options. Output for the above cases: ============================= 1) root@rhs-client11 [Dec-30-2013- 4:46:35] >gluster v info vol_dis_rep Volume Name: vol_dis_rep Type: Distributed-Replicate Volume ID: 17bf18c3-277c-4e57-90dc-ef9213efd1ae Status: Created Number of Bricks: 3 x 3 = 9 Transport-type: tcp Bricks: Brick1: rhs-client11:/rhs/bricks/b1 Brick2: rhs-client12:/rhs/bricks/b1-rep1 Brick3: rhs-client13:/rhs/bricks/b1-rep2 Brick4: rhs-client11:/rhs/bricks/b2 Brick5: rhs-client12:/rhs/bricks/b2-rep1 Brick6: rhs-client13:/rhs/bricks/b2-rep2 Brick7: rhs-client11:/rhs/bricks/b3 Brick8: rhs-client12:/rhs/bricks/b3-rep1 Brick9: rhs-client13:/rhs/bricks/b3-rep2 root@rhs-client11 [Dec-30-2013- 4:46:53] >gluster v remove-brick vol_dis_rep replica 2 rhs-client13:/rhs/bricks/b1-rep2 rhs-client12:/rhs/bricks/b2-rep1 rhs-client11:/rhs/bricks/b3 Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y volume remove-brick commit force: failed: Reducing replica count of volume is disallowed in glusterfs 3.4.0.52rhs 2) root@rhs-client11 [Dec-30-2013- 4:48:22] >gluster v remove-brick vol_dis_rep replica 2 rhs-client13:/rhs/bricks/b1-rep2 rhs-client12:/rhs/bricks/b2-rep1 rhs-client11:/rhs/bricks/b3 commit Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y volume remove-brick commit: failed: Reducing replica count of volume is disallowed in glusterfs 3.4.0.52rhs root@rhs-client11 [Dec-30-2013- 4:48:25] > root@rhs-client11 [Dec-30-2013- 4:48:27] >gluster v info Volume Name: vol_dis_rep Type: Distributed-Replicate Volume ID: 17bf18c3-277c-4e57-90dc-ef9213efd1ae Status: Started Number of Bricks: 3 x 3 = 9 Transport-type: tcp Bricks: Brick1: rhs-client11:/rhs/bricks/b1 Brick2: rhs-client12:/rhs/bricks/b1-rep1 Brick3: rhs-client13:/rhs/bricks/b1-rep2 Brick4: rhs-client11:/rhs/bricks/b2 Brick5: rhs-client12:/rhs/bricks/b2-rep1 Brick6: rhs-client13:/rhs/bricks/b2-rep2 Brick7: rhs-client11:/rhs/bricks/b3 Brick8: rhs-client12:/rhs/bricks/b3-rep1 Brick9: rhs-client13:/rhs/bricks/b3-rep2 3) root@rhs-client11 [Dec-30-2013- 4:48:08] >gluster v remove-brick vol_dis_rep replica 2 rhs-client13:/rhs/bricks/b1-rep2 rhs-client12:/rhs/bricks/b2-rep1 rhs-client11:/rhs/bricks/b3 force Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y volume remove-brick commit force: failed: Reducing replica count of volume is disallowed in glusterfs 3.4.0.52rhs 4) root@rhs-client11 [Dec-30-2013- 4:47:37] >gluster v remove-brick vol_dis_rep replica 2 rhs-client13:/rhs/bricks/b1-rep2 rhs-client12:/rhs/bricks/b2-rep1 rhs-client11:/rhs/bricks/b3 Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y volume remove-brick commit force: failed: Reducing replica count of volume is disallowed in glusterfs 3.4.0.52rhs 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. http://rhn.redhat.com/errata/RHEA-2014-0208.html |