Bug 770346

Summary: Remove-brick commit operation causing data loss
Product: [Community] GlusterFS Reporter: shylesh <shmohan>
Component: coreAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: mainlineCC: amarts, gluster-bugs, joe, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: BETA1
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:26:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: 3.3.0qa33 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 817967    

Description shylesh 2011-12-26 06:05:39 UTC
Description of problem:
removing a brick looses all data from that brick

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

How reproducible:
often

Steps to Reproduce:
1.create a distribute volume with 2 bricks 
2.create some files and directories on the mount point
3.gluster volume remove-brick $vol $brick2 start 
4. Once the status shows completed execute "gluster volume remove-brick $vol $brick2 commit"
  
Actual results:
Number of files decreased on the mount point after the operation

Expected results:
This feature should migrate the files to the remaining bricks and there should be no data loss

Additional info:

Comment 1 Amar Tumballi 2012-03-12 09:46:35 UTC
please update these bugs w.r.to 3.3.0qa27, need to work on it as per target milestone set.

Comment 2 shylesh 2012-03-12 10:23:06 UTC
 This bug is still reproducible on  3.3.0qa27

(In reply to comment #1)
> please update these bugs w.r.to 3.3.0qa27, need to work on it as per target
> milestone set.

Comment 3 Amar Tumballi 2012-03-13 12:34:06 UTC
patch sent : http://review.gluster.com/2933

Comment 4 Anand Avati 2012-03-14 10:24:32 UTC
CHANGE: http://review.gluster.com/2933 (distribute-rebalance: fix the logic of ENOENT handling) merged in master by Vijay Bellur (vijay)

Comment 5 shylesh 2012-04-09 06:42:08 UTC
Data loss upon single brick removal is fixed, however removing multiple bricks at the same time has issues will log a new bug.