Bug 764802 (GLUSTER-3070)

Summary: After 'rebalance', the gfid of the file gets changed
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: coreAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: mainlineCC: gluster-bugs, jdarcy, vijaykumar, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 763990    

Description Amar Tumballi 2011-06-22 06:46:16 UTC
Ideally, as rebalance is part of glusterfs internal activity, the 'gfid' (which is the identity for a file, like inode number) gets changed.

This is not causing any problems as of now because glusterfs being distributed system, can do a re-lookup and get the info of file even if the gfid changes, but in theory, the gfid of the file should remain same even after rebalance. (which is very important to handle open-fd rebalance).

Comment 1 Anand Avati 2011-07-14 05:01:49 UTC
PATCH: http://patches.gluster.com/patch/7711 in master (distribute: bring in feature to do rebalance from inside)

Comment 2 Anand Avati 2011-07-14 05:01:54 UTC
PATCH: http://patches.gluster.com/patch/7712 in master (glusterd-rebalance: utilize distribute's internal rebalance feature)

Comment 3 Vijaykumar 2011-08-16 09:19:30 UTC
I created a distribute volume with one brick and started it and mounted it as fuse mount. I created some 5 files using touch on the mount point and checked their gfids in the backend. Then added one brick to the volume and started rebalance,then checked gfids of all the files in the backend. Now gfids won't change with the rebalance.