群晖备份Esxi报错踩坑

群晖备份Esxi报错踩坑

一篇经验文,没有什么内容,只是因为相关的文献比较少。问题又比较诡异,所以这里记录一下。

因为 家里的homelab 上面接近十个VM 撑起了整个家庭的应用。备份是一定要做好的。所以使用群晖来进行 esxi 的直接备份。

备份的时候出现了奇怪的问问题如下

  • A general system error occurred: Fault cause: vim.fault.GenericVmConfigFault
  • An error occurred while saving the snapshot: Object type requires hosted I/O.

这里简单地记录下是怎么解决的

正文

vim.fault.GenericVmConfigFault

这个是快照的兼容性问题,执行 Consolidate VMDisks,再关机之后删除全部的快照。之后再次执行 Consolidate VMDisks 。来进行更改合并。

这样就没有无法删除的快照了。就可以进行后面的备份操作。

Object type requires hosted I/O.

这个问题主要可能是 VMDK 的兼容性问题导致,因为安装的 Homeassistant 是使用的 openvm 的格式,使用的时候直接挂载了,没有进行格式转换.

使用下面的命令进行直接格式转换之后进行挂载即可。

vmkfstools -i synoboot.vmdk synoboot-esxi.vmdk

synoboot.vmdk is not a ESXi format. You can not create snapshots for synoboot.vmdk before you convert it to ESXi format.
Apparently synoboot.vmdk was copied from Workstation or Fusion by somebody who was not aware of the different vmdk formats.
If you open synoboot.vmdk you will see that the createType is not VMFS but monolithicSparse.
Also note:
DiskLib_Check() failed for source disk ‘synoboot-s001.vmdk’: The file specified is not a virtual disk (15).*
So to sum it up – we are seeing expected behaviour here !
Power off the VM and run
vmkfstools -i synoboot.vmdk synoboot-esxi.vmdk
and then replace the WS-type vmdk with the newly created one.
After that is done you should be able to create a snapshot as expected.
Ulli*

参考:https://communities.vmware.com/t5/VMware-vSphere-Discussions/Error-when-create-a-VM-snapshot-Object-type-requires-hosted-I-O/td-p/498546

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注