Host-based backup of VMware vSphere VMs.
Post Reply
Spex
Enthusiast
Posts: 55
Liked: 2 times
Joined: May 09, 2012 12:52 pm
Full Name: Stefan Holzwarth
Contact:

Enhancement request

Post by Spex »

At the moment I try to find the best way to set up scheduling for about a virtual center with 1000 vm's.
Storage target (LAN) is a dedupe appliance. ESX storage over Fibrechannel. 700 of 1000 vms are should be backuped.
One of my goals is to add new vm's (semi-) automatic to existing backup jobs.

Setting up scheduling per vm is flexible but very, very timeconsuming. Sure you can use powershell but coordinating starttimes for 700 job's isn't funny. Also no automatic.

Jobs per datastore have 2 problems: we use storagemigration and some of the vm's that need not to be backuped reside on the same datastores as the others. Datastores with 2 TByte are a bit large for one job (synthetic backup times....)

We do no want to restructure the virtual center for better job granuarity. The current structure has 2 purpose's: resourcepools and security (organsiational structure)

Per esx server similar problems as datstores.

Since Veeam handels already customized attributes in virtual center why not use them?
The idea is: each vm has an attribute veeamjob with following content: job1|job2|job3|...|none
Within Veeam you define jobs job1,job2,job3... and let them backup the according vm's.

Wouldn't that be nice?
foggy
Veeam Software
Posts: 21070
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Enhancement request

Post by foggy »

Stefan, actually you could use any containers (such as folders or resource pools that are not changed during vMotion) to select VMs for backup in your job. Wouldn't that resolve your issues?

Also I would note that you should not coordinate the jobs start times in Veeam B&R v6 as it handles this automatically allowing you to limit the number of concurrently running jobs per proxy/repository.
tsightler
VP, Product Management
Posts: 6011
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Enhancement request

Post by tsightler » 4 people like this post

I have a Powershell script that effectively does this today but agree that this would be nice functionality. In the interim I have attached my script to this post. It would need to be modified for your use case, but should be pretty simple. The script basically reads a customer attribute "VeeamJob" from all VMs in vCenter and assigns the VMs to jobs with the same name in Veeam. If the attribute is changed/removed the VM will be removed from the job. If the job does not exist it will be created with some default parameters.
Attachments
Attribute2Backup.zip
(1.69 KiB) Downloaded 76 times
Spex
Enthusiast
Posts: 55
Liked: 2 times
Joined: May 09, 2012 12:52 pm
Full Name: Stefan Holzwarth
Contact:

Re: Enhancement request

Post by Spex »

foggy wrote:Stefan, actually you could use any containers (such as folders or resource pools that are not changed during vMotion) to select VMs for backup in your job. Wouldn't that resolve your issues?

Also I would note that you should not coordinate the jobs start times in Veeam B&R v6 as it handles this automatically allowing you to limit the number of concurrently running jobs per proxy/repository.
Our actual folder/resourcepool design isn't suited for job scheduling: e.g. one resourcepool "Production" with 300 vm's or regarding our folder design: 50 ou's/folders - one of them with 1 vm the other with 120 vm's...
Spex
Enthusiast
Posts: 55
Liked: 2 times
Joined: May 09, 2012 12:52 pm
Full Name: Stefan Holzwarth
Contact:

Re: Enhancement request

Post by Spex »

tsightler wrote:I have a Powershell script that effectively does this today but agree that this would be nice functionality. In the interim I have attached my script to this post. It would need to be modified for your use case, but should be pretty simple. The script basically reads a customer attribute "VeeamJob" from all VMs in vCenter and assigns the VMs to jobs with the same name in Veeam. If the attribute is changed/removed the VM will be removed from the job. If the job does not exist it will be created with some default parameters.
very nice, I will have a very closer look at your script when it comes to final design. Thanks a lot for sharing.
dellock6
VeeaMVP
Posts: 6138
Liked: 1931 times
Joined: Jul 26, 2009 3:39 pm
Full Name: Luca Dell'Oca
Location: Varese, Italy
Contact:

Re: Enhancement request

Post by dellock6 »

If it's about performances, in each job VM are processed sequentially, so there is no difference in having 10 or 1000 VMs in a job. Cuncurrency is managed with several jobs, not inside the same job.
Luca Dell'Oca
Principal EMEA Cloud Architect @ Veeam Software

@dellock6
https://www.virtualtothecore.com/
vExpert 2011 -> 2022
Veeam VMCE #1
domenicalvaro
Influencer
Posts: 11
Liked: never
Joined: Dec 12, 2011 7:19 am
Full Name: Domenic Alvaro
Contact:

Re: Enhancement request

Post by domenicalvaro »

Spex wrote: Our actual folder/resourcepool design isn't suited for job scheduling: e.g. one resourcepool "Production" with 300 vm's or regarding our folder design: 50 ou's/folders - one of them with 1 vm the other with 120 vm's...
I understand why Resource Pool may not be suitable for backups, but surely the VM folder structure provides the best way to arrange VMs so that you can easily back them up in a logical order. I realise that I don't know your specific setup, but to me it would make sense to re-organise the folders to acheive your goal.
tsightler
VP, Product Management
Posts: 6011
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Enhancement request

Post by tsightler » 1 person likes this post

domenicalvaro wrote:I understand why Resource Pool may not be suitable for backups, but surely the VM folder structure provides the best way to arrange VMs so that you can easily back them up in a logical order. I realise that I don't know your specific setup, but to me it would make sense to re-organise the folders to acheive your goal.
In many organizations the folder structure is already used for security related access to VMs (I believe that the OP may have stated that his organization uses them in this way). In many cases this is "non-ideal" for backup and cannot easily be changed so your left with a non-optimal setup. Using attributes provides maximum flexibility in that they are not dependent on anything else in the infrastructure and can easily be automated with additional scripting.
Spex
Enthusiast
Posts: 55
Liked: 2 times
Joined: May 09, 2012 12:52 pm
Full Name: Stefan Holzwarth
Contact:

Re: Enhancement request

Post by Spex »

tsightler wrote: In many organizations the folder structure is already used for security related access to VMs (I believe that the OP may have stated that his organization uses them in this way). In many cases this is "non-ideal" for backup and cannot easily be changed so your left with a non-optimal setup. Using attributes provides maximum flexibility in that they are not dependent on anything else in the infrastructure and can easily be automated with additional scripting.
I can only agree with tsighter. The vm folder structure's primary purpose is to organize the access to the vm's. If the structure also fits for backup scheduling you are lucky. What we need is an independent mechanism.
Post Reply

Who is online

Users browsing this forum: No registered users and 53 guests