Bug 1615338
| Summary: | Rebalance status shows wrong count of "Rebalanced-files" if the file has hardlinks | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Prasad Desala <tdesala> | |
| Component: | distribute | Assignee: | Nithya Balachandran <nbalacha> | |
| Status: | CLOSED ERRATA | QA Contact: | Prasad Desala <tdesala> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | rhgs-3.4 | CC: | amukherj, apaladug, rhs-bugs, sankarshan, storage-qa-internal, vdas | |
| Target Milestone: | --- | Keywords: | Regression | |
| Target Release: | RHGS 3.4.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | glusterfs-3.12.2-16 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1615474 (view as bug list) | Environment: | ||
| Last Closed: | 2018-09-04 06:52:17 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: | 1503137, 1615474 | |||
Verified this BZ on 3.12.2-16.el7rhgs.x86_64.
root@dhcp42-143 ~]# gluster v rebalance prasad status
Node Rebalanced-files size scanned failures skipped status run time in h:m:s
--------- ----------- ----------- ----------- ----------- ----------- ------------ --------------
localhost 0 0Bytes 23201 0 3454 completed 0:02:21
10.70.43.41 0 0Bytes 22765 0 3428 completed 0:02:10
10.70.43.35 0 0Bytes 22767 0 3286 completed 0:02:05
10.70.43.37 0 0Bytes 21646 0 2906 completed 0:01:53
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/RHSA-2018:2607 |
Description of problem: ======================= Rebalance status shows wrong count of "Rebalanced-files" if the file has hardlinks. Total 20k files and each file has one hardlink. [root@dhcp42-167 distrep-b0]# gluster v rebalance distrep status Node Rebalanced-files size scanned failures skipped status run time in h:m:s --------- ----------- ----------- ----------- ----------- ----------- ------------ -------------- localhost 2240 57.6KB 16028 0 2240 completed 0:01:28 10.70.42.177 2120 54.9KB 16029 0 2120 completed 0:01:29 10.70.42.173 2060 50.5KB 16016 0 2060 completed 0:01:33 10.70.42.176 2174 53.6KB 15950 0 2174 completed 0:01:43 10.70.42.169 2161 53.6KB 15933 0 2161 completed 0:01:45 10.70.42.166 2152 56.1KB 15957 0 2152 completed 0:01:40 Rebalance should skip all the files as every file has hardlinks. So, the total number of "Rebalanced-files" in rebalance status should be '0'. Version-Release number of selected component (if applicable): 3.12.2-15.el7rhgs.x86_64 How reproducible: ================= always Steps to Reproduce: ==================== 1) Create a distributed-replicate volume and start it. 2) FUSE mount it on a client. 3) Create 10k file and create one hardlink for each file. (total number of files will be 20k) 4) Now, add-brick and trigger rebalance. 5) Wait till the rebalance completes. Actual results: =============== Rebalance status shows wrong count of "Rebalanced-files" if the file has hardlinks. Expected results: ================= Rebalance should skip all the files as every file has hardlinks. So, the total number of "Rebalanced-files" in rebalance status should be '0' Additional info: ================ sos-reports, gluster-health-check reports will be shared.