PowerShell script exchange
Post Reply
michele.berardo
Service Provider
Posts: 11
Liked: 3 times
Joined: Feb 26, 2014 11:54 am
Full Name: Michele Berardo
Contact:

Replication: Change all VMs to disk type "source"

Post by michele.berardo »

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.
m.
Andreas Neufert
VP, Product Management
Posts: 6707
Liked: 1401 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

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

Post by Andreas Neufert »

Do you try to change an existing Job? Can you please try to modify a new job (that never ran with your code) ?
michele.berardo
Service Provider
Posts: 11
Liked: 3 times
Joined: Feb 26, 2014 11:54 am
Full Name: Michele Berardo
Contact:

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

Post by michele.berardo »

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?
m.
Andreas Neufert
VP, Product Management
Posts: 6707
Liked: 1401 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

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

Post by Andreas Neufert »

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- ... 23725.html
michele.berardo
Service Provider
Posts: 11
Liked: 3 times
Joined: Feb 26, 2014 11:54 am
Full Name: Michele Berardo
Contact:

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

Post by michele.berardo »

I guess it is exactly what I was looking for. I'll try that and give you a feedback.
Thank you so much!
m.
Stabz
Veeam Legend
Posts: 113
Liked: 7 times
Joined: Apr 07, 2017 7:40 am
Full Name: Philippe DUPUIS
Contact:

[MERGED] Replica Disk Type

Post by Stabz »

Hi,

A new quick question for you :)

My Vm Disk format at source are thick lazy zeroed, in the replication side the disks are thin.

After a look in your helpcente, I found that is normal. https://helpcenter.veeam.com/docs/backu ... tml?ver=95

We have the possibilities to configure the job to change the disk format. But when I use the pick dastore option, I have to add my Vms and change the disk type, one by one.

There is no option to change the default value ?
DGrinev
Veteran
Posts: 1943
Liked: 247 times
Joined: Dec 01, 2016 3:49 pm
Full Name: Dmitry Grinev
Location: St.Petersburg
Contact:

Re: Replica Disk Type

Post by DGrinev »

Hi Philippe,

You can use Powershell script mentioned in this thread above. Thanks!
Stabz
Veeam Legend
Posts: 113
Liked: 7 times
Joined: Apr 07, 2017 7:40 am
Full Name: Philippe DUPUIS
Contact:

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

Post by Stabz »

Hi DGrinev,

Thanks for the answer, I ll take a look at this script!
Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests