具有三个 ESXi 主机的 IDPA 型号 DP5x00 或 DP8x00 在从断电状况还原后显示无法从 vSphere UI 和 ESXi 命令行访问 vSAN 对象。重新启动三个 ESXi 主机也无帮助。
下面是一个示例:
- 显示来自任何 ESXi 主机的 vSAN 运行状况状态:
# esxcli vsan health cluster list Health Test Name Status -------------------------------------------------- ------------------------ Overall health red (vSAN Object health) Data red vSAN object health red
无法显示虚拟机对象。它无法从 vSphere Web UI 或命令行打开虚拟机,并显示以下类似的错误:
# vim-cmd vmsvc/getallvms Skipping invalid VM '41' Skipping invalid VM '43' Skipping invalid VM '44'
显示 vSAN 群集信息,发现其中一个群集节点的维护模式仍设置为“ON”:
# esxcli vsan cluster get Cluster Information Enabled: true Current Local Time: 2021-04-11T00:44:48Z Local Node UUID: 5afb4fd2-6e89-df35-0ab3-3cfdfe2caa40 Local Node Type: NORMAL Local Node State: MASTER Local Node Health State: HEALTHY Sub-Cluster Master UUID: 5afb4fd2-6e89-df35-0ab3-3cfdfe2caa40 Sub-Cluster Backup UUID: 5afb4f4f-589e-acf6-1c85-3cfdfe2c89e0 Sub-Cluster UUID: 52740a1b-3621-f158-7b09-439048860c07 Sub-Cluster Membership Entry Revision: 2 Sub-Cluster Member Count: 3 Sub-Cluster Member UUIDs: 5afb4fd2-6e89-df35-0ab3-3cfdfe2caa40, 5afb4f4f-589e-acf6-1c85-3cfdfe2c89e0, 5afb4ef8-b1b7-1f4a-f923-3cfdfe2c88a0 Sub-Cluster Membership UUID: 4c137260-c6b9-0aa9-e52b-3cfdfe2caa40 Unicast Mode Enabled: true Maintenance Mode State: ON Config Generation: 66541957-e1a1-478b-9a87-106bcf5cb77a 25 2021-03-18T20:31:02.389
在同一 ESXi 主机上,当运行 show system maintenanceMode status 时,它显示为“Disabled”。这与上述命令输出不一致。
# esxcli system maintenanceMode get Disabled
- 通过 SSH 登录到显示不一致维护模式状态的 ESXi 主机。手动将主机置于维护模式,然后将其移出维护模式:
# esxcli system maintenanceMode set --enable=true # esxcli system maintenanceMode set --enable=false
- 再次检查 vSAN 群集状态。预计会看到维护模式状态显示为“OFF”,并且虚拟机可以无错误地正常打开:
# esxcli vsan cluster get Cluster Information Enabled: true Current Local Time: 2021-04-11T00:44:48Z Local Node UUID: 5afb4fd2-6e89-df35-0ab3-3cfdfe2caa40 Local Node Type: NORMAL Local Node State: MASTER Local Node Health State: HEALTHY Sub-Cluster Master UUID: 5afb4fd2-6e89-df35-0ab3-3cfdfe2caa40 Sub-Cluster Backup UUID: 5afb4f4f-589e-acf6-1c85-3cfdfe2c89e0 Sub-Cluster UUID: 52740a1b-3621-f158-7b09-439048860c07 Sub-Cluster Membership Entry Revision: 2 Sub-Cluster Member Count: 3 Sub-Cluster Member UUIDs: 5afb4fd2-6e89-df35-0ab3-3cfdfe2caa40, 5afb4f4f-589e-acf6-1c85-3cfdfe2c89e0, 5afb4ef8-b1b7-1f4a-f923-3cfdfe2c88a0 Sub-Cluster Membership UUID: 4c137260-c6b9-0aa9-e52b-3cfdfe2caa40 Unicast Mode Enabled: true Maintenance Mode State: OFF