Link to home
Start Free TrialLog in
Avatar of admincbf
admincbf

asked on

Some help with Hyper-V Replication

Hi


We have a Hyper-V 2012 environment and I am just in the process of setting up Replication to our DR site.


I am using the GUI to do this which is going very well, now I would like to do our two SQL servers.  The logs and data are stored on different VHDs so I understand I need to use the "EnableWriteOrderPreservationAcrossDisks"


I have checked out the TechNet article on "Set-VMReplication" but I am very unfamiliar with PS and how I would form a script out of these commands to set up replication.


Can I set up replication via the GUI and then run "EnableWriteOrderPreservationAcrossDisks"?  Or is it not possible to use this cmdlet on it's own?


Many thanks
ASKER CERTIFIED SOLUTION
Avatar of Rob Stone
Rob Stone
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of admincbf
admincbf

ASKER

Many thanks for your reply.  I found the -WhatIf command very useful and came up with the following:

Set-VMReplication -VMName SQL1 -ReplicaServerName REP1 -ReplicaServerPort 80 -AuthenticationType Kerberos -CompressionEnabled $TRUE -EnableWriteOrderPreservationAcrossDisks $TRUE

Open in new window


Followed by:

Start-VMInitialReplication -VMName SQL1

Open in new window

Great stuff.

As I said, if you have the time spend some time learning the basics. A few sites which I found good when learning PS were:
http://www.powershellpro.com/powershell-tutorial-introduction/

And for some excellent scripts which you can modify to suit your own needs:
http://blogs.technet.com/b/heyscriptingguy/