Skip to main content
Pure Technical Services

Troubleshooting ActiveDR Reprotect Errors in Site Recovery Manager

Currently viewing public documentation. Please login to access the full scope of documentation.

 

A Site Recovery Manager Reprotect operation with ActiveDR ensures that the replication is synchronized between the source and target pods, and also resets the state of the volumes in it (via volume tags) so the environment is ready for a recovery operation in the future.

There are a few situations that can cause this operation to fail. This KB overviews them--Pure Storage is reviewing these situations and investigating options to allow the SRA to handle them automatically. This KB will be updated if and when improvements are made.

Extra Volume in Pod

 Failed to reverse replication for failed over devices. Cannot process consistency group 'peer-of-e184134e-5a94-9f76-5c53-ae33e6df93d5' with role 'target' when expected consistency group with role 'promotedTarget'.

SRA command 'discoverDevices' failed. More than one type of devices found in the pod. Please verify that all the volumes are either untagged or tagged with same value in the "puresra" namespace.

As of the 4.0 release of the SRA it is not supported to have a volume that is not in use as a VMFS or a RDM in vCenter environment controlled by the SRM pair. Having volumes that are not in use, or are in use in a different vCenter environment, or in use in a non-VMware environment cannot be in the same pod as volumes controlled by SRM.

It is also not supported to provision a new datastore or RDM into the an ActiveDR pod between a recovery and a reprotect.

While violating these requirements will not prevent failover, they will prevent a successful test recovery cleanup, and the reprotect operation. A reprotect will fail with the above error message.

clipboard_e6ec27dbd258ba99da216c1158f961d9c.png

Or you will see this error in a device discovery:

clipboard_e7e402dbc9077cfb567a775d27ae1006a.png

In this case, there is an extra volume in the pod:

clipboard_e17fa4b79ef5cf1296f32801408b554c2.png

That was provisioned after the recovery was completed--this is evidenced by the fact that it does not have the puresra-failover tag on it:

clipboard_e4a44c84b37fd59cc7ecafb38e569cdaa.png

Note that for this failure running a forced reprotect will not work--this process will only work for certain VMware-side failures, not SRA failures on device state changes.

clipboard_ef4b4ce7c652a433beae4b09265f5f89d.png

But there are options, but it depends on what the issue is.

A non-VMware volume

If the volume(s) in question are not related to the VMware environment, you must move them out. As of Purity 6.0.0 you cannot move a volume out of a linked ActiveDR pod. So to move it out you have a few options:

  1. Copy it to a new volume outside of the pod. Delete the original and then connect the copied volume to the host using it--this will be disruptive.
  2. Disable replication of the ActiveDR pod, move the volume out, then re-enable replication.
  3. Create a new volume outside of the pod and use host-based tools to move the data to it and then destroy the original
  4. Destroy the volume--this is assuming of course the volume has no importance

Once one of these are complete you can then re-attempt reprotection.

A VMware volume

If the volume is a valid VMFS datastore or RDM and it is intended to be in the pod and the removal of it would be difficult or inconvenient it is possible to resolve this without following the steps for a non-VMware volume.

Let's say the 4th volume listed here is a VMFS that was created after recovery and before reprotect:

clipboard_e8683f07ace9e77828434af370b6678dd.png

This causes the reprotect to fail. An option to allow the SRA to bypass this is to manually tag the volume. SSH into the FlashArray hosting the promoted pod.

Review the puresra-failover tags on the current promoted pod (replace <pod name> with the pod name):

purevol list <pod name>* --tag --namespace puresra --filter 'key="puresra-failover"'

clipboard_e49f791926504b2c16985b6f90b0b6e8b.png

Copy the value which will be a long UUID like 49e593f1-7498-2cd1-86dc-d1ca09f101ff.

Run:

 purevol tag <pod name::volume name> --key puresra-failover --value <UUID> --namespace puresra --non-copyable

Replacing the <pod name::volume name> with the pod name and the name of the volume with the missing tag and then replace <UUID> with the value you copied above.

clipboard_e475b8418ac849639e1f2daa0d7c84a40.png

Now all of the volumes in the pod are tagged with puresra-failover:

