Bug 969298
Summary: | Renaming file while rebalance is in progress causes data loss | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | shylesh <shmohan> | |
Component: | glusterfs | Assignee: | vsomyaju | |
Status: | CLOSED ERRATA | QA Contact: | shylesh <shmohan> | |
Severity: | urgent | Docs Contact: | ||
Priority: | high | |||
Version: | 2.0 | CC: | nbalacha, nsathyan, rwheeler, ssamanta, vagarwal, vbellur, vsomyaju | |
Target Milestone: | --- | |||
Target Release: | RHGS 3.0.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | glusterfs-3.6.0.28-1 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1130888 1146895 (view as bug list) | Environment: | ||
Last Closed: | 2014-09-22 19:28:15 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: | 987422, 1127748, 1130888, 1131044, 1138395, 1139998, 1140348, 1146895, 1286059 |
Description
shylesh
2013-05-31 07:06:04 UTC
[root@anshi1 ~]# gluster v info dist1 Volume Name: dist1 Type: Distribute Volume ID: ed55b825-0805-49c8-873c-8447681e687c Status: Started Number of Bricks: 3 Transport-type: tcp Bricks: Brick1: 10.70.35.213:/brick2/dist1 Brick2: 10.70.35.230:/brick2/dist2 Brick3: 10.70.35.213:/brick2/dist3 moving the target to rhs-2.1.0 Dev ack to 3.0 RHS BZs In rebalance logs, we saw many files migrated from cached to hashed. After migration file should be from data-name by rebalance. But unlinks fails. It means that rename came in between and caused data loss. Race could be something like this: Src-cacehd Dst-hashed A A(linkto) mv A B came and and A should get renamed to B at src_cached and A(linkto) should get deleted. Migration migrated the A(Linkto) A(data) file from A to B. Rename case rename A->B unlink A So we are left with renamed linkto file. As discussed with Engineering Leads,marked as a blocker because dependent BZ 1127748 is a blocker. *** Bug 1136838 has been marked as a duplicate of this bug. *** verified on glusterfs-3.6.0.28-1 Verified by renaming 100 files constantly in a loop and simultaneously does add-brick + rebalance. Result : No data loss for i in {1..1000}; do for j in {1..100}; do mv f$j-$i f$j-`expr $i + 1`; done; done 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/RHEA-2014-1278.html |