Bug 976755
Summary: | Rebalance : Few files missing on mount point after rebalance process [FUSE Mount] | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | senaik | |
Component: | glusterfs | Assignee: | shishir gowda <sgowda> | |
Status: | CLOSED ERRATA | QA Contact: | senaik | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 2.1 | CC: | amarts, nsathyan, rhs-bugs, sdharane, sgowda, vbellur | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.4.0.12rhs.beta5 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 983399 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-23 22:35:39 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: | 983399 |
Description
senaik
2013-06-21 11:30:31 UTC
The issue seems to be this: 1. Rebalance identifies file f281 to be migrated 2. file f281 migration starts 3. file f281 gets renames to files281 4. Rebalance (migration and truncation) complete as they are mostly fop based op 5. unlink call on f281 fails, as the file is now renamed to files281 6. files281 has linkto xattrs set on both src and dst pointing to each other Solution: make unlink after migration gfid based? Verfied in Version : 3.4.0.12rhs.beta6-1.el6rhs.x86_64 Verification Steps : ==================== 1) Create a distributed volume and start it 2) FUSE mount the volume and create files on mount point for i in {1..500} ; do dd if=/dev/urandom of=f"$i" bs=10M count=1; done 3) calculate are-equal check sum before starting rebalance /opt/qa/tools/arequal-checksum /mnt/Vol9/ Entry counts Regular files : 500 Directories : 1 Symbolic links : 0 Other : 0 Total : 501 Metadata checksums Regular files : 3e9 Directories : 24d74c Symbolic links : 3e9 Other : 3e9 Checksums Regular files : fcfe440c40a06a0023bf5120513d713c Directories : 30312a00 Symbolic links : 0 Other : 0 Total : df41152c21ac313c 4) Add 2 bricks and start rebalance 5) While rebalance is in progress , rename some files Node Rebalanced-files size scanned failures status run time in secs ----- ---------------- ------ --------- -------- ------- ---------------- localhost 29 290.0MB 33 3 in progress 5.00 10.70.34.86 24 240.0MB 206 41 in progress 5.00 10.70.34.87 0 0Bytes 518 80 completed 3.00 10.70.34.88 5 50.0MB 524 27 completed 3.00 volume rebalance: Vol9: success: for i in {11..400} ; do mv f"$i" files"$i" ; done 6) after rebalance is complete , calculate are equal check sum again /opt/qa/tools/arequal-checksum /mnt/Vol9/ Entry counts Regular files : 500 Directories : 1 Symbolic links : 0 Other : 0 Total : 501 Metadata checksums Regular files : 3e9 Directories : 24d74c Symbolic links : 3e9 Other : 3e9 Checksums Regular files : fcfe440c40a06a0023bf5120513d713c Directories : 3001050000302f00 Symbolic links : 0 Other : 0 Total : ef40102c11ad343c Regular files count has not changed before and after rebalance . Marking as 'Verfied' 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. http://rhn.redhat.com/errata/RHBA-2013-1262.html |