How to find the corresponding vmdk of the /dev/sd* disk added in linux system.

  Virtualization, VMWare

How to map Linux disk to vmware disk????
dmesg is the easiest way to map the disk with vmdk files. Execute the following command on your linux.

 dmesg | grep -i 'Attached SCSI disk'

You will get the following output :

sd 2:0:0:0: [sda] Attached SCSI disk
sd 2:0:1:0: [sdb] Attached SCSI disk
sd 2:0:2:0: [sdc] Attached SCSI disk

Now match second and third number from first column sd ‘2:0:0:0’ with VMWARE scsi Id mentioned in VM properties as mentioned in above screen shot.
It’s easy to identify the device file(/dev/sdX) and VMware virtual hard disk.

On the right pane, SCSI address shows up like “SCSI(0:0)”. The number of the SCSI(X:X) can map to Linux device file such as;

SCSI(0:0) -> /dev/sda
SCSI(0:1) -> /dev/sdb

LEAVE A COMMENT