Solved

Some help with Hyper-V Replication

Posted on 2013-11-08
3
882 Views
Last Modified: 2014-11-12
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
0
Comment
Question by:admincbf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
Rob Stone earned 500 total points
ID: 39642965
PowerShell is a great tool when you start using it.  If you have the time I would invest in learning the basics as as you've already noticed, some features just aren't in the GUI.

You can create a PowerShell script in the PowerShell ISE and it will help you construct the script with side bar and auto populations.

It is probably possible to create the Replication in the GUI and edit it afterwards, however, you would want to test this first on some test kit.

You would use Get-VMReplication to identify the replication you want to edit.

I'm afraid I don't have the hardware to test this out at present.

Remember, you can always put the -whatif command at the end of a PowerShell line to test the syntax without running the script.
0
 
LVL 1

Author Comment

by:admincbf
ID: 39644146
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

0
 
LVL 15

Expert Comment

by:Rob Stone
ID: 39647251
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/
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 2012 R2 - Backing Up Server 3 60
NTP problem 24 74
Server 2012 r2 licensing CALs 3 82
Exchange 2013 windows CU or windows update first 3 14
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question