VMware ESXi (All Versions)
To import a virtual disk into a raw LUN for use with an RDM in ESXi:
# esxcfg-mpath -L |grep <serial# of the LUN created on the array for use of the RDM>
Note: The Serial number of the LUN that was created on the array will be part of the disk identifier
vmhba33:C0:T0:L0 state:active naa.6090a#######################909b vmhba33 0 0 0 NMP active san iqn.1998-01.com.vmware:bs-tse-i137-35c1bxxx00023dxxxxxxx,iqn.2001-05.com.equallogic:0-8a0906-51xecdfxx-9b90000XXXXXXXX-aa-bb-test,t,1
# vmkfstools –i srcfile -d rdm:/vmfs/devices/disks/identifier /vmfs/volumes/datastore/vmdir/vmname.vmdk
Note: The identifier
value represents the value recorded in step 3.
For example:
# vmkfstools -i olddisk.vmdk -d rdm:/vmfs/devices/disks/naa.0600034392874872788xxxxxxx/vmfs/volumes/TestDatastore/TestVM/rdmdisk.vmdk
For physical compatibility mode, run the command:
# vmkfstools –i srcfile -d rdmp:/vmfs/devices/disks/identifier /vmfs/volumes/datastore/vmdir/vmname.vmdk
Note: The identifier
value represents the value recorded in step 3.
For example:
# vmkfstools -i olddisk.vmdk -d rdmp:/vmfs/devices/disks/naa.0600034392874872788xxxxxxx/vmfs/volumes/TestDatastore/TestVM/rdmdisk.vmdk
To perform the same operation via UI you can follow KB: Title: Converting a Raw Device Mapping (RDM) into virtual disk (VMDK). https://knowledge.broadcom.com/external/article?articleNumber=374087