+++ This bug was initially created as a clone of Bug #1265148 +++ Description of problem: This bug tracks all the changes required for geo-replication to work with sharding. Requirements as per design: 1. Both master and slave should be sharded 2. Sharding configurations should be retained same as in master Version-Release number of selected component (if applicable): mainline How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Geo-replication does not work with sharding Expected results: Geo-replication should work with sharding. Additional info:
REVIEW: http://review.gluster.org/12438 (features/shard: Support geo-rep for sharded volume) posted (#1) for review on release-3.7 by Kotresh HR (khiremat)
COMMIT: http://review.gluster.org/12438 committed in release-3.7 by Pranith Kumar Karampuri (pkarampu) ------ commit 0ce29bbd6a1cc459d4f4ffc50a4658988ef52039 Author: Kotresh HR <khiremat> Date: Thu Sep 24 15:42:14 2015 +0530 features/shard: Support geo-rep for sharded volume Approach: Shard xlator on slave side is by passed for all the fops to geo-rep mount. So each shard on master is considered as a separate file for geo-rep and it syncs them separately on to slave. The extended attribute in which shard maintains the size is also synced from master and shard on slave doesn't calculate by itself. Pre-requisites: 1. If master is sharded volume, slave also should be sharded. 2. Slave's shard configurations should be same as master. 3. Geo-rep config of xattr sync should not be disabled. All other dependant patches: 1. http://review.gluster.org/#/c/12205/ 2. http://review.gluster.org/#/c/12206/ 3. http://review.gluster.org/#/c/12225/ 4. http://review.gluster.org/#/c/12226/ BUG: 1275972 Change-Id: Ieba70e75ebaebd70851454e1b85c0fe86022ad8d Reviewed-on: http://review.gluster.org/12228 Tested-by: NetBSD Build System <jenkins.org> Reviewed-by: Krutika Dhananjay <kdhananj> Reviewed-by: Pranith Kumar Karampuri <pkarampu> Signed-off-by: Kotresh HR <khiremat> Reviewed-on: http://review.gluster.org/12438 Tested-by: Gluster Build System <jenkins.com>
All other 3.7 dependent patches for geo-rep interop with sharding: http://review.gluster.org/#/c/12732/ http://review.gluster.org/#/c/12729/ http://review.gluster.org/#/c/12721/ http://review.gluster.org/#/c/12731/