ARAVINDA VISHWANATHAPURA

Introducing georepsetup - Gluster Geo-replication Setup Tool

Sep 2, 2015
1 minute read.
geo-replication gluster glusterfsblog
UPDATE: This tool is merged with gluster-georep-tools. Check this blog for more details.

How many of you succeeded to set up Gluster Geo-replication for the first time? SSH keys need to be deployed to all Slave nodes from all Master nodes as part of the Geo-replication setup. So number of steps involved in setting up Geo-rep is not very easy to manage. We get more queries in gluster-devel and gluster-users lists related to Geo-rep Setup than actually using Geo-replication, many users stopped trying Geo-replication after they faced issues during setup.

With the release of Gluster 3.7, the Geo-replication got lots of improvements. Will write blog about new features and improvements in my next blog. Yesterday I wrote a CLI tool using Python to simplify the steps involved in Geo-replication setup. Now setting up Geo-replication is as easy as running one command. Yay!

For example,

sudo georepsetup <MASTERVOL> <SLAVEHOST> <SLAVEVOL>

It prompts for the Root’s Password of Slave node specified in the command. That’s it!

This command also produces a good summary as shown below. Now it is very easy to trace the errors and handle them.

Summary

Install

Install this tool on any one master node where you wish to initiate the Geo-replication setup,

git clone https://github.com/aravindavk/georepsetup.git
cd georepsetup
sudo python setup.py install

This tool is not packaged as RPM/Deb Yet. Pull requests are Welcome :)

Setting up non-root Geo-replication still involves some manual steps, will try to improve in future.

Documentation is available here

Comments & Suggestions Welcome.

About Aravinda Vishwanathapura

Co-Founder & CTO at Kadalu Technologies, Creator of Sanka, Creator of Chitra, GlusterFS core team member, Maintainer of Kadalu Storage
Contact: Linkedin | Twitter | Facebook | Github | mail@aravindavk.in