Feature Request: "Disable after current/next process"

VMware specific discussions

Feature Request: "Disable after current/next process"

Veeam Logoby pkelly_sts » Thu Jun 09, 2016 8:44 am

More aimed at the "constant" jobs such as backup copy jobs, but it would occasionally be very useful to be able to configure a job to pause or disable after the current cycle, without having to edit the config of that job.

In this particular case, I'm having an issue with the merge process taking longer than expected and have been issued with a hotfix but the sync cycle of the copy job started itself again for some reason overnight so I'm going to have to wait for that to complete, then for the (very slow) merge process to also complete before I can safely stop the services and apply the hotfix.

I know you can edit the job & create a maintenance time window within its schedul but I really dislike the impact this has on the scheduling/cycle of copy jobs as it always seems to throw timings out (because you have to stop & restart the job for the changes to take effect, and then you have to edit the job again after you've completed your maintenance, which resets the clock & impacts the timings once again).

Actually, what would REALLY be quite useful is something along the lines of a "Global Maintenance Window" that is somehow centrally managed and, most importantly, which ALL JOBS must watch for and honour regardless of their own time window settings, stopping gracefully when told to do so.

Good idea or crazy/lazy/greedy? :-)
[New Sig: PLEASE get GFS tape support for incrementals!!!]
pkelly_sts
Expert
 
Posts: 511
Liked: 55 times
Joined: Thu Jun 13, 2013 10:08 am
Full Name: Paul Kelly

Re: Feature Request: "Disable after current/next process"

Veeam Logoby Shestakov » Fri Jun 10, 2016 4:21 pm

Hello Paul,
Thanks for the interesting requests.
"Disable after the job is finished" makes sense. It`s not that often request and may be workarounded with powershell, so let`s see if there is more demand to implement it as UI option.
"Global backup window" is also an interesting one, but again it can be done by powershell script.
Note that window of backup and backup copy jobs work a bit differently. Backup job window aborts the job processing while backup copy window only pauses data transfer.
Thanks!
Shestakov
Veeam Software
 
Posts: 5140
Liked: 430 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov

Re: Feature Request: "Disable after current/next process"

Veeam Logoby mkretzer » Sat Jun 11, 2016 11:24 am

We also need this! It gets harder and harder to get maintenance windows because there are always jobs running...

Gesendet von meinem Nexus 6P mit Tapatalk
mkretzer
Expert
 
Posts: 342
Liked: 74 times
Joined: Thu Dec 17, 2015 7:17 am

Re: Feature Request: "Disable after current/next process"

Veeam Logoby Shestakov » Sat Jun 11, 2016 4:41 pm

mkretzer,
Thanks for the feedback. It`s taken into account!
Shestakov
Veeam Software
 
Posts: 5140
Liked: 430 times
Joined: Wed May 21, 2014 11:03 am
Location: Saint Petersburg
Full Name: Nikita Shestakov

Re: Feature Request: "Disable after current/next process"

Veeam Logoby pkelly_sts » Mon Jun 13, 2016 1:12 pm

Could you suggest some powershell scripting to achieve the same?
[New Sig: PLEASE get GFS tape support for incrementals!!!]
pkelly_sts
Expert
 
Posts: 511
Liked: 55 times
Joined: Thu Jun 13, 2013 10:08 am
Full Name: Paul Kelly

Re: Feature Request: "Disable after current/next process"

Veeam Logoby jmmarton » Mon Jun 13, 2016 1:45 pm

I recently ran into a situation where a customer needs to run two different jobs against the same set of VMs, a daily job and a monthly job (note in most cases a Backup Copy Job would handle this). I spoke with one of our solutions architects who is a PowerShell guru and this is what he came up with.

I create two jobs, a daily job called “Test Job” and a monthly job called “Test Job Monthly”. I schedule the monthly job to run 1 minute prior to the daily job and added the following two lines as pre-/post scripts:

Pre-Job Script
Code: Select all
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -Noninteractive -Command "asnp VeeamPSSnapin;"("Get-VBRJob -Name ""Test Job""")".DisableScheduler"()""


Post-Job Script
Code: Select all
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -Noninteractive -Command "asnp VeeamPSSnapin;"("Get-VBRJob -Name ""Test Job""")".DisableScheduler"()""


These two scripts effectively disable the daily job as soon as the monthly job starts, and re-enables it after the monthly job completes. Since the monthly job was running during the normal start time of the daily job, when the daily job is re-enabled it’s automatically schedule for its next run the following day.


That should give you an example of what could be done to automate enabling/disabling jobs.

Joe
jmmarton
Veeam Software
 
Posts: 943
Liked: 100 times
Joined: Tue Nov 17, 2015 2:38 am
Location: Chicago, IL
Full Name: Joe Marton

Re: Feature Request: "Disable after current/next process"

Veeam Logoby pkelly_sts » Mon Jun 13, 2016 2:07 pm

Interesting, thanks (I'm guessing the second is an accidental re-paste of the first & it should actually end with ".EndableScheduler"()"" ?

Useful to know such tricks but I'd imagine it would be a right pain to manage this way for a larger environment, especially if you're already using pre/post scripts?
[New Sig: PLEASE get GFS tape support for incrementals!!!]
pkelly_sts
Expert
 
Posts: 511
Liked: 55 times
Joined: Thu Jun 13, 2013 10:08 am
Full Name: Paul Kelly

Re: Feature Request: "Disable after current/next process"

Veeam Logoby larry » Mon Jun 13, 2016 3:26 pm

I would like a snooze button, not just a disable. I have backup copy jobs I want to snooze for a few hours as I rerun a job during production hours but don't want the BC job to run. I now disable the job but sometimes I go home without enabling the job. Even the script to disable a job, which I like but a snooze would still be better because if something happed a job wouldn't be left in disabled state.
larry
Expert
 
Posts: 383
Liked: 90 times
Joined: Wed Mar 24, 2010 5:47 pm
Full Name: Larry Walker

[MERGED] Snooze button for jobs or skip next job ru

Veeam Logoby larry » Wed Jan 04, 2017 1:33 pm

When we need to redo a backup job to disks which contains VMs that are part of other jobs it would be nice to have a snooze button for other jobs. We do a lot of SAN snapshots from Veeam and I need to disable those jobs when I rerun a normal backup to disk jobs, both job do application consistence backups. When I disable sometimes I forget to re-enable the job. Would be really great is I could have a snooze all for an hour or two during some type of maintenance window. This is needed for replication jobs as well.
larry
Expert
 
Posts: 383
Liked: 90 times
Joined: Wed Mar 24, 2010 5:47 pm
Full Name: Larry Walker

Re: Feature Request: "Disable after current/next process"

Veeam Logoby v.Eremin » Wed Jan 04, 2017 1:52 pm

We've got similar requests already. For now there is no such functionality, so, enabling/disabling scripts scheduled via Task Scheduler appear to be the only workaround. Thanks.
v.Eremin
Veeam Software
 
Posts: 13709
Liked: 1025 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to VMware vSphere



Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest