Soh*_*rty 2 hard-drive vmware-vcenter vmware-vsphere
我想要完成的是将 vCenter 中的硬盘驱动器与 Linux 来宾中的磁盘相关联。所以就到这里了
在 vCenter 中打开来宾的设置并移动到硬件选项卡,显示硬盘驱动器列表,即 .vmdk 文件。SCSI id 表示是通用的 - 磁盘 1 是 0:0,磁盘 2 是 0:1,依此类推。
On the guest, I checked the dmesg and found the sd* devices with their bus and target number. From there, I tried to deduce the relation but I am not sure whether this is the right approach or rather right thing.
[root@blah /]# grep -i attached /var/log/dmesg
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:1:0: Attached scsi disk sdb
sd 0:0:2:0: Attached scsi disk sdc
sd 0:0:3:0: Attached scsi disk sdd
sd 0:0:4:0: Attached scsi disk sde
Run Code Online (Sandbox Code Playgroud)
Now I am trying to relate this disks with the hard drive information that vCenter tells me. I confirmed the h:b:t:l mapping with /proc/scsi/scsi and it looks sane to me.
这是正确的......有点。
使用lsscsi. SCSI 设备节点对应于您在 VMware 中看到的控制器/目标/设备命名。
极端例子:
root@vdp1:~/#: lsscsi
[0:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[0:0:1:0] disk VMware Virtual disk 1.0 /dev/sdb
[0:0:4:0] disk VMware Virtual disk 1.0 /dev/sdj
[0:0:5:0] disk VMware Virtual disk 1.0 /dev/sdk
[0:0:8:0] disk VMware Virtual disk 1.0 /dev/sdm
[0:0:9:0] disk VMware Virtual disk 1.0 /dev/sdn
[0:0:10:0] disk VMware Virtual disk 1.0 /dev/sdo
[1:0:0:0] disk VMware Virtual disk 1.0 /dev/sdc
[1:0:1:0] disk VMware Virtual disk 1.0 /dev/sdd
[2:0:0:0] disk VMware Virtual disk 1.0 /dev/sde
[2:0:1:0] disk VMware Virtual disk 1.0 /dev/sdf
[3:0:0:0] disk VMware Virtual disk 1.0 /dev/sdg
[4:0:0:0] cd/dvd NECVMWar VMware IDE CDR00 1.00 /dev/sr0
Run Code Online (Sandbox Code Playgroud)