clipboard_e6fe7bbd395c3c14cb60ed95179f98a8d.png

Secondly, depending on when they are created, they are also likely missing the puresra-demoted tag. If the volume was present before the recovery it will have it, if it was created sometime after the recovery it will not.

To check, go to the array where the ActiveDR for this pair is promoted and run:

purevol list <pod name>* --tag --namespace puresra --filter 'key="puresra-demoted"'

clipboard_e7837267229a571768c4fc418735fb8f0.png

If that volume does not have the demoted tag add it as well. Note that the UUID is DIFFERENT than the previous UUID. The value of the puresra-failover tag is the UUID of promoted pod. The value for the puresra-demoted tag is the UUID of the demoted pod.

Copy the value which will be a long UUID like e184134e-5a94-9f76-5c53-ae33e6df93d5.

Run:

 purevol tag <pod name::volume name> --key puresra-demoted --value <UUID> --namespace puresra --non-copyable

Replacing the <pod name::volume name> with the pod name and the name of the volume with the missing tag and then replace <UUID> with the value you copied above.

clipboard_eb16849db0ce9f8f21c1ea78cd4d7f7d0.png

Now all of the volumes in the pod are tagged with puresra-demoted as well.

First re-run a Device Discovery for that pod pair:

clipboard_eb1fa4b35dcac7942fb0a28553c4ddfd9.png

If you see this error another volume is missing a tag or you did not tag it correctly.

clipboard_e9b9500135773756b55de7acd75f77b8f.png

Verify your tags are uniform and repeat the discovery until there are no errors on that pod pair:

clipboard_e6243d18dd145edc4cc12d65cfe8599d3.png

Now re-run the reprotect:

clipboard_eb746b75bafc9544b5ff221b1e504deca.png

The process will run:

clipboard_e6c8e4ac5f5115f36b55fbb59bcb7fc23.png

And complete. Note that after the reprotect you will need to edit the protection group and ensure the datastore was added and protected.

While this process will also work for non-VMware volumes to--this is just delaying the process to fix it. It is best to take care of it now if the volume is a non-VMware volume.

Target Pod is Demoted

Expected consistency group 'e184134e-5a94-9f76-5c53-ae33e6df93d5' not found in SRA's 'queryReplicationSettings' response.

During a reprotect, the SRA ensures that the environment is ready for recovery. The SRA only removes tags from the source pod--as that removal will propagate the tag removal to the volumes in the target pod. If the target pod happens to be promoted though the tags will not go away until the target pod is demoted and this will cause the target to be in an unexpected state in what is referred to as a promotedTarget by SRM. At the end of a reprotected it should be a demotedTarget. The SRA returns that status because not only is the pod promoted, but it also has the tags indicating the demotion:

clipboard_e8b5a511e2cda86e9842bfad31dc3c622.png

This will cause an error during the last step of the reprotection (synchronize storage) with the following error:

clipboard_e051ec8722214d78bf39a9f50b7cd41f2.png

The reprotection will still succeed but with this warning. You will also see an error in the device discovery:

clipboard_e8ca6550b4d7f3b55fa667a51dad1aee0.png

Once you demote the target pod...

clipboard_e0c938ea75979ba2890929a97825a66c4.png

Run a device discovery...

clipboard_e62571a83d82ee269ca868950591672e0.png

The warning will go away:

clipboard_e69a79163c46cf5fd348efc296a2407b5.png

Replication Link is Paused

There is a current known issue with the 4.0 release of the SRA with ActiveDR when the replication link is paused between the source and target pod.

clipboard_e9473b1fdfebfd85e903138bdceae5c07.png

The Synchronize Storage step will appear to hang at 100%:

clipboard_e388ea946387facbe3614340dd76238b6.png

Go to the either FlashArray in the ActiveDR pod pair, and navigate to the pod and in the Pod Replica Links box click the vertical ellipsis and choose Resume:

clipboard_e67e7d6f1a70391bc87e7710c2f47e679.png

Confirm the resume operation:

clipboard_edda048b6bb32a80076f7701a3477a3c1.png

The reprotect will then complete once synchronized.