Virtual machine RDM disks are showing "0MB" in settings
search cancel

Virtual machine RDM disks are showing "0MB" in settings

book

Article ID: 391863

calendar_today

Updated On:

Products

VMware vSphere ESXi 7.0 VMware vSphere ESXi 8.0

Issue/Introduction

  • When edit settings of the virtual machine, the hard disks are showing "0MB" in size.The disks are RDM devices.
  • The virtual machine is in powered off state and cannot be powered on with error message:

    Unable to enumerate all disks.

  • Below error message is observed on summary page of the virtual machine in vCenter:

    Some of the disks of the virtual machine <virtual machine name> failed to load. The information present for them in the virtual machine configuration may be incomplete.

  • Unable to query the vmdk file of the RDM device when navigating to virtual machine directory in command line, for example:

    # vmkfstools -q <virtual machine name>.vmdk
    Failed to open '<virtual machine name>.vmdk' : No such device.

  • Below logs is seen in /var/run/log/vmkernel.log:

    Error opening device <vml id>: No such target on adapter

Environment

VMware vSphere ESXi 7.0
VMware vSphere ESXi 8.0

Cause

The storage device backing RDM disk has been removed and unavailable.
Below logs are seen in /var/run/log/vmkernel.log prior to the issue which indicates the device has been removed and unmapped:

Device <naa id> path vmhba#:C#:T#:L# has been unmapped from the array
<naa id> has been removed or is permanently inaccessible.

Resolution

Need to remap the storage device to ESXi host for the RDM disks to load.
Otherwise there's no way to recover the virtual machine and the affected virtual machine needs to be restored from backup.