ホストがオフラインの場合に「接続済み」と誤って表示されてしまう
search cancel

ホストがオフラインの場合に「接続済み」と誤って表示されてしまう

book

Article ID: 427344

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

免責事項:これは英文の記事「Host status is incorrectly stuck as CONNECTED when the host is OFFLINE」の日本語訳です。記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

 

  • vCenter が電源 ON である仮想マシンが存在するホストを接続済みと表示する
  • vCenter を経由したホストタスクがタイムアウトしたりグレーアウトする
  • ホストの電源が OFF である場合であっても、vCenter はそのホストをオンラインであると表示する
  • ホストが別の問題により無応答となってから回復したが、vCenter からの操作を受け付けない状態が継続する

Environment

6.x
7.x

Cause

対象ホストが不正な情報を送信したことが vpxd.log に記録されます。

YYYY-MM-DDT00:00:00.000Z info vpxd[39496] [Originator@6876 sub=MoHost opID=SWI-########] Host [vim. HostSystem:host-###, <ESXI_HOSTNAME>]: host Config information is nullptr
YYYY-MM-DDT00:00:00.000Z error vpxd[39441] [Originator@6876 sub=licenseClient opID=LicenseClientProcessInventoryLoadedAsync-########] Bad host information for host-###
YYYY-MM-DDT00:00:00.000Z error vpxd[39441] [Originator@6876 sub=licenseClient opID=LicenseClientProcessInventoryLoadedAsync-########] UpdateAllHostsUsages Failed to get host usages,hostMoId: host-### error: N3Vim5Fault24IncorrectHostInformation9ExceptionE (Fault cause: vim. fault. IncorrectHostInformation
YYYY-MM-DDT00:00:00.000Z info vpxd[39406] [Originator@6876 sub=HostCnx opID=CheckforMissingHeartbeats-########] [VpxdHostCnx] No heartbeats received from host; cnx: ########-####-####-####-############, h: host-###, time since last heartbeat: ######ms

Resolution

1. ホストと vCenter の両方を再起動後、ホストを再接続出来ない事を確認

2. ホストがまだ接続済みと表示されているにもかかわらず操作を受け付けない場合は、以下のコマンドで vCenter データベースから強制的にホストの切断を実行

/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -c "UPDATE vpx_host SET enabled = 0 where id = <HOST_ID>;"

NOTE: <HOST_ID> can be identified by selecting the target host in the inventory via the vCenter UI and checkign the web browser URL, host ID will be presented as host-### within the URL, the ### parameter is all that is required for the command above.

3. vCenter サービスを再起動

service-control --stop --all
service-control --start --all

4. vCenter UI からホストが切断と表示されることを確認後に再接続し、root ユーザの認証を行い vpxuser サービスアカウントを ESXi 上に再作成する

5. ホストが操作を受け付けるようになることを確認