Bug 1063162
Summary: | rebalance : link files are created with size same as the source file size but not as zero byte file | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | spandura | |
Component: | distribute | Assignee: | Nithya Balachandran <nbalacha> | |
Status: | CLOSED DEFERRED | QA Contact: | storage-qa-internal <storage-qa-internal> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 2.1 | CC: | kdhananj, nlevinki, spalai, vbellur | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1270750 1286131 (view as bug list) | Environment: | ||
Last Closed: | 2015-11-27 11:42:12 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: | 1270750, 1286131 |
Description
spandura
2014-02-10 07:28:29 UTC
Updating the bug with my findings: I had had a look at Shwetha's setup (and the code of course) before the bug was raised. This problem is caused due to the order in which the following two actions are performed on a file about to be migrated by the rebalance process: a. determining the disk space availability on the dest and src subvols; b. opening fd on the destination sub-volume and truncating the link file on the destination to the size of the original file on the source sub-volume. The rebalance process does (b) first followed by (a) (when it actually should be doing (a) followed by (b)). And upon sensing that the disk space available on the destination is less than that on the src sub-volume, the rebalance process aborts migration of the file in question, thereby leaving the link file with a non-zero size on the destination sub-volume. Note: * Truncating the file to a higher size does not cause data blocks to be allocated for the file. * The last change on this area of code was on 2013-09-17 and is not introduced in Corbett. Cloning this to 3.1. To be fixed in future. |