vicker313 tech blog

February 24, 2013

Add Local Storage as Raw Disk Mapping in ESX

Filed under: VMWare — Tags: , , , — vicker313 @ 7:39 am

In newer version of VMWare (example version 5), you can only Raw Disk Mapping (RDM) a SAN storage, and not the local storage or harddisk. However there is a trick to do this:

  1. Log in as root through ssh or just go to the console terminal (refer Enable SSH at ESX Host)
  2. Now you need to find out the physical disk path that you will be doing RDM, using either the following commands:
    • esxcfg-mpath -l
    • ls -al /vmfs/devices/disks
  3. Then you need to map the disk as a virtual disk using following command:
    vmkfstools -r /vmfs/devices/disks/<physical disk path> /vmfs/volumes/<vmfs datastore name>/<folder name>/<virtual disk name>.vmdk

Now you can view the physical disk as virtual disk and add it to VM.

Reference: Add Local Storage (e.g. a SATA disk) as a Raw Disk Mapping (RDM) or Mapped RAW LUN to a virtual machine hosted on ESXi


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: