Bug 764801 (GLUSTER-3069)

Summary: 'gluster rebalance' doesn't preserve any of the extended attributes of the migrated file
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: distributeAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: mainlineCC: anush, gluster-bugs, jdarcy, lakshmipathi, 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: RTA 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: 763990    

Description Amar Tumballi 2011-06-22 06:42:40 UTC
This is part of bug 763990. We have to make sure all the data/meta-data related to a file are properly migrated when a file gets migrated as part of rebalance. Currently I did tests to check if the extended attributes (anything other than glusterfs's xattrs) are not getting copied over to destination.

Comment 1 Amar Tumballi 2011-07-06 03:40:28 UTC
*** Bug 3099 has been marked as a duplicate of this bug. ***

Comment 2 Anand Avati 2011-07-12 04:07:22 UTC
PATCH: http://patches.gluster.com/patch/7825 in release-3.2 (glusterd rebalance: bring in feature to migrate extended attributes too)

Comment 3 Anand Avati 2011-07-12 09:38:08 UTC
PATCH: http://patches.gluster.com/patch/7840 in release-3.2 (glusterd rebalance: mount with '--acl' option for rebalancing.)

Comment 4 Anand Avati 2011-07-19 12:04:21 UTC
CHANGE: http://review.gluster.com/9 (currently when a file gets migrated, the extended attributes of the) merged in release-3.1 by Anand Avati (avati)

Comment 5 Lakshmipathi G 2011-08-04 07:16:01 UTC
tested with 3.1.6qa3. 
1.set custom extended attribute using setfattr on 25 files.
2.Added 2 more brick (/export3) to existing dht-afr(/export1,export2) volume.
3.now did a rebalance.
4.user given extended attributes are present on new bricks(export3)

getfattr -d -m . /export3/24.txt 
getfattr: Removing leading '/' from absolute path names
# file: export3/24.txt
trusted.gfid=0syhDrGQ97RluQC+4W/MyCTQ==
trusted.user.foo="bar"