VMware HCX
The changes to the VM's vmdk configuration must be performed through vCenter before the HCX migration workflow.
Workaround:
IMPORTANT: In HCX version prior to 4.3 or earlier, The verification was done to verify if disk size is in multiple of 1024 bytes only.
From HCX version 4.4 or later, additional checks on disk sizes has been done, as shown below:
Note: [1KB = 1024byte]
Please refer to the chart below for further clarity:
Disk Size Range | Block Size Required (B) |
---|---|
≤ 2 TB | 8 KB (8 × 1024 = 8,192 bytes) |
> 2 TB and ≤ 8 TB | 16 KB (16 × 1024 = 16,384 bytes) |
> 8 TB and ≤ 32 TB | 32 KB (32 × 1024 = 32,768 bytes) |
> 32 TB and ≤ 64 TB | 64 KB (64 × 1024 = 65,536 bytes) |
Manual workaround steps:
Prerequisite: ensure no backups are running on the source VM, and disable all backup operations temporarily.
1. Access the vCenter with the source affected VM name (object) --> Select "Actions" --> Select "Edit Settings
.."
2. In the disk hardware configuration section for the disks, ensure that the disk values are in multiples of 8KB (8192 bytes) if the disk size is less than 2 TB. Use the modulus operator (%
) to check if the remainder of division is zero:
disk_size(in bytes) % 8192 == 0
, if remainder is 0, then it's a multiple of 8192.See below example:
Note: the seen UI is cut-off and actually has an appended at the end, integers '558794' at the end being " 1.8100000000558794 TB" these disks 7 and 8 would need to be identified as 8192 bytes.
3. Select the dropdown and change the disk sizing category from TB --> GB (sizing type) to add an appropriate integer value (without any trailing decimal point values). In the above example, a value of 1855 GB was used to resolve the issue
4. Click the "OK" button to save the VM settings
5. Retry HCX migration validation, and it should pass (log-out and log-in may assist with any unexpected web-browsing caching)
For RDMS:
Change the Disk size from the Storage end.