VCHA の構成を変更した後、ルックアップ サービスが起動に失敗する
search cancel

VCHA の構成を変更した後、ルックアップ サービスが起動に失敗する

book

Article ID: 425010

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

免責事項:これは英文の記事「lookup service fails to start after modifying VCHA」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。


  • vCenter High Availability (VCHA) がフェイルオーバーに失敗します。
  • VCHA は最近無効化/削除されました。
  • vpostgres サービスは起動していますが、lookupsvc は起動しません。
  • lookupsvc サービス ログには次のように出力されます。

ERROR: cannot execute CREATE TABLE in a read-only transaction
Cannot execute create table in a read-only transaction. Caused by: org.springframework.beans.factory.beancreationexception: Error creating bean with name 'ssoserveradapter' defined in servletcontext resource [WEB-INF/tomcat-ls.xml]: Cannot create inner bean'######'

  • postgres サービス ログには次のように出力されます。

UTC ########.### #   FATAL:  could not connect to the primary server: could not connect to server: No route to host
Is the server running on host "#.#.#.#" and accepting
TCP/IP connections on port 5432?
UTC ########.### # root root LOG:  could not send data to client: Broken pipe

  • 次のようなエラーが発生し、SSL 証明書の更新に失敗します。

    • operation failed: Unable to update  com.vmware.rbd extension thumbprint in VCDB

    • "An error occurred while invoking external command : 'Error while updating the certificate for VC extension com.vmware.vim.eam'"


       

Environment

vCenter Server 7.x / 8.x

Cause

  • VCHA のフェイルオーバー失敗の影響。
  • VCHA が適切に削除/無効化されませんでした。
  • VCHA のスプリットブレイン状態。

Resolution

  1. ファイルベースのバックアップを生成します。詳細は「vCenter Server 管理インターフェイスを使用した vCenter Server の手動によるバックアップ」を参照してください。

  2. root ユーザとして vCenter Server アプライアンスにログインします

  3. 次のコマンドを使用して、データベースを手動で昇格します。

    sudo -u vpostgres /opt/vmware/vpostgres/current/bin/pg_ctl promote -D /storage/db/vpostgres

  4. すべてのサービスを再起動します。

    1. service-control --stop --all

    2. service-control --start --all

  5. それでも問題が解決しない場合は、次のスタンバイ ファイルを移動します。

    1. cd /storage/db/vpostgres

    2. mv standby.conf /tmp

    3. mv standby.signal /tmp

  6. vCenter サービスを再起動します。

    1. service-control --stop --all

    2. service-control --start --all

Additional Information

  • vPostgres は、既に廃止されたアクティブロールを担っていたノードに対して、引き続き接続を試み続けます。
  • vPostgres がリカバリ/読み取り専用モードであるため、ルックアップ サービスは開始されません。