From 7c4461329bba38b72536ee71a8172bc861ddf890 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Mon, 9 Feb 2015 18:03:20 +0530 Subject: snapshot/scheduling: A cron based scheduler for snapshot scheduling GlusterFS volume snapshot provides point-in-time copy of a GlusterFS volume. Currently, GlusterFS volume snapshots can be easily scheduled by setting up cron jobs on one of the nodes in the GlusterFS trusted storage pool. This has a single point failure (SPOF), as scheduled jobs can be missed if the node running the cron jobs dies. The solution to the above problems is addressed in this patch. The snap_scheduler.py helper script expects the user to install the argparse python module before using it. Further details for the same are available at: http://www.gluster.org/community/documentation/index.php/Features/Scheduling_of_Snapshot Change-Id: I2c357af5b7d3e66f270d20eef50cdeecdcbe15c7 BUG: 1198027 Signed-off-by: Avra Sengupta Signed-off-by: Aravinda VK Reviewed-on: http://review.gluster.org/9788 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- glusterfs.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 8325b44c409..78970964172 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -1054,6 +1054,9 @@ fi %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre +#snap_scheduler +install -p -m 0744 extras/snap_scheduler/snap_scheduler.py %{_sbindir}/ +install -p -m 0744 extras/snap_scheduler/gcron.py %{_sbindir}/ %ghost %attr(0644,-,-) %config(noreplace) %{_sharedstatedir}/glusterd/glusterd.info %ghost %attr(0600,-,-) %{_sharedstatedir}/glusterd/options @@ -1101,6 +1104,9 @@ fi * Tue Mar 03 2015 Aravinda VK - Included glusterfind files as part of server package. +* Sun Mar 1 2015 Avra Sengupta +- Added installation of snap-scheduler + * Thu Feb 26 2015 Kaleb S. KEITHLEY - enable cmocka unittest support only when asked for (#1067059) -- cgit