打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
VMware KB: Raw Device Mapping for local storage

Symptoms

When attempting to configure a local datastore as a Raw Device Mapping (RDM), you see these symptoms:
  • The option to create an RDM is grayed out.
  • You cannot add a local volume to a virtual machine as a raw device mapping.

Cause

By default, local storage devices are disabled as potential RDM candidates on an ESXi/ESX host. Due to most existing local controllers not meeting the hardware requirements to correctly address and communicate with an RDM disk.

Resolution

To configure an RDM on local storage with ESXi/ESX hosts, both of these conditions are required:
Note: This capability to serve as an RDM may not be possible on some local controllers and their attached storage. Contact your hardware vendor to verify if your controller supports the required conditions, and for any technical support.

If you have a suitable controller, you can configure the local device as an RDM. Configuration of a local storage device as an RDM must be done using the Command Line Interface (CLI), it cannot be done through the vSphere Client.

To configure a local device as an RDM disk:
  1. Open an SSH session to the ESXi/ESX host.
  2. List the disks that are attached to the ESXi host, use the command:

    # ls -l /vmfs/devices/disks

  3. From the list, identify the local device you want to configure as an RDM and copy the device name.

    Note: The device name will likely be prefixed with t10. and look similar to: t10.F405E46494C4540046F455B64787D285941707D203F45765

  4. To configure the device as an RDM and output the RDM pointer file to your chosen destination, run the command:

    # vmkfstools -z /vmfs/devices/disks/<diskname> /vmfs/volumes/<datastorename>/<vmfolder>/<vmname>.vmdk

    For Example:

    # vmkfstools -z /vmfs/devices/disks/t10.F405E46494C4540046F455B64787D285941707D203F45765 /vmfs/volumes/Datastore2/localrdm1/localrdm1.vmdk

    Note: The size of the newly created RDM pointer file appears to be the same size and the Raw Device it it mapped to, this is a dummy file and is not consuming any storage space.

  5. When you have created the RDM pointer file, attach the RDM to a virtual machine using the vSphere Client:

    1. Right click on the virtual machine you want to add an RDM disk to.
    2. Click Edit Settings.
    3. Click Add...
    4. Select Hard Disk.
    5. Select Use an existing virtual disk.
    6. Browse to the directory you saved the RDM pointer to in step 5 and select the RDM pointer file and click Next.
    7. Choose the virtual SCSI controller you want to attach the disk to and click Next.
    8. Click Finish.

  6. You should now see your new hard disk in the virtual machine inventory as Mapped Raw LUN.

    Note: As this virtual machine now has an attached local disk migration, using vMotion is not possible.

Additional Information

For more information, see:

See Also

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
虚拟机使用ESXi主机物理硬盘的办法
VMware ESX三种虚拟磁盘类型分析
VMwareESX/ESXi 精简置备(thin)与厚置备(thick)虚拟机磁盘之间转换
ESXi 硬盘直通
从ESXi 主机卸载 LUN 或分离数据存储设备
VMware ESXi 4.1 does not use whole disk capacity for VMFS3
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服