Navigate to Inventory>Hosts>Virtual machine then, Right-click on virtual machine and select Edit Settings.On the Virtual Hardware tab, click the Add New Device button and select RDM Disk from the drop-down menu.The Select Target LUN dialog box opens.
reports '0' B under Inventory>Host>Configure>Storage devices.
Host UI>Storage>Devices.This issue caused when the operational state of the storage device shows "Detached" on ESXi host which leads to incorrect LUN size or reports '0' B.
When an RDM (Raw Device Mapping) LUN is shown as 0 bytes, it typically indicates an issue with the LUN being recognized or connected to the virtual machine. This can happen if the LUN is not properly configured, the storage array is not presenting the LUN correctly, or if there are issues with the RDM mapping itself
Virtual machine RDM disks are showing "0MB" in settings
Storage device status shows "Detached" under Inventory>Host>Configure>Storage devices.
1. Attach the storage device to ESXi host followed by Cluster level storage rescan post which the exact LUN size reflects on the ESXi host.
2. Once the correct LUN size gets reflected on ESXi host then you proceed with configuring the RDM disk on virtual machine.