How to find clusters of data store for compute cluster?

I used PowerCLI script calls within a rest service.  The rest service is spent a bunch of new applications of construction of virtual machine data.  For the deployment, the only data (relevant to this question), I'm getting is the vcenter server and the name of the compute cluster.  I need to find a way to determine which cluster of data store to deploy virtual computer by using the name of the compute cluster.  If I do a get-cluster $clustername | FL * I see no correlation between the computer cluster and the cluster data store.

If I get info on a VM (get-vmhost $vmhost) host in a cluster, I see the datastoreIDlist as a property of the object VMhost and can see the warehouses of data (not datastoreclusters) facing it.  Which is not ideal, but it might be doable.

I know there is a relationship between compute clusters and storage that is presented in vcenter.  Why can't I find that in powercli?

Get-Cluster ClusterInQuestion | Get-VMHost | Get-datastore. Get-datastorecluster

Tags: VMware

Similar Questions

  • How can I move virtual machines from a local data store for a new iSCSI SAN?

    Hello guys,.

    Now that we have a new iSCSI SAN market how can I tranfer all the virtual machine to a local data store for a new SAN? Can I stop the VM in the host, and then copy the DataStore files with all the info on the new volume?

    Thank you

    Pesinet

    Alternatively, you can use VMware converter or cold Migration / Storage VMotion if you have the appropriate licenses.

    Duncan

    VMware communities user moderator | VCP | VCDX

    -

  • List of the files in the data store for the virtual machine

    Hello

    How to list the files of data store for the virtual machine? I can't find reference to the command.

    Thank you

    If you have installed vCLI and vSphere SDK for Perl, you have extra utilities on top of what is there with the vCLI, take a look at this list: http://www.vmware.com/support/developer/viperltoolkit/viperl40/doc/vsperl_util_index.html

    A script that can help with the list of files to store data for a given virtual machine is dsbrowse.pl

    Here is an example:

    [vi-admin@scofield ~]$ /usr/lib/vmware-vcli/apps/host/dsbrowse.pl --server himalaya.primp-industries.com --username root --name dlgCore-iSCSI.test
    
    Information about datastore : 'dlgCore-iSCSI.test'
    ---------------------------
    Summary
     Name             : dlgCore-iSCSI.test
     Location         : /vmfs/volumes/4a26f505-02dfd8a4-6867-003048d9586a
     File system      : VMFS
     Maximum Capacity : 15.75 GB
     Available space  : 11.654296875 GB
    
    Hosts associated with this datastore.
     himalaya.primp-industries.com
    
    Virtual machines on this datastore.
     None
    
    Templates on this datastore.
     None
    
    Datastore Folder Structure.
     Folder Path: '[http://dlgCore-iSCSI.test|http://dlgCore-iSCSI.test]'
     Files present
      testagain
      testlab-1
      testlab-2
      testlab-3
      testlab-4
      testlab-5
      testlab-6
      testlab-7
      testlab-8
      testlab-9
      testlab-10
      testlab-11
      testlab-12
      testlab-13
      testlab-14
      testlab-15
    
     Folder Path: '[http://dlgCore-iSCSI.test|http://dlgCore-iSCSI.test] testagain'
     Files present
      testagain.vmdk
      vmware.log
      testagain.nvram
      vmware-70.log
      vmware-65.log
      vmware-66.log
      vmware-68.log
      vmware-67.log
      vmware-69.log
      testagain-flat.vmdk
      testagain.vmx
      testagain.vmxf
      testagain.vmsd
    

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • How to judge whether a data store is read only or not?

    Hello

    VI client, when I select the 'Mounting NFS read-only' checkbox during the addition of a storage, the storage will not be listed during VM creation.  I checked the MOB and the SDK web page, but have not found how to judge whether a data store is read only or not.

    Do me a favor please.

    -Akityou

    You should be able to get this information out of the HostMountInfo under mode http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.host.MountInfo.html

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Show active paths by the data store for each host

    I'm looking for a PowerCLI script that displays by cluster, by ESXi host how active paths has a data store. The output should look like:

    Paths of Active host data store

    VMFS-01 ESXi01 2

    Thank you

    Ivo

    Try this one, it shows the actual number of "active" paths by the data store.

    foreach($esx in Get-VMHost){  $hss = Get-View $esx.Extensiondata.ConfigManager.StorageSystem
    
      $lunTab = @{}  $hss.StorageDeviceInfo.ScsiLun | %{    $lunTab.Add($_.Key,$_.CanonicalName)  }  $pathTab = @{}  $hss.StorageDeviceInfo.MultipathInfo.Lun | %{    $pathState = @($_.Path | Group-Object -Property PathState |    where {$_.Name -eq "active"} | Select -ExpandProperty Group)
    
        if($pathTab.ContainsKey($_.Lun)){      $pathTab[$_.Lun] += $pathState.Count    }    else{      $pathTab.Add($lunTab[$_.Lun],$pathState.Count)    }  }
    
      foreach($mount in ($hss.FileSystemVolumeInfo.MountInfo | where {$_.Volume.Type -eq "VMFS"})){    $mount.Volume.Extent |    Select @{N="VMHost";E={$esx.Name}},      @{N="Datastore";E={$mount.Volume.Name}},      @{N="LUN";E={$_.DiskName}},      @{N="Active Paths";E={$pathTab[$_.DiskName]}}  } } 
    
  • Second data store for the shared virtual machine

    IM thinking about to migrate my existing VMWare Server 2.x to VMWare Workstation 8.

    My server is a machine selfbuild W2k8 with Core i7, 24 GB of ram, an SSD for the OS and two 500 GB HDDs. Due to performance issues an VM is placed on a separate HARD disk. I want to keep the configuration like this.

    At the time where I'm using a trial version of WS8 and may not know how to set up a second datastore for shared virtual machines on a second hard drive. Is this possible at all? Or y at - it an alternative to solve this problem? Creation of a RAID0, isn't my favorite option.

    Thanks for the reply.

    It is not implemented by using a second data store for shared virtual computers.

    Workaround solution:
    Suppose you have the original data store C:\vms and a second D:\vms

    then create a junction for each directory in D:\vms like that

    C:\vms\VM1 D:\vms\VM1 junction.exe

    C:\vms\VM2 D:\vms\VM2 junction.exe
    ....

    then the vmx files from doubleclick in C:\vms\VM1 and configure the virtual machine to share.

    On Windows 7, use mklink.exe instead
    On Linux hosts use ln

  • How to find the e-mail address for my HP 6700? Printer shows E-Print connected.

    I am using the Forum to get a new code to the printer and the printer shows homepage that's on, but now I don't know how to find the e-mail address for my computer.

    Hello

    In the front of the printer, go to configuration. Locate and enter the Web Services. Aprove any step to activate the service... leave the system a few minutes to complete your registration, a page will be printed automatically with the code printer and directions to select the email address of hpeprint.com.

    Kind regards.

  • How can I get the list of data stores in a cluster data store?

    How can I get the list of data stores in a cluster data store? I mean the command line option.

    Hello

    by command line, you mean PowerCLI?

    If so, you can display data with this warehouses:

    Get-DatastoreCluster-name DSClustername | Get-Datastore

    Tim

    Edit: Moved the thread to the PowerCLI community

  • Why is 'Use different data stores for disks of BONE and View Composer persistent' grayed out?

    I installed 5 (cluster host 2) vsphere, vcenter 5 discover 5 and openfiler (iSCSI VSA) in vmware workstation 7.

    I am trying to simulate a tiered storage configuration and created three warehouses of shared data in order to separate the replica, the linked clones and persistent disk.

    However, when I create my bound clone pool I am able to select a specific data store for the replica and bound but clone the persistent disk option is grayed out.  See photos attached to the pool creation, storage, and network configuration.

    Has anyone any suggestions?

    Thank you!

    Yes, the use of the disc for operating system profiles require a linked clone pool.     The operating system will be on the clone, persistent disk will be a disc loaded end service that survive refreshes and redials, and then the replica will be reading only one copy of the master image.    The replica in general has in the IO and is almost always placed on the SSD or storage faster than you have and the persistent data disk is usually low IO.

  • How to find and replace data in fields of form in acrobat xi, its not allowing to do while trying, one

    How to find and replace data in fields of form in acrobat xi, its not allowing to do while trying, request adobe livecycle to settle. Help, please.

    Best way to do is the following:

    -Open the PDF in Acrobat.

    -Go to tools - form - form more Options - export data.

    -Save form data in an XML file somewhere on your system.

    -Open the XML file in a plain text editor (I recommend Notepad ++).

    -Let's say you want to replace all the years in dates "2013" to '2014 '. Do a global search & replace '2013-' to '2014' - (I added the dashboard in order to ensure that only the date fields are changed).

    -Save the XML file (maybe under a new name).

    -Go back to the PDF file and now go to tools - forms - more form Options - import data.

    -Select the modified XML file and import it.

    -Fact!

  • Issue of SDRS to vCloud Director after you add the new data store to the Cluster of DTS

    Hi people,

    We use vCloud Director 5.5 in a vSphere full 5.5 environment.

    We have several DTS Cluster in vSphere and connected to vCloud Director.

    Following problem.

    When I add a data store to a Cluster of DTS and connect this to the corresponding storage profile data store, the storage profile is not available to vCloud Director more.

    After removing the new store data in the cluster of DTS, the profile becomes available again.

    Any ideas?

    Concerning

    Jean

    How did you the storage profile associated with the data store?  via c# client or vSphere web client?

    If you did the wrong way (c#) there no storage class label appropriate against it.

    A data cluster store has the storage class who would have all preparations of data contained inside.

    I think that you should check the service class is associated properly in vSphere web client (before adding to the DS Cluster).  Once it displays correctly, and then add the data store to the cluster.

  • HA will only work if I share NFS data store in the cluster

    Hi all

    Please help me with my question below?

    HA work if I share NFS data store in the cluster? Even if if works is it advisable?

    Thank you

    Lucette

    Yes, but a VM restarts on a host within the same cluster VMware only.

  • How can I select a different data store for vm swap files?

    In Esxi 5.5, how can set up a separate data for the swapsfiles store.

    5.5, default will be in the same data store

  • How to select different data store for the snapshot

    Hello

    I connected with two data store ESXi 4 server. First data store is a local raid-5 HD and the second data store is a netgear NFS nas.

    virtual machines are stored on the local data store. I want to archivie snapshot for my virtual machine to use the second (nas NFS) data store. I tried to snapcho, but the disk data store is used is always the local.

    can I select a different data store to store the snapshot files?

    Thank you

    http://KB.VMware.com/kb/1002929 could help...

    / Rubeck

  • How to specify what data store for use with OVFtool

    It drives me crazy! Way that you specify what data store to use when there are several?

    I ran exactly the same command on a box that had a data store and it worked fine (as expected). He created the folder of the virtual machine to the root of the SD and then pulled on the virtual machine of the FVO. However, with multiple it just says not: no datstore target specified. I tried 1 million combinations of?-ds = with hooks, without. It is said to be sometimes found in the inventory. I guess that's looking for a folder. But this cannot be so difficult?

    C:\Program VMware OVF tool & gt; ovftool P:\Downloads\PanoManagerVM-2.8.0

    -ovf\panomanager.ovf ' vi: / / [email protected].

    Source OVF opening: P:\Downloads\PanoManagerVM-2.8.0-ovf\panomanager.ovf

    ATTENTION: No manifest file

    Please enter the login information for the target vi://192.168.1.5/

    User name: root

    Password: *.

    Target of opening VI: vi: / / [email protected]/

    Error: No data store target specified

    Data warehouses is on target:

    SAN storage

    storage1

    something like

    OVFTool - ds = "SAN Storage" source target

    should work

    If you write ovftool - help you can see the full syntax.

    Eske

Maybe you are looking for

  • How can I remove a distracting green icon on the search bar?

    Please find attached image of distracting green icon in the search bar. I saw 'elegant' installation options and editing of CSS scripts, but these make everyone feel as very complicated for a relatively simple problem; not to mention other users look

  • "Never include as Top Site" does not

    OS X 10.11.4 Safari 9.1 On a page of Top Sites, the selection of the X - box for 'Never include as Top Site' does not work. The same top site of the unwanted page reappears even if I have previously deselected it. Is there a way to fix this? I guess

  • How can I connect to the internet when theres no internet connection click on?

    When I click on Control Panel, then I click on network connections, usually theres things that you can click on to connect to the right, well internet theres none on mine how do?

  • Windows difender is corrupt. does not

    Windows Defender does not work on my pc with vista. I am unable to turn on because it shows the error by clicking turn on. is it necessary to activate for the bases of security of microsoft (anti virus) to work? Help, please

  • List item for the item database

    Hi allI use a list item to fill a column of data, but I am not able to do. If I change to a database element not it works perfectly. Can anyone tell me is there a problem with the column of point and the database of list I use.My code is,DECLARERG_NA