Bug 1399513 - Remove-brick: File with hardlinks is not migrated from the decommissioned bricks, commit results in data loss
Summary: Remove-brick: File with hardlinks is not migrated from the decommissioned bri...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: distribute
Version: rhgs-3.2
Hardware: Unspecified
OS: Unspecified
low
urgent
Target Milestone: ---
: ---
Assignee: Susant Kumar Palai
QA Contact: Prasad Desala
URL:
Whiteboard: dht-removebrick, dht-data-loss
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-29 08:48 UTC by Prasad Desala
Modified: 2020-01-16 07:23 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-16 07:23:41 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Prasad Desala 2016-11-29 08:48:14 UTC
Description of problem:
=======================
Remove-brick: File is not migrated from the decommissioned bricks,  commit results in data loss

Version-Release number of selected component (if applicable):
3.8.4-5.el7rhgs.x86_64

Steps to Reproduce:
===================
1) Create a distributed-replicate volume and start it.
2) FUSE mount the volume on multiple clients.
3) Run the below tasks from the clients,
  a) Client-1: Create a big file usind dd command
     dd if=/dev/urandom of=BIG bs=1024k count=10000
  b) Client-2: continuous lookups using ls -lRT
  c) Client-3: continuous lookups using find
  d) Client-4: Start a script which creates hardlinks to the file 'BIG'
4) With Step-3 running,  Identify on which bricks the file is actually stored and remove those bricks.
5) Wait till the migration completes.

The file is still present on the decommissioned bricks. so, if we issue remove-brick commit there will be a data loss. 

Actual results:
===============
File is not migrated from the decommissioned bricks,  commit results in data loss

Expected results:
=================
File should get migrated from decommissioned bricks to other bricks which are part of volume.


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