Показаны сообщения с ярлыком SRM. Показать все сообщения
Показаны сообщения с ярлыком SRM. Показать все сообщения

среда, 26 сентября 2012 г.

Операция Reprotec в SRM с использованием VR репликации

Настроив SRM с помощью vSphere Replication (VR), и не прочитав SRM Admin Guide :) , я обнаружил что VR работает только в одну сторону и возврат назад в Protected ЦОД не предусмотрен. При попытке запустить Reprotect получаем сообщение “Reprotect is not supported for VR protection groups. You must edit the plan to remove all VR protection groups before running reprotect.”

Придется использовать предложенное решение:


  • Делаем для нашей VM Remove from Inventory на Protected Site (можно и с диска удалить, но тогда придется ждать пока VMDK файл скопируется, что займет некоторое время)
  • Удаляем Protection Group или удаляем защищаемую VM из нее
  • Удаляем Recovery Plan
  • Настраиваем репликацию с Recovery site в Protected site.
  • Создаем новую Protection Group и добавляем в нее VM, находящуюся сейчас в Recovery Site
  • Создаем новый Recovery Plan
  • Запускаем Recovery и ждем пока задача выполнится.
И повторяем еще раз уже для создания нашего Recovery Plan'а, который надеюсь никогда не понадобится :)


Vmware SRM: ошибка при настройке репликации VR

В связи с появлением еще одного продукта в сфере деятельности в блоге появляется еще один tag - SRM.

Если при настройке репликации VM появляется ошибка VR server localhost.localdom has no hosts through which to access destination datastore, то должны помочь следующие действия:

  • Connect to the VRMS database at the Recovery Site using SQL Management Studio.
  • Right-click the VRMS database and click New Query.
  • Run this query to determine if any hosts are marked as Unsupported:

    To query hosts that are not associated with a VR server:

    select * from HostEntity h where state=4 and not exists (select * from HbrHostEntity where h.vcMoId=HbrHostEntity.vcHost_vcMoId)
    To query hosts that are associated with a VR server:

    select * from HostEntity h where state=4 and exists (select * from HbrHostEntity where h.vcMoId=HbrHostEntity.vcHost_vcMoId)
    This query returns a host ID. You can use the vCenter MOB to identify the host using the host ID.
  • Run this query to perform a cleanup:

    To clean up Unsupported records for hosts that are not associated with a VR server:

    delete from HostEntity where state=4 and not exists (select * from HbrHostEntity where vcMoId=HbrHostEntity.vcHost_vcMoId)
    To change the state of hosts that are tagged as Unsupported and associated with a VR server to ACTIVE:

    update HostEntity set state=1 where state=4 and exists (select * from HbrHostEntity where vcMoId=HbrHostEntity.vcHost_vcMoId)
  • Restart the VRMS server at the Recovery site.
  • Re-enable HBR for the virtual machine.
  •