Bug 1168552

Summary: DHT + rebalance :- skipped file count is always 'zero' even though rebalance has skipped many files .
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vivek Agarwal <vagarwal>
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED ERRATA QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: achauras, nbalacha, nsathyan, psriniva, racpatel, sankarshan, sharne, spalai, ssamanta, surs, vagarwal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 2.1.6   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.71rhs-1.el6rhs Doc Type: Bug Fix
Doc Text:
Previously, executing the rebalance status command displayed incorrect values for the number of skipped and failed file migrations. With this fix, the command displays the correct values for the number of skipped and failed file migrations.
Story Points: ---
Clone Of: 1140517 Environment:
Last Closed: 2015-01-28 10:43:45 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: 1140517    
Bug Blocks: 1161518, 1176659    

Comment 4 Amit Chaurasia 2015-01-09 12:38:17 UTC
Verified the bug by create a set of files and folders including renaming them.
Added a brick.
Synced up the IO's,
Performed rebalance.

The number of skipped file shown in the command status matches with the number shown in log files.

Log snippet:


[2015-01-09 17:51:36.994728] I [dht-rebalance.c:1914:gf_defrag_status_get] 0-glusterfs: Rebalance is completed. Time taken is 144.00 secs
[2015-01-09 17:51:36.994768] I [dht-rebalance.c:1917:gf_defrag_status_get] 0-glusterfs: Files migrated: 308, size: 21912, lookups: 1127, failures: 0, skipped: 251 <<<<<<<< No of files skipped. <<<< 
[2015-01-09 17:51:36.995875] W [glusterfsd.c:1099:cleanup_and_exit] (-->/lib64/libc.so.6(clone+0x6d) [0x3e23ce85ad] (-->/lib64/libpthread.so.0() [0x3e24007851] (-->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xcd) [0x4052fd]))) 0-: received signum (15), shutting down

Command output:
[root@dht-rhs-24 ~]# gluster v rebalance gv0 status
                                    Node Rebalanced-files          size       scanned      failures       skipped               status   run time in secs
                               ---------      -----------   -----------   -----------   -----------   -----------         ------------     --------------
                               localhost                0        0Bytes           886             0             0            completed             120.00
                            10.70.47.114              308        21.4KB          1127             0           251            completed             144.00
volume rebalance: gv0: success: 


Marking verified.

Comment 6 errata-xmlrpc 2015-01-28 10:43:45 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://rhn.redhat.com/errata/RHBA-2015-0095.html