Home VMware ESX and ESXi Server
Adding a raw device mapping (RDM) to a virtual machine Print E-mail

A Raw Disk Mapping (RDM) may be used to present a LUN directly to a virtual machine from the SAN. This offers improved performance, which can be used for more disk IO intensive applications such as database servers.

The first step to adding a RDM to a virtual machine is to assign an unused LUN to your ESX/ESXi Server(s). This will vary depending on the type of SAN in use.

For the new LUN to become available, Rescan the HBAs on all your ESX servers.

The virtual machine that the RDM is going to be added to needs to be shut down first, the RDM cannot be added while it is running.

Once the VM is shutdown right click the VM and choose "Edit settings".
On the hardware tab, click "Add" and choose "Hard Disk".
For the disk type choose "Raw Device Mapping" (RDM). Click Next.

Choose the LUN. Click Next.

Choose "Store with virtual machine" or if you want store the link to the RDM in a specific datastore. Click Next.

Choose "Physical" or "Virtual" compatability. Click Next.

The RDM needs to be on a seperate SCSI controller. Choose a Virtual Device Node that is on a different SCSI bus to the current virtual disks (e.g. SCSI 1:0). Click next.

Confirm settings and choose finish.

A new SCSI controller and hard disk is added to the virtual machine configuration. Now boot your VM. Depending on the OS check for new disks and format/mount the disk.




 

        
            

      

 

DISCLAIMER: All advice, tips, guides and other information on this website is provided as-is with no warranty or guarantee. While most information is correct to the best of my knowledge, I am not reponsible for any issues that may arise in using the information, and you do so at your own risk. As always before doing anything; check, double check, test and always make a backup.

 

Help VMadmin

All resources on this site are provided absolutley free. However it takes time and money to keep the site running. If any information has been helpful to you or your company, and you wish to make a donation to help keep VMadmin.co.uk running you can do so via paypal, and it would be much appreciated.

Click to donate to VMadmin.co.uk via paypal.