VMware Cloud Community
DeanPung
Contributor
Contributor
Jump to solution

Change virtual machines managed by SRM to VR in a DR event

Hi,

I have a virtual machine that is being replicated using vSphere Replication + I've configured a SRM recovery plan so the virtual machine is Managed By SRM.

Screen Shot 2015-03-20 at 9.04.47 am.png

In a DR situation:

  • To recover a vm that's managed by VR all I need to do is connect to vCenter at your DR site via the vSphere web client and click Recover.
  • To recover a vm that's managed by SRM all you need is to get to a vSphere Full client at your DR site that has the SRM plugin installed before you can recover.

My question:

Just say in a DR event that SRM at the DR site was busted (so I couldn't recover VMs managed by SRM) but I can connect to the vSphere Web client and recover vm's managed by VR, is there a way to manually change the virtual machines managed by SRM so they're managed by VR again???

Cheers

Reply
0 Kudos
1 Solution

Accepted Solutions
mvalkanov
VMware Employee
VMware Employee
Jump to solution

Hi,

There is internal interface that allows you to do this. Please contact VMware support team for assistance.

Go get the current "recovered by" value:

https://vrms_address:8043/mob/?moid=recovery-manager&method=HmsRecoveryManagerGetGroupsRecoverySolut...

To reset the "recovered by" value to VR:

https://vrms_address:8043/mob/?moid=recovery-manager&method=HmsRecoveryManagerSetGroupsRecoverySolut...

Invoke the method after replacing MOID with the GID-... value of the replication and clear the value (empty string) for recoveredBy property.

To retrieve the GID-... value - either look at the names of the replica files at the target datastores, or check GroupEntity table in VRMS DB. To get SQL prompt to the embedded VRMS DB - use

/opt/vmware/vpostgres/current/bin/psql -U vrmsdb

and

\q to quit

Please note that all of the above is officially unsupported and might change with different VR releases.

Regards,

Martin

View solution in original post

Reply
0 Kudos
2 Replies
mvalkanov
VMware Employee
VMware Employee
Jump to solution

Hi,

There is internal interface that allows you to do this. Please contact VMware support team for assistance.

Go get the current "recovered by" value:

https://vrms_address:8043/mob/?moid=recovery-manager&method=HmsRecoveryManagerGetGroupsRecoverySolut...

To reset the "recovered by" value to VR:

https://vrms_address:8043/mob/?moid=recovery-manager&method=HmsRecoveryManagerSetGroupsRecoverySolut...

Invoke the method after replacing MOID with the GID-... value of the replication and clear the value (empty string) for recoveredBy property.

To retrieve the GID-... value - either look at the names of the replica files at the target datastores, or check GroupEntity table in VRMS DB. To get SQL prompt to the embedded VRMS DB - use

/opt/vmware/vpostgres/current/bin/psql -U vrmsdb

and

\q to quit

Please note that all of the above is officially unsupported and might change with different VR releases.

Regards,

Martin

Reply
0 Kudos
DeanPung
Contributor
Contributor
Jump to solution

Hi,

Awesome. That is exactly what I'm looking for. Thank you.

Cheers

Dean

Reply
0 Kudos