How to find Disk SCSI ID in Virtual Machine + Linux
1. By command line:
a. To see scsi id of all the disks:
#cat /proc/scsi/scsi
root@test ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
---------------------------------------
b. to find the scsi id of the particular disk:
root@test ~]# ls -d /sys/block/sda/device/scsi_device*
/sys/block/sda/device/scsi_device:0:0:0:0
Here: 1:0:0:0 --> scsi1; chaneel 0; id: 0 Lun: 0
or
root@test ~]# ls -d /sys/block/*/device/scsi_device*
/sys/block/sda/device/scsi_device:0:0:0:0 /sys/block/sdc/device/scsi_device:1:0:0:0 /sys/block/sde/device/scsi_device:2:0:0:0 /sys/block/sdg/device/scsi_device:3:0:0:0
/sys/block/sdb/device/scsi_device:0:0:1:0
2. Through vSphere client:
a. In the vSphere Client, Select the virtual machine and and right-click the select Edit Settings.
b. Select each hard disk to see its SCSI address.
1. By command line:
a. To see scsi id of all the disks:
#cat /proc/scsi/scsi
root@test ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
---------------------------------------
b. to find the scsi id of the particular disk:
root@test ~]# ls -d /sys/block/sda/device/scsi_device*
/sys/block/sda/device/scsi_device:0:0:0:0
root@test ~]# ls -d /sys/block/sdc/device/scsi_device*
/sys/block/sdc/device/scsi_device:1:0:0:0
or
root@test ~]# ls -d /sys/block/*/device/scsi_device*
/sys/block/sda/device/scsi_device:0:0:0:0 /sys/block/sdc/device/scsi_device:1:0:0:0 /sys/block/sde/device/scsi_device:2:0:0:0 /sys/block/sdg/device/scsi_device:3:0:0:0
/sys/block/sdb/device/scsi_device:0:0:1:0
2. Through vSphere client:
a. In the vSphere Client, Select the virtual machine and and right-click the select Edit Settings.
b. Select each hard disk to see its SCSI address.
Thanks...
Kirann Jadhav
**Let's Share our knowledge and keep visiting here**
No comments:
Post a Comment