HCX - OSAM migrated VM experiences a fix-up error "Failed to deactivate volume group" at switchover
search cancel

HCX - OSAM migrated VM experiences a fix-up error "Failed to deactivate volume group" at switchover

book

Article ID: 368690

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

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

Environment

HCX OS Assisted Migration (OSAM)

Cause

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

Resolution

This issue is fixed in HCX version 4.10.0 and later

Additional Information

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