Description of problem: Cannot set distribute.migrate-data xattr on a file to make it migrate. It works when it is internally driven but cannot be set from the shell. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create a <file> on a dispersed mounted volume <V>. 2. Add a brick. 3. Try to move the file using setfattr -n distribute.migrate-data -v a /mnt/<V>/<file> Actual results: setfattr fails. Expected results: File gets moved to new brick per new layout. Additional info: Failure appears to be due to unpopulated fields in loc_t: parent, pargfid, and name. They are needed by the rebalance task.
That it fails is kind-of expected. Extended attributes (when set through the filesystem) should probably start with "trusted.". In the case of "distribute.migrate-data", there should probably be a handler for "trusted.distribute.migrate-data" too, or maybe "trusted.glusterfs.distribute.migrate-data"?
yes, "trusted" makes sense. trusted.distribute,migrate-data seems like a good choice.For backward compatibility, the rebalance driver would still use distribute.migrate-data.
The version that this bug has been reported against, does not get any updates from the Gluster Community anymore. Please verify if this report is still valid against a current (3.4, 3.5 or 3.6) release and update the version, or close this bug. If there has been no update before 9 December 2014, this bug will get automatocally closed.
REVIEW: http://review.gluster.org/9284 ( Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data. Modify dht_setxattr to accept trusted.distribute.mig\ rate-data xattr on a file to make it migrate. The change makes this work both when it is internally driven and from the shell. The problem is furthe\ r described in bugzilla # 114707.) posted (#1) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work from CLI.) posted (#2) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9317 (This change makes rebalancing a file invokable from the CLI.) posted (#1) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI.) posted (#3) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (cluster/dht: Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI.) posted (#4) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (cluster/dht: Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI.) posted (#5) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (cluster/dht: Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI.) posted (#6) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (cluster/dht: Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI.) posted (#7) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (cluster/dht: Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI.) posted (#8) for review on master by Dan Lambright (dlambrig)
REVIEW: http://review.gluster.org/9284 (cluster/dht: Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI.) posted (#9) for review on master by Dan Lambright (dlambrig)
COMMIT: http://review.gluster.org/9284 committed in master by Shyamsundar Ranganathan (srangana) ------ commit 04c4ec96b88ee6392812a511de32b48bbe63a421 Author: Dan Lambright <dlambrig> Date: Tue Dec 16 10:28:57 2014 -0500 cluster/dht: Modify dht-rebalance.c to use trusted.distribute.migrate-data rather than distribute.migrate-data and work with CLI. The change makes this work both when it is internally driven and from the shell. The problem is further described in bugzilla # 1147107. Change-Id: I4fe04cae661dca25432530ddf5ac6ff2c957d6b3 BUG: 1147107 Signed-off-by: Dan Lambright <dlambrig> Reviewed-on: http://review.gluster.org/9284 Reviewed-by: N Balachandran <nbalacha> Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Shyamsundar Ranganathan <srangana>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user