diff --git a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java index 899772d2320..1f289e786e7 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java @@ -385,6 +385,14 @@ public class SnapshotSchedulerImpl implements SnapshotScheduler { @Override @DB public boolean start() { + + //reschedule all policies after management restart + List policyInstances = _snapshotPolicyDao.listAll(); + for( SnapshotPolicyVO policyInstance : policyInstances) { + if( policyInstance.getId() != Snapshot.MANUAL_POLICY_ID ) { + scheduleNextSnapshotJob(policyInstance); + } + } if (_testTimerTask != null) { _testClockTimer = new Timer("TestClock"); // Run the test clock every 60s. Because every tick is counted as 1 minute.