Pages: [1]
Print
Author Topic: Number of VMs per datastore  (Read 473 times)
KristianW
Newbie
*
Posts: 14


View Profile
« on: March 09, 2010, 04:15:22 AM »

I have had a small discussion with HP, where they accused me of having to many VMs on some datastores, and therefor making the SAN connection getting timeouts and ESX hosts losing connection to SAN. This got me google'ing, to find how many VMs I have on each datastore.

I found a small oneliner to give you an indication on how many VMs actually run on your datastores.

Code:
Get-Datastore | select Name, @{N="NumVM";E={@($_ | Get-VM).Count}} | Sort Name

For documentation - just export the list via "Export-csv"

Turns out I have less than what HP recommends (16 Vms per LUN), and HP is pulling their hair figuring out what is going wrong.
Logged
esarakaitis
Administrator
Full Member
*****
Posts: 241


8223109 sack57@hotmail.com littleking57 rootinfortwayne
View Profile WWW Email
« Reply #1 on: March 09, 2010, 07:33:26 AM »

good script, thanks a lot!
Logged
Pages: [1]
Print
Jump to: