Health data warehouses

Friends, I have a doubt.

Here where I work, we have an IBM IXV storage with several disks and LUNs, a group of 10 servers ESXi 5.5 and 10 stores of data, to monitor these data storage see that some of them are in State 0 health and red color, other warehouses of data with 26 in yellow color.

One of these data stores, has 26TB in size, is in good health 0 and has 40 virtual machines, virtual machines is one of these databases, Debian operating system with PostgreSQL, with 4 VMDK, a 1.4 TB being, at various times of the day, the VM database is very slow, sometimes taking five minutes to process a request with this application is very slow.

I know that best practices recommend that a DBMS has its own disk, a single LUNS or disks even configured as RDMS, but the will of slow database server is actually the fact linked vm be on a store of data with 39 other virtual machines?

How should we interpret the State of health of a store of data in red, while the tab alerts, VMware does not show anything?

I want to better understand how this health surveillance has on Vmware.

Thank you!

My brother, I'm not 100% if will give notable performances if you dedicate a RAW LUN or the data store to your VM database because I don't know how your storage array... If you create a new logical unit number to your VM database that shares the same storage pool (and the physical disks) there will always be a simultaneous access to the same resources and for this reason you may need to create a pool for your database server.

Tags: VMware

Similar Questions

  • The E-mail Message body dynamics PowerShell/PowerCLI with data warehouses

    Hello what follows is related to this e-mail, but I'm stuck at the rounding of numbers

    The E-mail Message body dynamics PowerShell/PowerCLI

    I get an email with the following information:

    Datastore HealthCheck vCenter

    Available data store space
    UsedGB data store                                 Free GB                                 Perc Free
    Name1 273.30078125                         274.25                                    99%
    name2 273.30078125                         274.25                                    99%
    Name3 268.466796875                         274.25                                    99%
    name4 273.30078125                         274.25                                    99%

    Three things I'm stuck: the value UsedGB, woud have first with only two decimal points instead of having 273.30078125, nice to have 273.30. Secondly I do not receive the right percentage. Third: How can I sort the free Perf in the percentage values lowest for the greater? Thanks for your help

    Code:

    $msg. Object = "vCenter Datastore health CompanyvCenter.
    $array0 = @)
    $array1 = @)
    $array2 = @)
    Start-sleep 1
    to connect-VIServer $vcserver
    $array0 += get-Datastore. Select-Object - ExpandProperty name
    $array1 += get-Datastore. Select-Object - ExpandProperty FreeSpaceGB
    $array2 = get-Datastore. Select-Object - ExpandProperty CapacityGB
    $UsedSpace = [math]: tour (($array2 [$i]-$array1[$i]), 2)
    $PercFree = [math]: Round ((100 * $array1 [$i] / $array2[$i]), 0)
    $String0 = ' $PercFree$ %.
    $i = 0
    $j = 0
    # Header
    $msg. Body += "< FONT COLOR = black > Datastore HealthCheck CompanyvCenter < / POLICE > < BR > < BR >".
    # Datastore header
    $msg. Body += "< B > < FONT COLOR = black > Datastore space available < / POLICE > < / b > < BR >".
    $msg. Body += "< B > < COLOR of FONT = black > Datastore < / POLICE > < / b > < B > < FONT COLOR = black > UsedGB < / POLICE > < / b > '."
    < B > < FONT COLOR = black > free GB < / FONT > < / b > '
    "< B > < FONT COLOR = black > free Perc < / POLICE > < /B >.
    # Datasores
    0. ($array0.) Count-1) | %{
    $msg. Body += "< BR > < DO COLOR = Black > ' + $array0 [$_]
    $msg. Body += "< / FONT > < FONT COLOR = Black >" + [math]: tour (($array2 [$_]-$array1[$_]), 2)
    #$msg. Body += ' < / POLICE > < DO COLOR = Black > ' + $array1 [$_]
    $msg. Body += ' < / POLICE > < COLOR of POLICE black = > ' + $array2 [$_] + ' < / POLICE >.
    #$msg. Body += "< / FONT > < FONT COLOR = black >" + [math]: tour (($array2 [$_]-$array1[$_]), 2) + "< station >"
    $msg. {"Body +=" "< ARE COLOR = Black >" + [math]: round ((100 * $array1 [$i] / $array2 [$i]), 0) + "$Percent" + "< / FONT > < BR >"}
    $msg. Attachments.Add ($att1)
    $msg. IsBodyHTML = $true
    $smtp. Send ($MSG)
    $att1. Dispose()
    Disconnect-VIServer $vcserver - confirm: $false

    #Here configure your paraneters

    $SMTPServer = "Exchange".

    $MailSubject = 'vCenter Datastore health CompanyvCenter.

    $Email = "[email protected]".

    function {Set-AlternatingCSSClasses

    (param

    [string] $HTMLFragment,

    [string] $CSSEvenClass,

    [string] $CssOddClass

    )

    [xml] $xml = $HTMLFragment

    $table = $xml. SelectSingleNode ('table')

    $classname = $CSSOddClass

    {foreach ($tr in $table.tr)}

    If ($classname - eq $CSSEvenClass) {$classname = $CssOddClass}

    else {$classname = $CSSEvenClass}

    $class = $xml. CreateAttribute ('class')

    $class.value = $classname

    $tr.attributes.append ($class) | Out-null

    }

    $xml.innerxml | out-string

    }

    Function report-Datastore {}

    $output = @)

    Get-Datastore. % {

    $props = [ordered]@{'Name'=$_. Name;

    "UsedSpace' = [math]: Round (($_.)) CapacityGB - $_. (FreeSpaceGB), 2);

    "PercFree" = [math]: Round ((100 * ($_.))) FreeSpaceGB / $_. {(CapacityGB)), 0)}

    $output += new-Object - TypeName PSCUstomObject-property $props

    }

    $output

    }

    "$style = @".

    "@

    #Connect to Vcenter

    SE connect-VIServer $vcserver

    # Trnasform the object in the HTML

    $html_DS = report-Datastore.

    Sort-Object PercFree |

    ConvertTo-HTML-Fragment |

    Out-string.

    Game-AlternatingCSSClasses - CSSEvenClass 'even' - CssOddClass 'odd '.

    $html_DS ="

    Data warehouses

    $html_DS ".

    $params = @{'head' ='vCenter Datastore health CompanyvCenter$style ';

    ««PreContent =»

    HealthCheck CompanyvCenter data store

    ";

    "PostContent' = $html_DS}

    # Send email

    Send-MailMessage-to $Email - subject $MailSubject-BodyAsHtml (ConvertTo-HTML @params) body - SmtpServer $SMTPServer

    # Disconnect Vcenter

    Disconnect-VIServer $vcserver - confirm: $false

  • ESXi 4.1 change the selection of trace on data warehouses

    ESXi 4.1, I have a couple of data warehouses that were not configured correctly. The selection of the path is set to fixed, while the other data stores have alternate-control storage IO. I'm looking for the less risky/disruptive way to change the configuration of these data stores. There are 15 ESX hosts.

    When to change the configuration of the data store is all for example conditions pre move VMs in another data store, stop the virtual machines etc.. Y at - it any disturbance to the ESX host?

    Hello

    Changing paths is not disruptive and can be done online, as long as takes care of the storage and SAN network is in good health.

    Validate it seems that some are on Round Robin and I presume that it is on the same storage array.

    You can do this by running a PowerCli script to modify the path selection: Home

    I don't have the scrip to activate SOIC

    Concerning

    Please allow points to useful/correct answers

  • How to add manual iOS app health data?

    I use Apple Watch series 1 with Watch OS 3.

    Very useful for me has been adding data to guide health app. Now with OS3 shows, I couldn't find these options.

    Can someone help me in this case?

    Thank you, Michael

    Hi Michael

    To manually add data in the application of health:

    • On your iPhone, open the application of health.
    • Click on the data the health tab.
      • If you are not initially on the main screen of healthcare data, type on the "< health data ' link (top-right) to get back to it.
    • Select the category of data that you want to add:
      • Activity, Mindfulness, Nutrition, sleep, measurements of the body, health, reproductive health, results, vital records.
    • On the next screen, tap the metric you want to add:
      • Parameters that already contain data for the current week are displayed in the box format, with current totals.
      • Others are listed below in the list format, under "No. saved data.
      • Whether in box form or list form, tap to select the metric.
      • For example: If you chose healthcare, you can then select the blood sugar.
    • On the next screen, press the "+" (top right), then add your data and press Add (top-right) when finished.

    More information:

    Use the app on your iPhone or iPod touch - Apple Support health

  • Health data and portfolio lost iPhone 6 s

    Ugh, it's a mess. It started yesterday when I did my workouts and noticed that the health App missing data.

    This will be long, so here's fair WARNING

    We're going back to Friday.

    I use a chest strap HR monitor Tickr Wahoo and their application for the registration of my workouts. This in turn is saved to the HealthKit app on my phone. and THIS pushes the calories burned in my LoseIT! App to help me count my daily calories against calories burned. It worked all fine until yesterday.

    Saturday - I am for a car show and had no place to stuff my phone in the BRA, which. Somehow, it was not "locked" and the icons were in this clear mode fussing. Oops - so I cancelled that and thought that I can I have accidentally deleted one or two applications in the process. Boob-delete! take it as you want

    Yes, because I backed up my phone before we left, when I came home I restored it. No problem. Done this before without a problem. EVERYTHING is back. My credit in the wallet cards, EVERYTHING.

    Fast forward to Wednesday (yesterday).

    Do you have my training. When finished the app request if I want to record. I say Yes and it records the application of health.

    I opened my application health and he's NOT here. In addition to this, ALL the stuff on my "dashboard" is NOT how I got it. Everything seems to have gone for the past year. The name of God.

    I'm going to the LoseIT! App to save my calories eaten breakfast and notice that the info of the workout is not there. Ugh. I quit the app. I quit all applications and review LoseIt. Nada. I open the Wahoo fitness app and send the info to training to lose it and it said that the workout is here. No, it isn't. I do this several times when checking the settings in all applications until I'm in some crazy circle of * that Dante had not imagined.

    I left all. do a hard reboot and check again. This circle of * is becoming more demonic. I recovered my health application for my taste and manually imported my workout data to LoseIt.

    I give today to see if maybe it was just a glitch. Of course, it is not a problem.

    So I come here and start searching. For the life of me I can't find the thread, but I found one where it has been dated earlier this year and one who has answered the OP said to restore the phone from a backup. OK I can do it again and we'll see what happens.

    Kill me. Just kill me now and save me from this endless loop of data loss!

    When I restore the phone Saturday morning settings, NOTHING else to lose 2 workouts in the application of Wahoo (fine I can live with that) but now, unlike the restaurant Saturday night crept, my portfolio data are all parties.

    This circle of * now has to gremlins who live there make more impossible things.

    On top of this restoration, he gave me grief about unlocking it due to a code and then when he finally decided to unblock, I had this white screen where I had to slide to unlock. I put in my access code and then it has been upgraded. I let him finish connect to iCloud and all that good stuff.

    My wallet is always empty.

    Health app is still what it feels like.

    I shouldn't have started this nonsense of restoration. I made this twice this morning without success.

    Restore database could be corrupted?

    Should I try wiping the phone completely and then restoring the database?

    I want to wait answers here before I put my new card info. Some cards are easy and some live *. I tried a card I know is free of grief in the hope it would be 'pushing' the info in there and do everything back, but of course that didn't happen AND he told me he can't add to the card and I need to communicate with the transmitter.

    So, help me or kill me, but I don't want to go back to that circle of * new today!

    In the application of health data are saved only if your backup is encrypted. iCloud back ups are. If you use iTunes to back up, you must explicitly check to check and choose a password.

  • Health data

    I use the Apple Watch and Garmin Vívofit 2 to monitor activities and data on health. How can I see all of the data stored in Apple health for a laptop? How to save historical data of health so that it is not lost when I change iOS devices or format devices (I'm not interested in saving the entire phone / device).

    Thanks a lot for your help in advance.

    Thank you

    Shishir

    Health data is backed up when you back up to iCloud or if you make an encrypted upward using iTunes.

    You can also export your data to a file that you can open with something like numbers or Excel. Tap on 'Health data' at the bottom of the health Tap "All" app Tap the share icon in the upper right.

    You can also use an application like QS access for the export of your data.

    All data that synchronizes to Garmin should be visible on the site Garmin Connect.

  • I'll spend 6-6 s how can I get my health data from the old to the new iPhone configure everything as a new? I don't want to restore from a previous backup. Thank you

    I just got my new iPhone 6s, until now, I had the iPhone 6.

    as I use the Apple Watch I like to keep my health data but do not want to restore the entire backup to have a "fresh" iPhone

    Any idea?

    Thank you

    The only way to restore the health data is to backup the old phone and restore it on the new phone. You must use iTunes backup with active encryption, or backup to iCloud.

  • Oracle Business Intelligence Data Warehouse Administration Console 11 g and Informatica PowerCenter and Guide of Installation PowerConnect adapters 9.6.1 for Linux x 86 (64-bit)

    Hi all

    I'm looking for full installation GUIDE for Oracle Business Intelligence Data Warehouse Console Administration 11 g and Informatica PowerCenter and PowerConnect 9.6.1 for Linux x 86 (64 bit) adapters. I just wonder is there any url that you can recommend for installation. Please advise.

    Looks like these are ask you.

    http://docs.Oracle.com/CD/E25054_01/fusionapps.1111/e16814/postinstsetup.htm

    http://ashrutp.blogspot.com.by/2014/01/Informatica-PowerCenter-and.html

    Informatica PowerCenter 9 Installation and Configuration Guide complete | Training of Informatica & tutorials

  • Need ideas for compare current Oracle EBS data against the data warehouse to establish data matches course.

    Hello, I am new to the Oracle Forum. I'm a BI developer and I need to compare data Oracle EBS in my organization with the data in the data warehouse to make sure they match. I am using Informatica for this process by pulling the two sources and comparing. Can someone give me a brief example to make this process or similar methods with Informatica and its transformations so that it can be useful. Thanks in advance. Let me know if you need more information about the process.

    Looks like you are trying to make a reconciliation process? That is you can have implemented BIAPPS (or something custom) and now I want to check your ETL? If this is the case then it's good enough for a test case - we usually start with senior level (actual numbers for each group of companies, for example), then a subset of other different queries for example as per a level in the hierarchy of the org, by position, dates etc.

    and much more expensive as the implement of OLIVIER

    I don't think there are many in the world that is more expensive than the implementation of OLIVIER!

  • Do we need data warehouse, if we only create dashboards and reports in obiee?

    Hello! I'm new to obiee.

    My organization has decided to build their reports and dashboards using obiee. I am involved in this mission, but I don't have in-depth knowledge he obiee.  My question is what do we need to have the installation of the data warehouse? Or I just need to just install obiee by the creation of a repository, and then by creating a data source in publisher bi and then create dashboards or reports?

    I'm confused too please help me in this regard. Please share any document or link where I can easily understand these things. Thank you

    Please share any document or link where I can easily understand these things. Thank you

    OBIEE is a software to run without a good understanding of its complex concepts. I would really recommend attending a training course, or at least a book (for example this or this). There are MANY items of general blog on OBIEE, many of which are of poor quality and are all step-by-step guides on how to do a particular task, without explaining the overall situation.

    If you want to use OBIEE and to make it a success, you have learned to understand the basics.

    To answer your question directly:

    -BI Publisher is not the same thing as OBIEE. It is a component of it (but also autonomous available). OBIEE makes data accessible through 'Dashboards' which is made up of 'Analysis', written in the answers tool. Dashboards can also contain content BI Publisher if you want

    -OBIEE can report against the many sources of different data, one or more data warehouse and transactional. Most of the OBIEE implementations that perform well are based against dedicated DW, but is not a mandatory condition.

    -If reports against a DW real or not, when you build the repository OBIEE you build a "virtual" data warehouse, in other words, you dimensionally model all your business in one data set of logic diagrams in Star.

  • Create schemas for data warehouse for Reporting with Oracle XE

    It is possible to import home charger with the Oracle XE database and dw?

    I get this error ORA-00439: feature not enabled not: progress of replication in the log of the CIM.

    I saw that the database, we do not have have the feature "advanced replication."

    SQL> select * from v $ option where parameter = 'Advanced replication';
    
    
    PARAMETER
    -------------------------------------------------- --------------
    VALUE
    -------------------------------------------------- --------------
    advanced replication
    FALSE
    
    
    

    Journal of the CIM:

    Mon Feb 23 14:16 BRT 2015 1424711760686 atg.cim.database.dbsetup.CimDBJobManager module of high level of information for Reporting data warehouse Datasource list page: domain controllers. DW, ARF. DW.base, ARF. DW. InternalUsers, Store.Storefront

    Info my Feb 23 14:16:05 BRT 2015 1424711765012 atg.cim.database.dbsetup.CimDBJobManager 0 0 imports has not been executed.

    Info my Feb 23 14:16:05 BRT 2015 1424711765192 atg.cim.database.dbsetup.CimDBJobManager list of module level for Datasource Reporting charger: DafEar.Admin, DCS. DW, DCS. PublishingAgent, ARF.base, Store.EStore, Store.EStore.International

    Info my Feb 23 14:16:05 BRT 2015 1424711765733 atg.cim.database.dbsetup.CimDBJobManager 1 1 imports has not been executed.

    Info my Feb 23 14:16:05 BRT 2015 1424711765953 atg.cim.database.dbsetup.CimDBJobManager list of top level for Datasource Publishing module: DCS - UI. Versioned, BIZUI, PubPortlet, DafEar.admin, DCS - UI. SiteAdmin.Versioned, SiteAdmin.Versioned, DCS. Versioned, DCS - UI, Store.EStore.Versioned, Store.Storefront, DAF. Endeca.Index.Versioned, DCS. Endeca.Index.Versioned, ARF.base, DCS. Endeca.Index.SKUIndexing, Store.EStore.International.Versioned, Store.Mobile, Store.Mobile.Versioned, Store.Endeca.International, Store.KnowledgeBase.International, Portal.paf, Store.Storefront

    Info my Feb 23 14:16:11 BRT 2015 1424711771561 atg.cim.database.dbsetup.CimDBJobManager 65 65 imports has not been executed.

    Info my Feb 23 14:16:11 BRT 2015 1424711771722 atg.cim.database.dbsetup.CimDBJobManager list of top level for Datasource Production Core module: Store.EStore.International, DafEar.Admin, DPS, DSS, DCS. PublishingAgent, DCS. AbandonedOrderServices, DAF. Endeca.Index, DCS. Endeca.Index, Store.Endeca.Index, DAF. Endeca.Assembler, ARF.base, PublishingAgent, DCS. Endeca.Index.SKUIndexing,Store.Storefront,Store.EStore.International,Store.Recommendations,Store.Mobile,Store.Endeca.International,Store.Fluoroscope,Store.KnowledgeBase.International,Store.Mobile.Recommendations,Store.Mobile.International,Store.EStore,Store.Recommendations.International

    Info my Feb 23 14:16:12 1424711772473 2015 BRT atg.cim.database.dbsetup.CimDBJobManager 30 30 imports has not been executed.

    Info my Feb 23 14:16:19 BRT 2015 1424711779573 atg.cim.database.dbsetup.CimDBJobManager creating schema to the Reporting data warehouse data source

    Info my Feb 23 14:16:19 BRT 2015 1424711779653 atg.cim.database.dbsetup.CimDBJobManager list of top level for Datasource Reporting data warehouse module: domain controllers. DW, ARF. DW.base, ARF. DW. InternalUsers, Store.Storefront

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager DatabaseTask Create for Module ARF. DW.base, sql/db_components/oracle/arf_ddl.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager DatabaseTask Create for Module ARF. DW.base, sql/db_components/oracle/arf_view_ddl.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager DatabaseTask Create for Module ARF. DW.base, sql/db_components/oracle/arf_init.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager Create DatabaseTask Module domain controller. DW, sql/db_components/oracle/arf_dcs_ddl.sql

    Info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager Create DatabaseTask Module domain controller. DW, sql/db_components/oracle/arf_dcs_view_ddl.sql * info my Feb 23 14:16:19 BRT 2015 1424711779993 atg.cim.database.dbsetup.CimDBJobManager Create DatabaseTask Module domain controller. DW, sql/db_components/oracle/arf_dcs_init.sql

    Info my Feb 23 14:16:21 atg.cim.database.dbsetup.CimDBJobManager BRT 2015 1424711781085 found 2 of the 6 unrun previously of tasks for Datasource Reporting data warehouse

    Info my Feb 23 14:16:21 BRT 2015 1424711781085 atg.cim.database.dbsetup.CimDBJobManager 1 ARF. DW.base: sql/db_components/oracle/arf_view_ddl.sql

    Info my Feb 23 14:16:21 atg.cim.database.dbsetup.CimDBJobManager 1424711781085 2015 BRT 2 domain controllers. DW: sql/db_components/oracle/arf_dcs_view_ddl.sql

    Info my Feb 23 14:16:21 BRT 2015 1424711781085/atg/dynamo/dbsetup/job/DatabaseJobManager starting work of setting up data 1424711781085.

    Error my Feb 23 14:16:21 BRT 2015 1424711781516 /atg/dynamo/dbsetup/database/DatabaseOperationManager---java.sql.SQLException: ORA-00439: feature not enabled not: Advanced replication

    is there a solution?

    Hello

    We have not tested and certified with Oracle XE internally

    You must use an Oracle Enterprise Edition for Advanced Replication

    What version of Oracle trade you install, I can't say extract of newspaper, you've posted

    ++++

    Thank you

    Gareth

    Please indicate any update as "Good response" or "Useful answer" If this update help and answers your question, so that others can identify the correct/good update between the many updates.

  • Integration Hub - Eloqua of marketing data warehouse need?

    We believe that in the heart of Eloqua real company, it is often necessary to embrace existing platforms and architecture, there is great need for marketing middleware, meeting between IT and Marketing systems.

    Thus, we have developed the integration Marketing CleverTouch Hub, allowing users of Eloqua dynamically integrate their data warehouse and the existing COMPUTER infrastructure.

    Is there a requirement for such a product, providing business space?

    To date, we were delighted with enthusiasm of Eloqua and support, the company real thought, but we would like to get comments from the end-user and community partners also.

    http://bit.LY/gfbEiI

    YES!  Something is needed to fill this gap in enterprise-class reports.  Please tell us more.

  • E.M.P. 11.1.2 Essbase data warehouse Infrastructure

    Hello

    We'll implement Hyperion Planning 11.1.2 and we intend having the data warehouse, pushing the budget data for Hyperion Planning and have push Hyperion and retrieve data in Essbase.  It is, has she a sense also push and pull data from essbase in the data warehouse? To make it more clear, we take the budget data from the data warehouse, and he will push to Hyperion Planning.  Budgetary data provided will be also pushed Essbase data warehouse.  Hyperion Planning will then do the what if analysis and then push back to essbase with essbase here will push the hypothetical scenarios back to the manipulated data warehouse.

    Please let me know if the script need for clarification.

    Thank you

    I did something similar in the past the concept is perfectly feasible.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Removal of host SDR data warehouses

    Hello

    I have a scenario where I want to migrate to a host and the VM between two clusters. I unfortunately had a number of DTS data warehouses attached to the host, no virtual machine is running from these storages of data on this host... I'm trying to disassemble stores but as expected get the error indicating that data warehouses are part of a cluster of EIM.

    Is it possible to no disturbance delete Host data warehouses.

    Thank you

    Steve

    So, what you want, remove some cluster DTS data warehouses and pass a host of a DRS cluster to another's is?

    Try the following steps:

    (1) remove the DTS cluster data warehouses, just move the data store outside the cluster for DTS;

    (2) move the host to the new DRS cluster target, if you have virtual machines running on it and cannot put the host in maintenance mode, you will need disconnect host, remove from the inventory and then add the host again to the new cluster.

    (3) If you wish, add data warehouses to the DTS of the new DRS cluster cluster.

  • Collection of data warehouses in the Script of commissioning

    Hi all

    First of all, I want to say thank you for all the help provided in these communities.  It has been very valuable in recent years.

    I had the opportunity to work on a configuration script treated for over a week now and have got almost ready for release but got stuck on the type of a basic element - collection of data warehouses.

    The idea is that we can use this to launch several environments identical demand - ripe for automation!

    We get the number of machines required is in $clcount, and $dslist can be equal to something like this...

    NameFreeSpaceGBCapacityGB
    SAN-ds-33,399.115,119.75
    SAN-ds-41,275.265,119.75
    SAN-ds-2661.8135,119.75
    SAN-ds-5292.3425,119.75
    SAN-ds-8273.2045,119.75

    My method works as long as the number of machines is less than the number of available data warehouses, but fails if the number of machines exceeds available data warehouses.

    $resources = Get-Cluster "Compute 1"
    $OSSpec = Get-OSCustomizationSpec "Base 2012 R2"
    $dslist = get-datastore | where {$_.Name -match "SAN" -and $_.FreeSpaceGB -gt 200} | Sort FreeSpaceGB -Descending
    $folder = Get-Folder "Lab 2"
    $clcount = "17"
    $envn = "Lab2-"
    $OSSpec = $OSSpec | New-OSCustomizationSpec -Name Temp-Spec -Type NonPersistent -Confirm:$false
    foreach ($num in 1..$clcount){
        $suffix = "{0:D2}" -f $num
        $datastore = $dslist[$num-1]
        $OSSpec = $OSSpec | Set-OSCustomizationSpec -NamingScheme fixed -NamingPrefix "APPCL$suffix"
        New-VM -Name $envn"APPCL"$suffix -Template $template -OSCustomizationSpec $OSSpec -Location $folder -ResourcePool $resources -Datastore $datastore
    }
    ##End build Client Machines
    $OSSpec | Remove-OSCustomizationSpec -Confirm:$false
    
    

    I know it would be easy to solve with the clusters and SDR data store, but I believe that would always choose the store of data with the most free space and you can see our environment could be a little unbalanced, so I am trying to build in a little more intelligence in the distribution of these machines in data warehouses.

    Any help or pointers in the right direction would be greatly appreciated!

    Use % (remainder of division) to transform $num into something that will be less than the size of option:

    $datastore = $dslist [$num % $dslist.count]

    Then change the ascending sort.

Maybe you are looking for