vSphere Replication で VM を追加、または再保護する際のホストキー重複エラー
search cancel

vSphere Replication で VM を追加、または再保護する際のホストキー重複エラー

book

Article ID: 447611

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

症状:

  • 拡張レプリケーションとして仮想マシンを構成できません。
    Error: "Unable to retrieve enhanced replication mappings data"
    "A Runtime error occurred in the vSphere Replication Management Server. Exception deails: 'Duplicate key host-#### (attempted merging values 30004.0 and 30004.0)'.
  • リカバリした VM を再保護できません。再保護の操作が次のエラーで失敗します:
    "Unable to reverse replication for the virtual machine 'vm_name'. A runtime error occurred in the vSphere Replication Management Server. Exception details: 'Duplicate key host-## (attempted merging values com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-44fd0565-ace4-448b-b0b8-######### and com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-e563cd03-fe0a-40d8-807e-#########)'. The operation is not allowed in the current state."
  • [レプリケーション サーバ(Replication Servers)] に重複したホスト エントリが表示されます:
  • /opt/vmware/hms/logs/hms.log より、同一の ESXi ホストに対して複数のレプリケーション サーバ (Replication Server) エントリが存在し、レプリケーション処理中に重複キー (duplicate key) の状態が発生しているため、ワークフローが失敗していることが確認できます。
    ####-##-## ##:##:##.### ERROR response.filter.I18nActivationResponseFilter [tcweb-2] (..hms.fault.ExceptionToFaultConverter) {operationID=40b41651-d19d-49d7-9652-0bc9aca88478-reprotect:mx:gn:m4-HMS-1393195} [] | Fault conversion needed. Method 'getReverseReplicationInfo' cannot throw
    com.vmware.vim.binding.vim.fault.InvalidState: Duplicate key host-## (attempted merging values com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-44fd0565-ace4-448b-b0b8-######## and com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-e563cd03-fe0a-40d8-807e-########)

Environment

  • VMware vSphere Replication 9.x
  • VMware Live Recovery 9.x

Cause

  • この問題は、vSphere Replication Management Server (VRMS)データベース内に重複したホスト エントリが存在することによって発生します。
  • VRMS データベースに、同一の ESXi ホスト(host-##)に対して複数のレコードが含まれています。再保護の実行時、vSphere Replication はホストに関連付けられているレプリケーション サーバの特定を試みますが、一致するエントリが複数見つかるため、重複キー例外(duplicate key exception)が発生します。
    • この状況は、通常以下の場合に発生します:
      • レプリケーションがアクティブな状態のまま、ESXi ホストが削除または切断された。
      • 古くなったレプリケーション サーバのレコードが正しくクリーンアップされなかった。
      • アップグレード、再構成、またはレプリケーション サーバの変更後に、データベースの不整合が残っている。
    • その結果、レプリケーションの反転(リバース レプリケーション)を設定できなくなり、再保護操作が失敗します。

Resolution

本記事に記載されている症状およびログ エントリがお客様の環境と一致し、原因が確認された場合は、Broadcom サポートに支援を要請してください。解決には、環境の検証と適切な是正処置の適用が必要となります。

Additional Information

Error: Duplicate key host when adding VMs or reprotecting in vSphere Replication