summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorAravinda VK <avishwan@redhat.com>2016-02-24 18:18:12 +0530
committerAravinda VK <avishwan@redhat.com>2016-03-08 02:00:01 -0800
commiteae63bbcdaf6ec6ae5340b51bd05c476c791e38b (patch)
tree9eaf30fb3578810a9ba9b859ec38ddcb32f3efa2 /glusterfs.spec.in
parent8883c12216cc0c0770a4207e1e2a62fa16dc1528 (diff)
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 <MASTERVOL> \ <SLAVEHOST> <SLAVEVOL> 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: 1309191 Signed-off-by: Aravinda VK <avishwan@redhat.com> Reviewed-on: http://review.gluster.org/13279 Change-Id: Ie1507be00afd9ff189bb1664b156328dced4076a Reviewed-on: http://review.gluster.org/13510 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 7cb3f076673..38ad3f816b4 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -1072,6 +1072,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
@@ -1218,6 +1219,9 @@ fi
%changelog
+* Wed Feb 24 2016 Aravinda VK <avishwan@redhat.com>
+- Added schedule_georep.py script to glusterfs-georep rpm (#1309191)
+
* Sun Jan 17 2016 Niels de Vos <ndevos@redhat.com>
- glusterfs-server depends on -api (#1296931)