VMware Cloud Community
hum_mike
Contributor
Contributor

Load Balancing HBA LUN's

All,

I would like a powershell script that could help automate Load-Balancing the HBA Paths on my ESX host in a cluster. Each host has 2 HBA's and is connected via Fiber Channel back to an active-active array. The Same LUNS are assigned to each HBA in the esx host. We would like to use the fixed policy, but alternate the preferred paths between the 2 HBA's.

For example. We have several luns. Lets say LUN15, 16, 17, and 18. I would like for LUN15 and 17 to have a preferred path of VMHBA1 and LUN16 and 18 to have a preferred path of VMHBA2 and so on. It would be nice to have a powershell script that could do this cluster wide.

Does anybody know of a solution to this?

0 Kudos
8 Replies
mcowger
Immortal
Immortal

What kind of array (Model)






--Matt

VCP, vExpert, Unix Geek

--Matt VCDX #52 blog.cowger.us
0 Kudos
admin
Immortal
Immortal

Have you had a look at Rob Mokkink's loadbalance script?

=====

Carter Shanklin

Read the PowerCLI Blog
[Follow me on Twitter|http://twitter.com/cshanklin]

0 Kudos
hum_mike
Contributor
Contributor

Symmetrix

0 Kudos
hum_mike
Contributor
Contributor

Thank C_Shanklin, that is exactly what I was looking for.

0 Kudos
mcowger
Immortal
Immortal

If you have a symm, why not use roundrobin everywhere? It works fantastically well on our clusters. We have a couple hundred ESX servers against various Symms with RR and its nearly perfect balancing.






--Matt

VCP, vExpert, Unix Geek

--Matt VCDX #52 blog.cowger.us
0 Kudos
AllanChristians
Enthusiast
Enthusiast

Hi

I have modified a powershell script for this, look at my blog.

/Allan

/Allan http://doitsmarter.blogspot.com
0 Kudos
hum_mike
Contributor
Contributor

c_shanklin,

The script has worked perfect for me over the past 6 months or so. However, now we have upgraded to 4.0 and this script no longer works. Any ideas or if this script has been modified to work with 4.0 U1 host?

0 Kudos
dawoo
Enthusiast
Enthusiast

Hi.

Just to mention the link to Rob Mokkink's script is no longer available on the URL.

Thanks,

Darren.

(@dawoo)

10 Print "It's all about the Nerdknobs" , 20 GOTO http://blog.vmote.net/
0 Kudos