Bug 1452528

Summary: rebalance: fix space check for migration for rebalance
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Susant Kumar Palai <spalai>
Component: distributeAssignee: Susant Kumar Palai <spalai>
Status: CLOSED ERRATA QA Contact: Prasad Desala <tdesala>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: amukherj, nbalacha, rhinduja, rhs-bugs, spalai, storage-qa-internal
Target Milestone: ---   
Target Release: RHGS 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8.4-26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-21 04:43:23 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1417151    

Description Susant Kumar Palai 2017-05-19 07:13:42 UTC
Description of problem:

Before migration of file we do fallocate on the source subvol.
With that we do not need to add file size to the source disk size(avail), to decide whether the file needs to be migrated for a rebalance(not remove-brick) case.

This needs to be fixed in __dht_check_free_space.

Comment 9 Prasad Desala 2017-07-31 12:51:14 UTC
Followed the same steps as in the Comment 8, rebalance skipped the file for migration. 
Also, took Susant help and confirmed that this issue is fixed through gdb. Hence, moving this BZ to Verified.

Comment 10 Prasad Desala 2017-07-31 12:52:12 UTC
Verified on glusterfs version: 3.8.4-36.el7rhgs.x86_64

Comment 12 errata-xmlrpc 2017-09-21 04:43:23 UTC
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://access.redhat.com/errata/RHBA-2017:2774