In this example, you create an RDM file named my_rdm.vmdk and map the vml.vml_ID raw disk to that file.

vmkfstools -r /vmfs/devices/disks/vml.vml_ID my_rdm.vmdk

You can configure a virtual machine to use the my_rdm.vmdk mapping file by adding the following lines to the virtual machine configuration file:

scsi0:0.present = TRUE 
scsi0:0.fileName = /vmfs/volumes/myVMFS/my_rdm.vmdk