Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1142087 - Warning message to restore data from removed bricks, should not be thrown when 'remove-brick force' was used
Warning message to restore data from removed bricks, should not be thrown whe...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: distribute (Show other bugs)
3.0
x86_64 All
high Severity high
: ---
: RHGS 3.0.3
Assigned To: Susant Kumar Palai
SATHEESARAN
: ZStream
Depends On:
Blocks: 1087818 1157974 1162694
  Show dependency treegraph
 
Reported: 2014-09-16 03:14 EDT by SATHEESARAN
Modified: 2015-05-13 13:41 EDT (History)
9 users (show)

See Also:
Fixed In Version: glusterfs-3.6.0.32-1
Doc Type: Bug Fix
Doc Text:
Previously, a warning message asking the user to restore data from the removed bricks was displayed even when the "remove-brick" command was executed with the "force" option. With this fix, this warning message is no longer displayed
Story Points: ---
Clone Of:
: 1157974 (view as bug list)
Environment:
Last Closed: 2015-01-15 08:39:50 EST
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 RHBA-2015:0038 normal SHIPPED_LIVE Red Hat Storage 3.0 enhancement and bug fix update #3 2015-01-15 13:35:28 EST

  None (edit)
Description SATHEESARAN 2014-09-16 03:14:31 EDT
Description of problem:
-----------------------
'remove-brick force' was used to forcefully remove the brick from the volume, knowing that there would be data lost in that case. There is no data migration involved with 'remove-brick force'

But as of now, with the latest build, there is a warning thrown, suggesting the user to copy the data from the removed brick to the gluster mount, if the files are not migrated.

This arises contradiction.

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
glusterfs-3.6.0.28-1.el6rhs

How reproducible:
------------------
Always

Steps to Reproduce:
-------------------
1. Create a distributed volume
2. Try removing a brick forcefully

Actual results:
---------------
Warning message is thrown to copy back the data from the removed-brick to gluster mount ( if there are any data available on removed brick )

[root@rhss5 ~]# gluster volume remove-brick repvol NODE1:/rhs/brick1/b1 NODE2:/rhs/brick1/b1 force
Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
volume remove-brick commit force: success
Check the removed bricks to ensure all files are migrated.
If files with data are found on the brick path, copy them via a gluster mount point before re-purposing the removed brick. 

Expected results:
-----------------
The warning message should not be thrown, as there is no data migration is involved with 'remove-brick force'

Additional Info
----------------
The intent of 'remove-brick  force' is to remove the brick forcefully ignoring the data in it. We confirm the same before executing 'remove-brick force' saying - "Removing brick(s) can result in data loss. Do you want to Continue? (y/n)"

Again after executing 'remove-brick force' again warning message is thrown as - 
"Check the removed bricks to ensure all files are migrated.
If files with data are found on the brick path, copy them via a gluster mount point before re-purposing the removed brick.", which would be contradicting.
Comment 1 SATHEESARAN 2014-09-16 03:15:19 EDT
Example :

[root@rhss5 ~]# gluster volume remove-brick repvol NODE1:/rhs/brick1/b1 NODE2:/rhs/brick1/b1 force
Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
volume remove-brick commit force: success
Check the removed bricks to ensure all files are migrated.
If files with data are found on the brick path, copy them via a gluster mount point before re-purposing the removed brick.
Comment 3 Shalaka 2014-09-18 01:52:37 EDT
Please add doc text for this known issue.
Comment 5 Shalaka 2014-09-26 01:54:14 EDT
Canceling need_info as Nithya reviewed and signed-off the doc text.
Comment 9 SATHEESARAN 2014-11-28 12:52:20 EST
Verified with glusterfs-3.6.0.34-1.el6rhs and 'remove-brick force' doesn't show warning message to copy the files back from fuse mount.

Performed the following test,
1. Created a 2 node cluster
2. Created a distributed volume with 3 bricks
3. Added more files to the volume from fuse mount
4. Performed "remove-brick force" on the volume

Observation - No warning message seen to copy back the files as shown in remove-brick with data migration

Console logs
------------

[root@dhcp37-44 ~]# gluster volume remove-brick distvol dhcp37-201.lab.eng.blr.redhat.com:/rhs/brick1/bb1 force
Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
volume remove-brick commit force: success


Marking this bug as VERIFIED
Comment 13 errata-xmlrpc 2015-01-15 08:39:50 EST
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://rhn.redhat.com/errata/RHBA-2015-0038.html

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