-
- Novice
- Posts: 5
- Liked: never
- Joined: Jan 26, 2012 5:00 pm
- Full Name: marcus nerger
- Contact:
Automatic Retry & Start
Hello,
I schedule a few Veeam Proxy Server to reboot ona daily basis and
iam looking for an option to auto retry or start jobs aber a system reboot ?
I could not find anthing related within the gui.
I believe the only option is to confige a windows bash script to execute a ps script ?
Thanks
I schedule a few Veeam Proxy Server to reboot ona daily basis and
iam looking for an option to auto retry or start jobs aber a system reboot ?
I could not find anthing related within the gui.
I believe the only option is to confige a windows bash script to execute a ps script ?
Thanks
-
- Enthusiast
- Posts: 84
- Liked: 8 times
- Joined: Jul 04, 2012 6:32 am
- Full Name: Tobias Elfstrom
- Contact:
Re: Automatic Retry & Start
Why would you want to restart or start job when you reboot a proxy? Or do you want to restart job that has failed due to the proxy reboot?
-
- Veeam Software
- Posts: 21138
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Automatic Retry & Start
Marcus, you could set your proxy servers reboots to occur at different time, that will allow you to rely on Veeam B&R built-in automatic job retries, since the overall job will continue to be executed on other proxies and only the failed tasks will be retried later.
-
- Novice
- Posts: 5
- Liked: never
- Joined: Jan 26, 2012 5:00 pm
- Full Name: marcus nerger
- Contact:
Re: Automatic Retry & Start
Tobias_Elfstrom wrote:Why would you want to restart or start job when you reboot a proxy? Or do you want to restart job that has failed due to the proxy reboot?
Hi Tobias, i only want to make sure that all backups jobs continue / resume the backup job after a system reboot.
Actually we have to to that manually for each proxy server and each with 5-10 Jobs.
Hi Alex,foggy wrote:Marcus, you could set your proxy servers reboots to occur at different time, that will allow you to rely on Veeam B&R built-in automatic job retries, since the overall job will continue to be executed on other proxies and only the failed tasks will be retried later.
do you mean the built-in automatic job retries options which you can configure per job ?
Automatic Retry: 1) times of retry 2) time to wait (10 Min atm)
It seems that all jobs are not running after a reboot.
Thanks, marcus
-
- Veeam Software
- Posts: 21138
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Automatic Retry & Start
Yes, I'm talking about these settings.
Do you have backup proxy selection set to automatic in your jobs? Do you reboot all proxy servers simultaneously?
Do you have backup proxy selection set to automatic in your jobs? Do you reboot all proxy servers simultaneously?
-
- Novice
- Posts: 5
- Liked: never
- Joined: Jan 26, 2012 5:00 pm
- Full Name: marcus nerger
- Contact:
Re: Automatic Retry & Start
Some have automatic settings, some are binded to a specific IP. I dont need to reboot all servers at the same time but i have to reboot the Veeam Server's as well (where all Jobs are configured).
-
- Veeam Software
- Posts: 21138
- Liked: 2141 times
- Joined: Jul 11, 2011 10:22 am
- Full Name: Alexander Fogelson
- Contact:
Re: Automatic Retry & Start
That explains. Rebooting the backup server during jobs execution is not considered the best practice (affects Veeam database as well). Can you carry those events over in time somehow?uxmax wrote:but i have to reboot the Veeam Server's as well (where all Jobs are configured).
-
- Enthusiast
- Posts: 84
- Liked: 8 times
- Joined: Jul 04, 2012 6:32 am
- Full Name: Tobias Elfstrom
- Contact:
Re: Automatic Retry & Start
Ah.
In case you cant get around your reboot window of the backup server I suggest you handle thos cases with a simple powershell script along the lines of this:
In case you cant get around your reboot window of the backup server I suggest you handle thos cases with a simple powershell script along the lines of this:
Code: Select all
Add-PSSnapin VMware.VimAutomation.Core
$Jobs = Get-VBRJob
foreach ($Job in $Jobs){
if (($Job.GetLastResult()) -eq "Failed") {
if ($Job.JobType -eq "Backup") {
Start-VBRJob -job $job -RetryBackup -RunAsync
}
}
-
- VP, Product Management
- Posts: 27371
- Liked: 2799 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Automatic Retry & Start
I would strongly suggest to find a way NOT to reboot your backup management server during job runs, as it can affect the consistency of Veeam configuration database.
-
- Product Manager
- Posts: 20400
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Automatic Retry & Start
Also, if I were to stick with the "script" scenario, I’d modify the proposed script a little bit, so that, it would restart only backup jobs that failed within last 24 hours:
Nevertheless, the preferable way is to not restart Veeam management server during backup/replication activities.
Thanks.
Code: Select all
Asnp VeeamPssnapin
$Jobs = Get-VBRJob | where {($_.jobtype -eq "Backup") -and (((Get-Date) - ($_.info.ScheduleOptions.LatestRun)).totalhours -le "24")}
foreach ($Job in $Jobs)
{
if (($Job.GetLastResult()) -eq "Failed") {
if ($Job.JobType -eq "Backup") {
Start-VBRJob -job $job -RetryBackup -RunAsync
}
}
}
Thanks.
-
- Novice
- Posts: 5
- Liked: never
- Joined: Jan 26, 2012 5:00 pm
- Full Name: marcus nerger
- Contact:
Re: Automatic Retry & Start
Good point!Vitaliy S. wrote:I would strongly suggest to find a way NOT to reboot your backup management server during job runs, as it can affect the consistency of Veeam configuration database.
So what about stopping all jobs, rebooting the vm and to retry the jobs?
-
- VP, Product Management
- Posts: 27371
- Liked: 2799 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: Automatic Retry & Start
Yes, that would be a better idea. Out of curiosity, why do you need to reboot your servers every day? What about rebooting this server as a post-backup job script which will be specified in the configuration of your last job? As an alternative, you can use this solution to check the status of your jobs, and once all jobs are complete trigger the reboot script.
Who is online
Users browsing this forum: Baidu [Spider], Gostev, Henrik.Grevelund, lyya, michele.berardo, Semrush [Bot], Zimenka and 185 guests