An HCX OS Assisted Migration (OSAM) may fail for a RHEL linux VM. During the switchover of the migrated VM the following error is seen:
Failed to perform fix-up operation on migrated VM. Failed to deactivate volume group <name>
The error suggests that the OSAM fix-up process is unable to detach the disk on the new Photon VM created on the destination side
HCX Manager UI >> Services >> Migration >> Management
HCX OS Assisted Migration (OSAM)
Use the “cat /etc/fstab” command on the source VM and check if there is a bind-mount within the same file-system similar to the following:
/tmp /tmp none bind,nodev,nosuid 0 0
This issue is fixed in HCX version 4.10.0 and later
Workaround:
1. On the source system open the /etc/fstab file and comment out the offending bind-mount command with “#” similar to the following
#/tmp /tmp none bind,nodev,nosuid 0 0
2. Retry the migration and this time the migration should succeed
3. Post migration, login to the migrated VM, open /etc/fstab and add the line that was commented. Please note that the commented line will not be present in /etc/fstab since the OSAM fixup process will not retain commented lines
4. Finally run "mount -a" to mount the bind-mount again