|author||M S Vishwanath Bhat <firstname.lastname@example.org>||2014-04-10 20:35:37 +0530|
|committer||Vijay Bellur <email@example.com>||2014-04-16 11:28:54 -0700|
Adding doc to upgrade geo-rep from older version to new geo-repv3.5.0
Change-Id: Ibfebca2bf92e63b906c9eb336b4a975c534a0bf2 BUG: 1086796 Signed-off-by: M S Vishwanath Bhat <firstname.lastname@example.org> Reviewed-on: http://review.gluster.org/7436 Reviewed-by: Niels de Vos <email@example.com> Reviewed-by: Lalatendu Mohanty <firstname.lastname@example.org> Reviewed-by: Humble Devassy Chirammal <email@example.com> Tested-by: Gluster Build System <firstname.lastname@example.org>
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/upgrade/geo-rep-upgrade-steps.md b/doc/upgrade/geo-rep-upgrade-steps.md
new file mode 100644
@@ -0,0 +1,42 @@
+#Steps to upgrade from previous verison of geo-replication to new distributed-geo-replication
+Here are the steps to upgrade your existing geo-replication setup to new distributed geo-replication in glusterfs-3.5. The new version leverges all the nodes in your master volume and provides better performace.
+ - Since new version of geo-rep very much different from the older one, this has to be done offline.
+ - New version supports only syncing between two gluster volumes via ssh+gluster.
+ - This doc deals with upgrading geo-rep. So upgrading the volumes are not covered in detail here.
+### Below are the steps to upgrade.
+- Stop the geo-replication session in older version ( < 3.5) using the below command
+gluster volume geo-replication <master_vol> <slave_host>::<slave_vol> stop
+- Now upgrade the master and slave volumes separately. The steps to upgrade volumes is pretty simple. You should unmount the volumes from client, stop the volume and glusterd. Upgrade to new version using yum upgrade or just installing new rpms, then restart glusterd and start the gluster volume. And if you are using quota feature, please follow the steps provided there.
+- Now since the new geo-replication requires gfids of master and slave volume to be same, generate a file containing the gfids of all the files in master
+cd /usr/share/glusterfs/scripts/ ;
+bash generate-gfid-file.sh localhost:<master_vol> $PWD/get-gfid.sh /tmp/master_gfid_file.txt ;
+scp /tmp/master_gfid_file.txt root@<slave_host>:/tmp
+- Now go to the slave host and aplly the gfid to the slave volume.
+bash slave-upgrade.sh localhost:<slave_vol> /tmp/master_gfid_file.txt $PWD/gsync-sync-gfid
+This will ask you for password of all the nodes in slave cluster. Please provide them, if asked.
+- Also note that this will restart your slave gluster volume (stop and start)
+- Now create and start the geo-rep session between master and slave. For instruction on creating new geo-rep seesion please refer distributed-geo-rep admin guide.
+gluster volume geo-replication <master_volume> <slave_host>::<slave_volume> create push-pem force
+gluster volume geo-replication <master_volume> <slave_host>::<slave_volume> start
+- Now your session is upgraded to use distributed-geo-rep