Bug 822338

Summary: Replace-brick status fails after the start operation.
Product: [Community] GlusterFS Reporter: Vijaykumar Koppad <vkoppad>
Component: glusterdAssignee: krishnan parthasarathi <kparthas>
Status: CLOSED CURRENTRELEASE QA Contact: Vijaykumar Koppad <vkoppad>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: mainlineCC: bbandari, gluster-bugs, nsathyan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:46:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: 3.3.0qa42 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 817967    

Description Vijaykumar Koppad 2012-05-17 06:17:41 UTC
Description of problem: With a distribute volume , if you do any replace-brick operation after the  replace-brick start will fail saying brick or a prefix of it is already part of a volume. 

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

How reproducible:Always 


Steps to Reproduce:
1.Create a distribute volume.
2.Start a replace-brick with one of the bricks.
3.The run replace-brick status.
  
Actual results:It is failing 


Expected results:It shouldn't fail 


Additional info:

Volume Name: doa
Type: Distribute
Volume ID: c6da8c1c-bc21-4ac5-bf9a-59b7cdb2ba1c
Status: Started
Number of Bricks: 4
Transport-type: tcp
Bricks:
Brick1: 192.168.1.57:/root/bricks/doa/d1
Brick2: 192.168.1.57:/root/bricks/doa/d2
Brick3: 192.168.1.57:/root/bricks/doa/d3
Brick4: 192.168.1.57:/root/bricks/doa/d4 

gluster --mode=script volume replace-brick doa 192.168.1.57:/root/bricks/doa/d1 192.168.1.57:/root/bricks/doa/d5 status 
/root/bricks/doa/d5 or a prefix of it is already part of a volume

Comment 1 Anand Avati 2012-05-19 09:35:55 UTC
CHANGE: http://review.gluster.com/3354 (glusterd: replace-brick should create dst brick path only once.) merged in master by Vijay Bellur (vijay)