An RDM is presented to a virtual machine registered on a host and needs to be available from other hosts so the VM may migrate or HA failover.
ESXi - all versions
See the documentation on adding an RDM to a VM