Replication: Change all VMs to disk type "source"

PowerShell script exchange

Replication: Change all VMs to disk type "source"

Veeam Logoby michele.berardo » Tue Mar 07, 2017 5:07 pm

Hi all,
I've this need and I cannot find a way to solve it. At a customer I have 2 different sites, and some Replication Jobs that replicate all the VMs from the production site to the DR site. These jobs have "datastore" as source so I can have the same datastore layout at the destination and replicate exactly all the VMs inside the specific datastore to the same one in the destination.
Unfortunately I cannot find a way to modify all the VMs (about 100) to replicate using the source disk type (thick provision lazy zeroed) so all the destination VMs are thin provision (that is the default behavior) and I don't want this.
I've just tried the cmdlet: Get-VBRJob -name "replica_xyz" | Set-VBRViReplicaJob -DiskType Source
but it seems to leave the settings inaltered.
I'm using Veeam B&R 9.5 U1

Do you have some suggestions?
Thank you so much for your help.
Regards.
michele.berardo
Novice
 
Posts: 3
Liked: never
Joined: Wed Feb 26, 2014 11:54 am
Full Name: Michele Berardo

Re: Replication: Change all VMs to disk type "source"

Veeam Logoby Andreas Neufert » Sun Mar 12, 2017 11:10 pm

Do you try to change an existing Job? Can you please try to modify a new job (that never ran with your code) ?
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Replication: Change all VMs to disk type "source"

Veeam Logoby michele.berardo » Mon Mar 13, 2017 3:57 pm

Hi Andreas,
thank you for your reply but I cannot understand what are you suggesting me? These are all new jobs, the customer didn't have replicas before. But the default setting is to replicate using thin disks, but I need to use "source". How can I do massively?
michele.berardo
Novice
 
Posts: 3
Liked: never
Joined: Wed Feb 26, 2014 11:54 am
Full Name: Michele Berardo

Re: Replication: Change all VMs to disk type "source"

Veeam Logoby Andreas Neufert » Mon Mar 13, 2017 8:39 pm

If the VM disk was already added under "Pick Datastore"... you can use the following way to change this.
powershell-f26/example-replica-vm-disk-target-and-type-t23725.html
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Replication: Change all VMs to disk type "source"

Veeam Logoby michele.berardo » Wed Mar 15, 2017 12:16 pm

I guess it is exactly what I was looking for. I'll try that and give you a feedback.
Thank you so much!
michele.berardo
Novice
 
Posts: 3
Liked: never
Joined: Wed Feb 26, 2014 11:54 am
Full Name: Michele Berardo


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 2 guests

cron