My previous article explained the procedure to perform a failover from VBR console explaining why it is safe (Click here to read it)
In this second article, I’ll show you what can happen if you try a failover in a different way, answering the behavior that a partner had during a cleanup procedure.
In my lab, I created a new Replica Job where the original VM is still Ubuntu-02 (Picture 1) and the replica VM has the suffix _Rep_vc01-1-1 (Picture 2).
After the VM has been created (Picture 3) It is switched it on directly from the vCENTER console (Picture 4). To be sure it works as expected, it is possible to connect remotely.
Going back to VBR console it’s possible to see that nothing has changed (Picture 6) just because the power-on action has been performed directly from the VMware console
Attention point: If you try to perform a replica task it fails because the VM is running (picture 7)
Now the main point of the two articles:
It’s a bad choice deleting VMs from VBR “Ready Replica VM” menu (picture 8/9) without knowing if the VMs have been started from vCENTER console. Why? Because also the production VM gets deleted as shown in picture 10.
Let’s get a little wild with some supposing:
1. If you see the “active” status icon switched on ( from VBR console) it means the failover is started (picture 11)
2. If a permanent failover was performed, the VM disappears from “Replica Ready” menu and replica job results to be empty (Picture 12)
3. If the replica job works fine it means that no permanent failover has been performed
4. If the replica Job works fine but when clicking on the delete button (from “Replica ready menu” of VBR console) (picture 13) the production VM disappears, it means that a new replica job has been re-created after the manual failover has been launched (picture 14).
Knowing that deleting a VM replicated from VBR console needs a little attention, especially if you do not have the continuous and complete control of the VMware architecture, the question is: is it possible to think an easy checking-up before deleting VM?
The answer is Yes and Veeam One can easily help just creating them.
a. From vCENTER: setting up a report that checks if the VM to be deleted is running (power state status) (Table 1)
b. From VBR: if a Replication job is setted-up for that VM (Table 2)
Has Restore Point
Is Backed Up by Multiple Jobs
Ubuntu Linux (64-bit)
Is there another way to check it up?
Yes. using Powershell scripts.
The example you can find here below is just the first idea that can be polished with a little bit of your effort.
NB1:I’m not a PowerShell expert, I just love writing scripts easy to read from anyone.
NB2: Before trying it please ask your PowerShell expert a consultant!
NB3: It is meant to be launched from VBR.
NB4: If you think that it can be a feature request write to me!
Last month, a partner had to face-up a strange VBR behavior.
From VBR console he deleted a VM’s replica (Picture 1), and suddenly the production VM has been also erased (don’t worry, before doing any activity he tested the backups using sure backup technology).
The reason why it happened become clear to me once I read the logs.
To do it shortly, some weeks before someone started a Failover directly from vCENTER console without doing any communication to the internal IT team.
This article wants to explain how to avoid this common mistake.
The first step is understanding some basic concepts:
a) VMware identify any single VM with a number named MorefID and a UUID.
b) Any single operating system has an identifier named Instance UUID (Universal Unique IDentifier); in my lab, I set-up more than one replica job for a single VM
Table 1. row 2. shows the name of production VM (Ubuntu-02), its morefID (vm2270), where it is running (Milan), the UUID (…bcc12) and its VM UUID … f58b.
Table 1. row 3-4 shows the name of VMs replicas, morefID, instance UUID and its UUID.
All tables shown in these articles have been created using Veeam One
Picture 2 shows the VM source (highlighted in yellow) from vCENTER console.
After checking-up that VM source is switched off, it’s possible to start a Failover (Picture 3).
Next five pictures show the step by step wizard to complete the procedure correctly. As you can see from picture 4 the VM that has been replicated with two different jobs (Picture 5) is always Ubuntu-02.
Pictures 6-8 show the result of the failover.
What happens when you complete the task with the Permanent failover? (Picture 9/10/11)
First of all, comparing picture 3 with 12 it is possible to see that one of the Replica Ready VM, and precisely the VM in permanent failover, has been deleted
Picture 13 shows that now the replica job contains 0 objects. The right behavior is confirmed by pictures 14,15,16 and 17 where it is shown that the replica is not available anymore.
The cloning job option didn’t change the correct behavior (Pictures 18 and 19)
Let’s sum up. Following the right procedure, the Failover works as aspected
Now …. why the VM has been deleted? The next article will explain it in detail.