I have written a script that will clone a live vm from one cluster to another (Across Datacenters or Local).
To understand what is happeing I will explain our environment and then what this is used for:
Environment:
Consists of 3 Clusters spanning 2 DataCenters (2 in NYC, 1 in NJ)
All Managed by a single VirtualCenter Server(VM)
All ESX Hosts are HP BL680c G5 fully Loaded and are attached to HP EVA 8K's with multiple Fiber Connection/Paths.
All Network connections are aggregated for maximum bandwith (Minimum 4 connection per VLAN).
So now what the scripts are used for:
On a daily basis we have a need to clone a set of VM's to our Hot/Hot/DR site. (Each site acts as DR to the other for specific applications and some application are spanned/Load Balanced between the two.
The first file SC_DR_E.cfg established what work to do by setting the details for the other scripts to interprit.
The Second file SC_DR.ps1 determines if its an Odd or Even day (As we keep online 2 days working of clones in case anything failed we alway have backup at both locations.).
Third file SC_CloneVM_Task.ps1 does the actual work and if requested send a ASCII email with the output during the process.
If you have any questions post them to this forum and I am sure someone will answer your questions.
Enjoy!
This document was generated from the following thread: Live Cloning with Powershell - Across Clusters/Hosts not working (Help! Please!)