When attempting to migrate virtual machine workloads from a vSphere vSAN datastore to Red Hat Openshift using MTV, the migration fails during the disk cloning stage.
The vsphere-xcopy-volume-populator.go or vmkfstools-wrapper.log reports the following errors:
xcopy used reported: 0, forcing the migration to fall back to a host-based SSH copy method.vmkfstools-wrapper.log file on the ESXi host grows uncontrollably during the migration process, filling the /var volume to 100% capacity. This prevents the vmkfstools process from writing required metadata or temp files, leading to an I/O error (327689).To resolve this issue and allow the migration to complete successfully, perform the following maintenance on the source ESXi host and VM:
Clear Host Log Volume:
echo > /var/log/vmkfstools-wrapper.log/var volume is no longer at 100% using df -h.Reset Changed Block Tracking (CBT):
-ctk.vmdk.Implement Automated Log Rotation:
vmkfstools-wrapper.log during the migration. Restart Management Agents:
/etc/init.d/hostd restart /etc/init.d/vpxa restart