VMware vSphere

 View Only
  • 1.  how to get device uuid for a given disk

    Posted Oct 13, 2017 03:28 PM

    This is the sample output from command

         vmkfstools -t0 /path/to/disk.vmdk

          [0:   157286400] --> [VMFS -- LVID:4f438ba4-a4d98058-16d5-984be10a24d8/4f438ba3-53edb654-b1b1-984be10a24d8/1:(33206304768 -->  33363591168)]

                                          <---------------Device UUID-------->|<--------------VMFS UUID---------->    

      how can i get the the device uuid from VMware API for a given disk.

    i have the canonical disk name for the disk like (naa.6032420340234023042043234234)

    can someone please help?         



  • 2.  RE: how to get device uuid for a given disk

    Posted Oct 17, 2017 04:54 PM

    You can run this command to get a UUID for the virtual disk which is stored in the descriptor file:

    vmkfstools -J getuuid /vmfs/volumes/datastore/VM/vm.vmdk

    Where datastore is the name of the VMFS Volume and the VM is the name of virtual machine.

    Adding a virtual disk to a virtual machine that already has a virtual disk with the same UUID fails (1021189) | VMware K…



  • 3.  RE: how to get device uuid for a given disk

    Posted Oct 17, 2017 06:00 PM

    you are talking about VMDK UUID.

    we need the disk uuid (lun that is exposed to the ESX server)