To configure a local device as an RDM disk:
- Open an SSH session to the ESXi/ESX host.
- To configure the device as an RDM and output the RDM pointer file to your chosen destination, run this command:
vmkfstools -z /vmfs/devices/disks/diskname /vmfs/volumes/datastorename/vmfolder/vmname.vmdk
For example: