HCX DR protection failing for a VM that has disk size which is not multiple of 1MB/1024KB
search cancel

HCX DR protection failing for a VM that has disk size which is not multiple of 1MB/1024KB

book

Article ID: 370717

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

  • Protecting a VM through HCX Disaster Recovery is failing with "Protecting : Failed" and configuration status is "Configuring Error" if a VM has a disk which size is not multiple of 1MB:



  • /common/logs/admin/app.log contains the message "Disk size is not a multiple of 1024, DR is not supported" at the time of failure:

    2024-06-26 08:15:47.420 UTC [VsphereReplicationService_SvcThread-282060, T:'protect', R:protect-########-####-####-####-############, J:########-####-####-####-############, S:BEGIN, , TxId: ########-####-####-####-############] INFO  DR.OP- Protection configuration started for entity {"entityId":"vm-12021","entityName":"VM-Name"} with replication identifier as HRID-########-####-####-####-############.
    2024-06-26 08:15:50.836 UTC [VsphereReplicationService_SvcThread-282097, T:'protect', R:protect-########-####-####-####-############, J:########-####-####-####-############, S:VALI
    DATE_INPUTS, , TxId: ########-####-####-####-############] ERROR DR.OP- Disk size is not a multiple of 1024, DR is not supported






Environment

HCX 4.9

Resolution

Make sure to follow these guidelines for specifying disk sizes:

  • Disk Sizes in MB: All disks must have sizes that are multiples of 1 MB.
  • Disk Sizes in GB: When specifying disk sizes in GB, ensure there are no decimal values.
  • Disk Sizes in TB: If a disk size is specified in TB, only certain decimal values that correspond to multiples of 1 MB are allowed:

    • X.125 TB
    • X.25 TB
    • X.375 TB
    • X.5 TB
    • X.625 TB
    • X.75 TB
    • X.875 TB

      Examples:

      4.25 TB is acceptable (multiple of 1 MB).
      4.252 TB is not acceptable (not a multiple of 1 MB).

  • Full TB Numbers: Disk sizes specified as whole TB numbers are inherently multiples of 1 MB.

Example: 5 TB (correct).

By following these rules, you can ensure that your VM's disk size will meet the requirements for the DR protection.

Additional Information

The same issue would affect bulk migrations in HCX - Migration validation failure "Disk size is not a multiple of 1024. RAV/Bulk migration is not supported"

In previous HCX versions this check was not failing but it was getting stuck at 0%.  The check for disk size to be multiple of 1MB/1024KB was introduced in HCX 4.9.