I just recently replaced my production storage array. In order to facilitate the transfer, and sleep easier at night (while I ensure that the new array performs to expectations and the like) I had my new SA replicating to my old SA, within the same fabric, for an easy failover if need be.
I'm convinced, and I've moved my old SA to my DR site. It presently has a bunch of replicas already on it, which are already re-added to the inventory of the DR site cluster. The datastores are all the same, they're just at a different cluster now (literally just turned off the old SA, drove it over, turned it on, and presented the LUNs to my DR hosts).
Rather than re-replicate the many TB of data, I'd love to just reuse the existing replicas. I have one job for each VM.
I've gotten this far, but I can see a few things missing:
- ReplicaTargetVMFolderRef: I would imagine this is the folder within which the actual VM sits - this wouldn't change, if my assumption is correct
- ReplicaTargetReourcePoolRef: This would definitely change... though I'd only need to find it once since they all sit in the same resource pool. The question is... where do I find that?
- VM Mapping: Would I need to map it? The same job will be targetting the same source and destination VMs, it's just going to be in a new location.
Code: Select all
$jobs = get-VBRJob |where-object {$_.name -like "*_R"}
$jobs | foreach-object {
$opt = $_.ViReplicaTargetOptions;
$opt.ClusterName="DR cluster name";
# $opt.ReplicaTargetVMFolderRef="????";
$opt.ReplicaTargetResourcePoolRef="???";
$_.SetOptions($opt);
}