From d7e052ee24b3e09f2e76c2fdb980e33e74d2a855 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Fri, 22 Jan 2016 12:11:18 +0530 Subject: geo-rep: Script to Schedule Geo-replication This script can be used to run Geo-replication when required. can be scheduled using cron job to run Geo-replication. This script does the following, 1. Stop Geo-replication if Started 2. Start Geo-replication 3. Set Checkpoint 4. Check the Status and see Checkpoint is Complete.(LOOP) 5. If checkpoint complete, Stop Geo-replication Usage: python /usr/share/glusterfs/scripts/schedule_georep.py \ For example, python /usr/share/glusterfs/scripts/schedule_georep.py gv1 fvm1 gv2 To schedule the Geo-replication to run once in a day using cron, # Run daily at 08:30pm 30 20 * * * root python /usr/share/glusterfs/scripts/schedule_georep.py \ --no-color gv1 fvm1 gv2 >> /var/log/glusterfs/schedule_georep.log 2>&1 BUG: 1300956 Change-Id: I6b1e2ddbf7fc09ef621499b57ae230fd4dbbd9a6 Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/13279 Smoke: Gluster Build System Reviewed-by: Kotresh HR NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Venky Shankar --- glusterfs.spec.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 9f04bc37e10..b0b7a1b51a8 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -1067,6 +1067,7 @@ fi %{_datadir}/glusterfs/scripts/gsync-upgrade.sh %{_datadir}/glusterfs/scripts/generate-gfid-file.sh %{_datadir}/glusterfs/scripts/gsync-sync-gfid +%{_datadir}/glusterfs/scripts/schedule_georep.py* %ghost %attr(0644,-,-) %{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf %{_libexecdir}/glusterfs/gfind_missing_files %{_sbindir}/gfind_missing_files @@ -1222,6 +1223,9 @@ fi %{_sbindir}/gf_recon %changelog +* Fri Jan 22 2016 Aravinda VK +- Added schedule_georep.py script to the glusterfs-geo-replication (#1300956) + * Sat Jan 16 2016 Niels de Vos - glusterfs-server depends on -api (#1296931) -- cgit