# esxcfg-mpath -L
vmhba33:C0:T0:L0 state:active naa.6090a038f0cd6e5165a344460000909b vmhba33 0 0 0 NMP active san iqn.1998-01.com.vmware:bs-tse-i137-35c1bf18 00023d000001,iqn.2001-05.com.equallogic:0-8a0906-516ecdf03-9b9000004644a365-bs-lab-vc40,t,1
# vmkfstools –i srcfile -d rdm:/vmfs/devices/disks/identifier /vmfs/volumes/datastore/vmdir/vmname.vmdk
identifier
value represents the value recorded in step 3.# vmkfstools -i olddisk.vmdk -d rdm:/vmfs/devices/disks/naa.0600034392874872788777273 /vmfs/volumes/TestDatastore/TestVM/rdmdisk.vmdk
# vmkfstools –i srcfile -d rdmp:/vmfs/devices/disks/identifier /vmfs/volumes/datastore/vmdir/vmname.vmdk
identifier
value represents the value recorded in step 3.# vmkfstools -i olddisk.vmdk -d rdmp:/vmfs/devices/disks/naa.0600034392874872788777273 /vmfs/volumes/TestDatastore/TestVM/rdmdisk.vmdk
# esxcfg-mpath -l
Disk vmhba2:0:3 /dev/sdb (409594MB) has 2 paths and policy of Most Recently Used
FC 16:0.0 2100001b32010007<->500805f300124a91 vmhba2:0:3 On active preferred
FC 16:0.0 2100001b32010007<->500805f300124a99 vmhba2:1:3 On
To confirm Select the virtual machine you are working with from the vSphere Client.
Select the Virtual Machine > Edit Setting
Highlight the virtual Raw Device Mapping (RDM) disk and copy the vm.id.
For example your VM-ID is :
VM-ID : vml.020007000060060160c66030003c784fe4a808e211565241494420
To identify the the device and NAS ID. From a SSH or Console session type the command:
# ls -l /vmfs/devices/disks | grep vml.020007000060060160c66030003c784fe4a808e211565241494420
You should see a output similar to this example:
ls -l /vmfs/devices/disks | grep vml.020007000060060160c66030003c784fe4a808e211565241494420
lrwxrwxrwx 1 root root 36 Feb 20 16:08 vml.020007000060060160c66030003c784fe4a808e211565241494420 -> naa.60060160c66030003c784fe4a808e211
lrwxrwxrwx 1 root root 38 Feb 20 16:08 vml.020007000060060160c66030003c784fe4a808e211565241494420:1 -> naa.60060160c66030003c784fe4a808e211:1
For detailed information on identification of disks please see the above note.
For virtual compatibility mode, run the command:# vmkfstools –i srcfile -d rdm:/vmfs/devices/disks/identifier:partition /vmfs/volumes/datastore/vmdir/vmname.vmdk
identifier
value represents the value recorded in step 3. The partition
represents the partition on that LUN.# vmkfstools -i olddisk.vmdk -d rdm:/vmfs/devices/disks/vmhba3:0:2 /vmfs/volumes/TestDatastore/TestVM/rdmdisk.vmdk
# vmkfstools –i srcfile -d rdmp:/vmfs/devices/disks/identifier:partition /vmfs/volumes/datastore/vmdir/vmname.vmdk
identifier
value represents the value recorded in step 3. The partition
represents the partition on that LUN.# vmkfstools -i olddisk.vmdk -d rdmp:/vmfs/devices/disks/vmhba3:0:2 /vmfs/volumes/TestDatastore/TestVM/rdmdisk.vmdk