vSphere Replication Support with 4K Native (4Kn) Datastores - VMware vSphere Replication
search cancel

vSphere Replication Support with 4K Native (4Kn) Datastores - VMware vSphere Replication

book

Article ID: 457875

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

Symptoms:

  • Unable to replicate virtual machines with a disk sector size of 4Kn from a vSAN datastore to a VMFS6 datastore that supports 4Kn VMDK sector sizes.

  • When attempting to add a virtual machine with 4Kn VMDK sector size to replication, the configuration task fails despite the target datastore supporting 4Kn. The following error is observed in the Site Recovery client during the replication configuration task:

    ERROR
    Operation Failed
    Group.Spec property 'spec.vm.disks.destination.datastore' is incorrect. Details: 'Datastore 'datastore-####' does not support disk (device key 2000) sector format: 'native_4k''.

  • ESX hosts and Protection and Recovery appliances on both the primary and disaster recovery (DR) sites are on version 9.1.

Environment

  • Protection and Recovery 9.1

Cause

This is an expected behavior and a known limitation of vSphere Replication.

vSphere Replication cannot be used with datastores that support only 4K native (4Kn) block sizes. There is a safeguard built into the management layer of vSphere Replication that explicitly prevents configuring the protection of VMs that use 4Kn-based datastores. This limitation is documented in the Protection and Recovery 9.1 Release Notes.

Resolution

To protect the affected virtual machines and resolve the native incompatibility, implement one of the following recommendations:

Option 1: Use a vSAN Datastore Target: If DR site has a vSAN cluster, configure the vSAN datastore as the target datastore. vSAN datastores natively support both 512n and 4Kn sector sizes.

Option 2: Re-provision as 512e or 512n To continue using host-based vSphere Replication to a VMFS6 target, the virtual disks must present 512-byte sectors.

  1. Provision new disks as 512e (512 emulation) or 512n. Both VMFS6 and vSAN fully support 512e.

  2. Migrate the data at the Guest OS level.

  3. Configure vSphere Replication on the newly provisioned disks.

Option 3: Switch to Array-Based Replication Switch to Array-Based Replication (using Storage Replication Adapters) instead of host-based vSphere Replication. Array-based replication synchronizes blocks at the hardware/storage level and completely bypasses this hypervisor restriction to guarantee uninterrupted virtual machine protection.

Option 4: Reformat the Target LUN (For utilizing an existing 4Kn Datastore) If there is a requirement to utilize an existing 4Kn datastore (e.g., a large capacity Datastore) for vSphere Replication, the required 512-byte sector geometry must be enforced at the datastore level

  1. Delete the existing 4Kn VMFS6 datastore.

  2. Engage storage vendor to reformat or recreate the underlying LUN with a logical block size or sector size of 512.

  3. Once the LUN is presented back to ESXi hosts as 512e/512n, perform a storage rescan in vCenter.

  4. Create a new VMFS6 datastore on that LUN. It will natively adopt the 512-byte sector format and can be used for vSphere Replication. Note: Ensure the source VMDKs you wish to replicate are also formatted as 512n.

Additional Information

Protection and Recovery 9.1 Release Notes