VMware vSphere

 View Only
  • 1.  Identifying vmfs and corresponding linux device

    Posted Aug 20, 2010 12:11 PM

    Hi

    When adding new hard disks to a virtual machine the devices are named "Hard disk 1", "Hard disk 2" etc and has vmfs file names and virtual device nodes (i.e. SCSI(0:8) associated with them. Within the Linux guest OS the devices are referred to as /dev/sda, /dev/sdb etc.

    How can I possitively identify which Linux device is which vmfs file (or virtual device node)?

    Thanks in advance

    // Kaastrup



  • 2.  RE: Identifying vmfs and corresponding linux device

    Posted Aug 21, 2010 03:57 PM

    You can use dmesg command, it outputs something like this

    ...
     target0:0:0: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 127)
    SCSI device sda: 207618048 512-byte hdwr sectors (106300 MB)
    ....
     target0:0:1: FAST-40 WIDE SCSI 80.0 MB/s ST (25 ns, offset 127)
    SCSI device sdb: 209715200 512-byte hdwr sectors (107374 MB)
    ...

    it can be seen that target0:0:0 is mapped as sda, target0:0:1 as sdb, etc



  • 3.  RE: Identifying vmfs and corresponding linux device

    Posted Aug 22, 2010 06:05 AM

    With SCSI device is very simple...

    Lower SCSI ID (in VM property) lower letter.

    The sda is the first SCSI disk, sdb is the second, and so on...

    Andre