vmVMDKToDatastoreToDeviceMapping

Version 1

    Table of Contents

    • Author

    • Description

    • Category

    • Requirements

    • Sample Execution

     

     

    Author

    William Lam

     

    Description

    This script was motivated by VMTN question posted help providing a mapping of VM's VMDK(s) to their datastore to the actual physical devices backing a given datastore. The script connects directly to a specific ESX(i) host to query for this information

     

    Category

    • Miscellaneous

     

    Requirements

     

    Sample Execution

     

    [vi-admin@scofield scripts]$ ./vmVMDKToDatastoreToDeviceMapping.pl --server esxi4-1.primp-industries.com
    VM: VA-Tomcat
    VMDK: [esxi4-1-local-storage-1] VA-Tomcat/VA-Tomcat_1.vmdk
    DEVICE: /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:3 Local VMware Disk (mpx.vmhba1:C0:T0:L0):3
    
    VM: VA-Tomcat
    VMDK: [esxi4-1-local-storage-1] VA-Tomcat/VA-Tomcat.vmdk
    DEVICE: /vmfs/devices/disks/mpx.vmhba1:C0:T0:L0:3 Local VMware Disk (mpx.vmhba1:C0:T0:L0):3