Command to view all LUNs presented to a host #esxcfg-scsidevs -c And to check about a specific LUN, #esxcfg-scsidevs -c | grep naa.id To find the unique identifier of the LUN, you may run this command: # esxcfg-scsidevs -m To find associated datastore using a LUN id #esxcfg-scsidevs -m|grep naa.id To get a list of RDM disks, you may run following command , #find /vmfs/volumes/ -type f -name ‘*.vmdk’ -size -1024k -exec grep -l ‘^createType=.*RawDeviceMap’ {} \; > /Datastore123/ rdmsluns.txt This command will save the list of all RDM disk to a text file rdmluns.txt and save it to Datastore123. Now Run following command to find the associated LUNs, #for i in `cat /tmp/ rdmsluns.txt `; do vmkfstools -q $i; done This command will give you the vml.id of rdm luns, Now use following cmd to map vml.id to naa.id #ls -luth /dev/disks/ |grep vml.id in output of t...