Unable to consolidate the VM it failed with an error " Failed to copy source (/vmfs/volumes/datastore/vm_name/vm_name.vmdk) to destination (/vmfs/volumes/datastore/vm_name/vm_name.vmdk): Address temporarily unmapped".
search cancel

Unable to consolidate the VM it failed with an error " Failed to copy source (/vmfs/volumes/datastore/vm_name/vm_name.vmdk) to destination (/vmfs/volumes/datastore/vm_name/vm_name.vmdk): Address temporarily unmapped".

book

Article ID: 425672

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • VM consolidation or migration fails with error "Address temporarily unmapped" on multi-extent datastores
  • Attempts to consolidate VM disks, perform vMotion, or run backups fail with:

"Consolidation failed for disk node 'scsi0:1': The operation failed. Failed to get copy progress while consolidating disks from '/vmfs/volumes/datastore' to '/vmfs/volumes/datastore'. Failed to copy source (/vmfs/volumes/datastore/vm_name/vm_name.vmdk) to destination (/vmfs/volumes/datastore/vm_name/vm_name.vmdk): Address temporarily unmapped."

  • hostd.log show that a virtual machine disk consolidation failed because the system encountered a temporarily unmapped address and could not access the required Changed Block Tracking (CBT) files.

    /var/run/log/hostd.log

    YYYY-MM-DDThh:mm:ss Db(167) Hostd[4480359]: [Originator@6876 sub=Vigor.Vmsvc.vm:/vmfs/volumes/datastore/vm_name/vm_name.vmx]  Consolidate  Disks message: An error occurred while consolidating disks: The operation failed.
    YYYY-MM-DDThh:mm:ss Db(167) Hostd[4480320]: --> Failed to copy source (/vmfs/volumes/datastore/vm_name/vm_name.vmdk) to destination (/vmfs/volumes/datastore/vm_name/vm_name.vmdk): Address temporarily unmapped.
    YYYY-MM-DDThh:mm:ss Db(167) Hostd[4480320]: --> Failed to get copy progress while consolidating disks from'/vmfs/volumes/datastore/vm_name//datastore/vm_name/vm_name.vmdk' to '/vmfs/volumes/datastore/vm_name/vm_name.vmdk'.
    YYYY-MM-DDThh:mm:ss Db(167) Hostd[4480320]: --> Consolidation failed for disk node 'scsi0:1': The operation failed.
    YYYY-MM-DDThh:mm:ss In(166) Hostd[4480356]: [Originator@6876 sub=DiskLib] DISKLIB-CTK ChangeTrackerOpenOnDiskWork: Could not open tracking file /vmfs/volumes/datastore/vm_name/vm_name000001-ctk.vmdk (4).
    tracking information is not available for /vmfs/volumes/datastore/vm_name/vm_name.vmdk (2108): Could not open or create change tracking file
    YYYY-MM-DDThh:mm:ss In(166) Hostd[4480356]: [Originator@6876 sub=DiskLib] DISKLIB-CTK   : ChangeTrackerOpenOnDiskWork: Could not open tracking file /vmfs/volumes/datastore/vm_name/vm_name-ctk.vmdk (4).
    YYYY-MM-DDThh:mm:ss In(166) Hostd[4480356]: [Originator@6876 sub=DiskLib] DISKLIB-CTK   : Could not open change tracking file "/vmfs/volumes/datastore/vm_name/vm_name-ctk.vmdk": Could not open or create change tracking file.
    YYYY-MM-DDThh:mm:ss Wa(164) Hostd[4480356]: [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/datastore/vm_name/vm_name.vmx] Change tracking information is not available for /vmfs/volumes/datastore/vm_name/vm_name.vmdk (2108): Could not open or create change tracking file 
  • vobd.log explicitly state that a device backing a filesystem volume has gone offline

    /var/run/log/vobd.log

    YYYY-MM-DDThh:mm:ss In(14) vobd[2097525]:  [vmfsCorrelator] 71282348us: [vob.vmfs.extent.offline] An attached device went offline. ###:1 file system [Volume, ###4]
    YYYY-MM-DDThh:mm:ss In(14) vobd[2097525]:  [vmfsCorrelator] 71282955us: [esx.problem.vmfs.extent.offline] An attached device naa.###:1 may be offline. The file system [Volume, ###] is now in a degraded state. While the datastore is still available, parts of data that reside on the extent that went offline might be inaccessible.

  • vmkernel shows address temporarily unmapped events

    /var/run/log/vmkernel.log

    YYYY-MM-DDThh:mm:ss In(182) vmkernel: cpu0:3272716)Fil6: 4308: 'Volume': Fil6 file IO (<FD c0 r1>) : Address temporarily unmapped
    YYYY-MM-DDThh:mm:ss In(182) vmkernel: cpu0:3272716)Fil6: 4308: 'volume': Fil6 file IO (<FD c0 r1>) : Address temporarily unmapped

  • Validate Datastore Extents:  Run vmkfstools -Ph -v10 /vmfs/volumes/<DatastoreName> to check the status of the datastore partitions.

    Example Output:

    [root@ESXi] /vmfs/volumes/Datastore] vmkfstools -Ph -v10 /vmfs/volumes/DatastoreName
    VMFS-6.82 (Raw Major Version: 24) file system spanning 2 partitions.
    File system label (if any): ##
    Mode: public ATS-only
    Capacity # TB, # GB available, file block size 1 MB, max supported file size 64 TB
    Volume Creation Time: YYYY DD MM  hh:mm:ss 
    Files (max/free): 16384/16170
    Ptr Blocks (max/free): 0/0
    Sub Blocks  (overcommit/used/overcommit %): 0/306/0
    Large File Blocks (total/used/file block clusters): 5023/3021/1600
    Volume Metadata size: 1550180352
    Disk Block Size: 512/512/0
    UUID: #####
    Logical device: ######
    Partitions spanned (on "lvm"):
    naa.#####:1
    (device #####:1 might be offline
    (One or more partitions spanned by this volume may be offline)  >>>>>>>>Offline 
    Is Native Snapshot Capable: NO
    OBJLIB-LIB: ObjLib cleanup done.
    WORKER: asyncOps=0 maxActiveOps=0 maxPending=0 maxCompleted=0

Environment

VMware vSphere ESXi  8.x

 

Cause

  • This issue occurs because the Virtual Machine resides on a multi-extent VMFS datastore (a datastore spanned across multiple LUNs), and one of the backing storage extents is currently offline or inaccessible.
  • In a multi-extent configuration, VMFS distributes data and metadata across all spanned devices. When an extent goes offline,I/O operations that reference data blocks on the missing extent will fail.
  • Snapshot consolidation, which requires reading and writing to the disk chain, fails because it cannot access the necessary data segments located on the missing extent.

Resolution

Coordinate with the Storage Team

  1. Provide the identified NAA ID (output from vmkfstoos) to your storage administrator.
  2. Request a health check for that specific LUN on the SAN (Storage Area Network).
  3. Ensure the LUN is correctly:
    1. Assigned to the correct ESXi host or Cluster.
    2. Visible through the Fibre Channel or iSCSI fabric.
    3. Not in a "degraded" or "failed" state on the storage array

Perform a storage rescan

Once the storage team confirms the LUN is restored and visible to the fabric, the ESXi host must refresh its view of the storage.

  1. Run the following command on the ESXi host: esxcli storage core adapter rescan --all
  2. Verify the datastore status again with vmkfstools -Ph -v10 /vmfs/volumes/<DatastoreName>. The partition should no longer be marked as "offline."
  3. Right-click the VM in the vSphere Client and select Snapshots > Consolidate and attempt to consolidate the VM.
  4. If the storage team confirms the extent is permanently lost or deleted, restore the Virtual Machine from a recent backup to a known healthy, different datastore.