ESXi主机异常关机导致虚拟机无法正常开机,相关提示如下

状况失败 - 对象类型需要托管的 I/O

错误

  • 对象类型需要托管的 I/O
  • 无法打开磁盘“/vmfs/volumes/5f4cf2d2-4cbaa340-3551-00e0b41c35f3/openwrt-bypass-0224/openwrt-x86-64-generic-ext4-combined.vmdk”或其所依赖的快照磁盘之一。
  • 模块“Disk”打开电源失败。
  • 无法启动虚拟机。

修复方法

· ssh到虚拟机所在的ESXI主机

· 检查目标虚拟机对应的vmdk文件

vmkfstools -x check /path/to/your/machine.vmdk

如果提示 Disk needs repair. 运行修复命令(修改成自己的路径及文件名):

vmkfstools -x repair /path/to/your/machine.vmdk

操作示例

[root@localhost:~] cd /vmfs/volumes/USB_Datastore/openwrt-bypass-0224/
[root@localhost:/vmfs/volumes/5f4cf2d2-4cbaa340-3551-00e0b41c35f3/openwrt-bypass-0224] pwd
/vmfs/volumes/USB_Datastore/openwrt-bypass-0224
[root@localhost:/vmfs/volumes/5f4cf2d2-4cbaa340-3551-00e0b41c35f3/openwrt-bypass-0224] ls
openwrt-bypass-0224.nvram                                                openwrt-x86-64-generic-ext4-combined.vmdk                                vmware-3.log
openwrt-bypass-0224.vmsd                                                 vmware-1.log                                                             vmware.log
openwrt-bypass-0224.vmx                                                  vmware-2.log                                                             vmx-openwrt-bypass-0224-8098e991f44189b088e53f4686e856bb8dccd294-1.vswp
[root@localhost:/vmfs/volumes/5f4cf2d2-4cbaa340-3551-00e0b41c35f3/openwrt-bypass-0224] vmkfstools -x check openwrt-x86-64-generic-ext4-combined.vmdk
Disk needs repair.
[root@localhost:/vmfs/volumes/5f4cf2d2-4cbaa340-3551-00e0b41c35f3/openwrt-bypass-0224] vmkfstools -x repair openwrt-x86-64-generic-ext4-combined.vmdk
Disk was successfully repaired.
[root@localhost:/vmfs/volumes/5f4cf2d2-4cbaa340-3551-00e0b41c35f3/openwrt-bypass-0224]
最后修改:2021 年 03 月 13 日 10 : 30 PM
如果觉得我的文章对你有用,请随意赞赏