Run All VMware Backup Jobs CBT disabled and re-enable after

PowerShell script exchange

Run All VMware Backup Jobs CBT disabled and re-enable after

Veeam Logoby jbennett » Tue Nov 17, 2015 10:58 pm

In light to the CBT bug KB2136854 ref:http://forums.veeam.com/vmware-vsphere-f24/there-s-a-new-cbt-bug-in-esxi-6-t31280.html, I wanted to be able to schedule of our VMware backup jobs to run once a week without CBT disabled, then re-enable CBT once it's done. Also, I only wanted to limit CBT disabled to one job at a time to prevent such a large impact on our entire systems and jobs.

https://github.com/cajeeper/Veeam/blob/master/Run-JobsWithoutCBT.ps1

Image

Can any expert let me know if I'm on the right track?

Thank you,
-Justin
[@cajeeper]|[http://www.allthingstechie.net]
jbennett
Enthusiast
 
Posts: 33
Liked: 12 times
Joined: Tue Jun 23, 2015 3:47 pm
Location: Hemet, CA
Full Name: Justin Bennett

Re: Run All VMware Backup Jobs CBT disabled and re-enable af

Veeam Logoby v.Eremin » Wed Nov 18, 2015 12:02 pm 1 person likes this post

I would limit the scope to backup and replication jobs, because along with backup and replication jobs Get-VBRJob commandlet would return file copy, VM copy and backup copy jobs. Then, your code would try to disable CBT on them and execute them in accordance. So, this modification might be needed:

Code: Select all
Get-VBRJob | ? {$_.JobType -eq "Backup" -or $_.JobType -eq "Replica"}


Other than that, everything looks good.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Run All VMware Backup Jobs CBT disabled and re-enable af

Veeam Logoby jbennett » Wed Nov 18, 2015 4:01 pm

v.Eremin wrote:I would limit the scope to backup and replication jobs...


Good call. We're not using replications just yet. I've added that limitation.

So far, I've tested it with some jobs and seemed to work as expected.

Thank you!
-Justin
[@cajeeper]|[http://www.allthingstechie.net]
jbennett
Enthusiast
 
Posts: 33
Liked: 12 times
Joined: Tue Jun 23, 2015 3:47 pm
Location: Hemet, CA
Full Name: Justin Bennett

Re: Run All VMware Backup Jobs CBT disabled and re-enable af

Veeam Logoby v.Eremin » Wed Nov 18, 2015 4:24 pm

You're welcome. Should other questions arise, don't hesitate to ask. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Run All VMware Backup Jobs CBT disabled and re-enable af

Veeam Logoby jbennett » Sun Nov 22, 2015 9:28 pm 2 people like this post

So far, it's been working just fine. It's going on 40 hours in our system, but it's still churning away. 1 more job out of 7 left.

I can't wait for that patch Gostev just mentioned in the weekly digest.
-Justin
[@cajeeper]|[http://www.allthingstechie.net]
jbennett
Enthusiast
 
Posts: 33
Liked: 12 times
Joined: Tue Jun 23, 2015 3:47 pm
Location: Hemet, CA
Full Name: Justin Bennett


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests