Knowledge Base  /  Disaster Recovery  /  SafeHaven 5 CLC to CLC
Knowledge Base  /  Disaster Recovery  /  SafeHaven 5 CLC to CLC

Create Windows Protection Group, Install LRA and Start Replication

Updated by Weiran Wang on Jul 25, 2018
Article Code: kb/1117

Article Overview

This article explains how to create Windows Protection Group and protect a Windows server Automatically as well as Manually.

Requirements

  1. To protect a Windows server using SafeHaven, we need to install a Local Replication Agent (LRA) on the production server. In order to complete the LRA installation, a Reboot of the production server is required. Please schedule a downtime window for LRA installation.

  2. For Ansible LRA installation to work, make sure TCP 445 port Inbound is open on the production server by running the following command via Windows PowerShell (run as administrator):

New-NetFirewallRule -DisplayName "psexec tcp 445" -Name "psexec tcp 445" -Profile Any -LocalPort 445 -Protocol TCP

Assumption

This article assumes that:

  1. A SafeHaven cluster has been created successfully
  2. Both production and recovery SRNs have been registered and peered
  3. Proper storage has been attached and claimed on both SRNs
  4. You have opened the SafeHaven console and connected to your CMS

Create a Windows Protection Group

  1. In the SafeHaven Console, right-click on the Production SRN and select Create Protection Group.

NOTE: Always start the Protection Group creation from the Production SRN.

  1. Select the Recovery SRN, and click Start Wizard.

  2. Select the servers from the production datacenter that you want to include in the Protection Group. Remember that it is perfectly acceptable to select just one server for inclusion in the Protection Group. Click Next.
    NOTE: VSS Checkpoints are not available if you select multiple Windows to create a single Protection Group.

  3. Select Automatically Deploy and Configure New recovery Proxy Servers. or Select Use pre-deployed proxy recovery server , if the recovery server has already been deployed

  4. If Automatic deployment of the new recovery proxy instance is selected:

    a. Select a Parent Hardware Group.
    b. Enter a Stub Group Name if required.
    c. Select Linux as the OS base for all the Stub machines
    d. Enter an Alias(maximum 6 characters) for the Recovery Server.
    e. Select a Proxy Template
    Note : Make sure that the Template you select has the same NIC and PCI slot number as the production/source VM.
    f. Select the Installed OS on Production Server.
    g. In front of "Connect all the server to", select the DR vlan. The Recovery instance will be deployed in this particular vlan.
    h. Enter the administrator(or root) password that you want to be set on the Recovery server.
    Click Next.

    OR

    If pre-deployed proxy recovery server is selected:

    a. Select the Recovery server instance from the Recovery Datacenter.
    Click Next.
    b. Under Mapping, click on select and select the right recovery instance after clicking on down arrow.
    Click Next.

  5. Enter a Protection Group Name.
    Click on the VM name. Click Add Disk on the right to the VM.
    Expand the VM to see the disks attached to it.
    Select a disk and click on Resize Disk to change the size of the disk.
    Make sure that the disk layout of the VM matches the production VM.
    Click Next.

  6. SafeHaven supports two types of protection types. Select a Protection type:
    Local Replica : 125% of total production VM's storage on the local SRN and 125% on the DR SRN.
    Local Cache : 10% of total production VM's storage on the local SRN and 125% on the DR SRN.
    Please click here for more information on difference between local cache and local replica

  7. If you selected Local Replica:
    Under Production Data Center, Select a primary storage pool and checkpoint storage pool. It is completly fine to use the same pool for both primary storage and checkpoint storage.
    Under Recovery Data Center, select Primary storage pool and checkpoints storage pool.

    If you selected Local Cache.
    Under Production Data Center, Select a local cache storage pool
    Under Recovery Data Center, select Primary storage pool and checkpoints storage pool. It is completly fine to use the same pool for both primary storage and checkpoint storage.
    Click Next

  8. Check Automatically Install Windows LRA if you want the SafeHaven Agent to be automatically installed on the production/source VM.

    Note: Automatic Installation requires a reboot of the production server. It is advised to use this option only during maintenance window.

    Leave the box unchecked if automatic installation is not required.
    Click Finish.
    Note: This will Create a Protection group, Deploy a recovery instance and then configure it to boot using iSCSI target from the DR-SRN disk when ever Test-Failover/Failover is performed.
    Note: It may take some time for the PG to be deployed.

  9. If the Windows LRA agent has not been installed. Please make sure to install it on the production VM during a maintenance windows.
    Link to donwload agent: https://download.safehaven.ctl.io/SH-5.1.1/safehaven_windows_driver-5.1.1.exe
    Note: Agent Installation triggers a reboot of the production VM.

  10. If pre-deployed proxy recovery server was selected while creating the PG, and the server has not been configured for iscsi boot, then:
    a. Right click the Protection group that was just created.
    b. Go to Intallation > Install SafeHaven makestub.
    c. Verify the Protectiongroup name , and click Next.
    d. Enter the root password of the VM.
    e. Check all the boxes.
    f. Click Next.
    This will configure the recovery server to boot using iSCSI off the disks of the DR-SRN when a test-failover/failover operation is initiated.

Manually Start Replication

Note: This step is only required if Windows LRA Agent was not installed automatially during the creation of the Protection group

  1. Log into the Windows production VM.

  2. Verify that the SafeHaven Agent has already been installed. If not then please install the SafeHaven Agent. Requires reboot
    Download link for the Agent:https://download.safehaven.ctl.io/SH-5.1.1/safehaven_windows_driver-5.1.1.exe

  3. After reboot, click on Start, find and launch the SafeHaven Manager.exe.

  4. Select the default options on the first screen of the wizard (all boxes checked) and click Next.

  5. Verify the NIC type and PCI slot number. Click Next

  6. Enter the Local iSCSI IP address of Production SRN in front of Target Portal IP Address and click Discover. Select the appropriate ISCSI target to connect from the ISCSI target list.

    Click Connect, then select Next.

  7. A new window appears which provides the mapping from source(VMDK on production server) to destination disk(ISCSI on the SRN) along with the recommended Sync Rate, accept the default option and click Next.
    NOTE: Please make sure each production virtual disk you want to protect is mapped to a corresponding iSCSI target destination disk. The size of the source and destination disk must match.

  8. Enter the IP configuration of the recovery server. Do not use DHCP. Click Next.

  9. Click Finish to end the wizard.

The initial replication of the production windows VM will start now. Close the command prompt window if required.