Adding a new or existing disks to running virtual machine fails with either of,
The error occurs after several reconfigurations of host add and remove of disks.
This failure is seen when Host Management Agent encounters an error during to add/update virtual machine file access policies for the newly added disks. In cases where virtual machine disk layout is incomplete, new effective policies are not generated resulting in the policy update failure.
Events similar to the following can be seen in Host management agent logs (/var/run/log/hostd.log) confirming the incomplete disk layout.
Skip caching of external disk paths due to incomplete layout.Event 5473 : Some of the disks of the virtual machine <VMNAME> on host <HOST_NAME> failed to load. The information present for them in the virtual machine configuration may be incompleteSkip config check due to incomplete disk layout
This issue is currently under investigation and a fix will be delivered in a future ESXi Server patch/update release.
As a quick workaround migrate the virtual machine to another ESXi Server. This refreshes the disk layout and hot add will succeed. Alternatively a snapshot create/delete operation will refresh the disk layout on the same ESXi Server avoiding further hot add failures.
Note: Virtual machine disk layout remains incomplete if any of the disks attached to the virtual machine is not present or inaccessible. The disk layout is not refreshed even in cases the accessibility is restored or virtual machine configuration is corrected.