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.
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.
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
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.