Veeam: Configuring Virtual Machine Replication

In this tutorial, we will see how to set up and use replication in Veeam Backup & Replication.

Before you begin, the source 1 and destination 2 servers must be added to the Veeam console.

Hôtes physiques enregistrés dans Veeam

The article presents a Microsoft Hyper-V environment, setting up replication with VMware is almost identical.

Configuring the replication job


From the Veeam console, click on Replication Job 1 / Microsoft Hyper-V 2.

Veeam réplication, ajout job

Enter the job name 1 and click Next 2.

veeam replication : nom du job

At this point in the configuration, you can select the Separate virtual networks option to configure the virtual switch if it is different on the destination Hyper-V. You can also select the Different IP addressing scheme option to configure a different IP address on the replica machine.

Click Add 1 to add the virtual machines to be replicated and then click Next 2.

Ajout des VM

Select the destination host 1, specify the storage location for the replicas 2 and click Next 3.

Configuration de la destination

Validate the suffix 1 given to the replica and the number of restore points 2 and click on Next 3.

Configuration des réplicas

Click Next 1.

Wan accelerator

In the context of a PRA on a remote site, it is advisable to use Wan accelerators.

Click Next 1.

In the case of database replication, application-aware processing must be enabled.

Configure the job schedule 1 then click Next 2.

Planification

Check the Run the job when i click Finish box 1 to start the replication immediately and then click Finish to close the wizard 2.

Configuration terminée


Replication job 1 is now available in the Veeam console.

Job ajouté

Open the Hyper-V console on the source server and verify the presence of replica 1.

Réplica dans la console Hyper-V

Now that we have seen how to add a replication job to Veeam, we will see how to manage failover from the console.

Replica Management

Failover

From the Veeam B&R console, go to Replicas 1 / Ready 2, which displays the list of replicas ready 3 for failover.

Veeam accès au réplica

Before triggering the replica, the source VM must be powered off.

Right-click on replica 1 and click Failover Now … 2 to launch the wizard.

Failover

The Planned Failover option is to be used in the event of a planned trigger; upon triggering, a final synchronization is performed.

Select the virtual machines and their restore points 1 and click Next 2.

Assistant failvover

Click Next 1.

Assistant failvover

Click Finish 1 to start the replica startup process.

Assistant failvover

Wait while it starts…

Démarrage réplica

Click Close 1 to close the action window when the replica(s) have started.

Démarrage réplica

In the Veeam console, we see that the replica goes Active 1 and in Failover status 2.

Réplica démarré

Also check the startup of VM 1 from the Hyper-V console.

Statut réplica

Now that the switch is done, 3 options are “available”:

  1. Moving Replica Infrastructure to Production: Permanent Failover
  2. Undo Failover
  3. Back to production: Failback to production…

Return to production – Failback to production

This option is very interesting, because it allows the replica with the modifications to be transferred to the production infrastructure once it is available again.

During restoration to production infrastructure, the replica is powered off.

From the Veeam B&R console, go to an active replica 1, right-click on it and click Failback to production 2.

Retour en production

Select replicas 1 and click Next 2.

Assistant retour en production

Choose a restore mode 1 and click Next 2.

Assistant retour en production

Click Finish 1 to trigger the return to production.

Assistant retour en production

Wait during the return to production process, once completed (Success), click Close.

In the console, the replica is still active 1 but starting on the source infrastructure 2.

Réplica toujours actif

Right-click on the VM 1 and click on Commit Failback 2 to validate the return to production.

Valider le retour en production

Confirm the action by clicking Yes 1.

Confirmer

Wait while the operation is taking place…

Patienter pendant le retour en production

Once completed (Success), exit the window by clicking on Close 1.

Fermer le fenetre

Once the operation is complete, check that the replication job to the PRA infrastructure is reactivated.




Leave a Comment