VMware Cloud Community
zemotard
Hot Shot
Hot Shot
Jump to solution

How to configure multipathing in a farm ?

Hi I belong 3 ESX Host. Each lun is in multipath mode (8 paths by lun)

Is it possible ton configure each lun once for all ESX server in order to avoid

to configure each lun path on each ESX Host ?

Regards

Best Regards If this information is useful for you, please consider awarding points for "Correct" or "Helpful".
0 Kudos
1 Solution

Accepted Solutions
depping
Leadership
Leadership
Jump to solution

Steve created a script for loadbalancing paths, check this topic:

http://communities.vmware.com/message/598649

Duncan

View solution in original post

0 Kudos
5 Replies
Texiwill
Leadership
Leadership
Jump to solution

Hello,

ESX by default will multipath if more than one path is available per LUN. THis is the zoning and presentation of your SAN Fabric.

Are you wanting to configure MRU vs Fixed mode inside ESX per LUN? That is a slightly different question. I believe you will have to configure this per node, but can be done from the command line.

Best regards,

Edward L. Haletky, author of the forthcoming 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', publishing January 2008, (c) 2008 Pearson Education.

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
zemotard
Hot Shot
Hot Shot
Jump to solution

Yes I wish to configure fixe prefered path for a lun on each esx server.

Do you have a script to do that ?

Regards

Best Regards If this information is useful for you, please consider awarding points for "Correct" or "Helpful".
0 Kudos
kapplah
Enthusiast
Enthusiast
Jump to solution

Hi there,

have a look at the esxcfg-mpath cmd application. There are some examples available when you run the command without parms. There's a manpage, too.

regards,

Alex

0 Kudos
Texiwill
Leadership
Leadership
Jump to solution

Hello,

You would need to write your own script unfortunately. The esxcfg-mpath is the proper command but you may also need esxcfg-vmhbadev as well. A LUN may not show up across servers as the same VMHBA device. No requirement for this within ESX. You will have to map the Simple Name (the name you gave the LUN) to VMHBA device so that you can use esxcfg-mpath to setup the appropriate mode.

grep vmhba /etc/vmware/esx.conf

The above will get you the mapping of PCI device to vmhbaX device name.

esxcfg-vmhbadevs -q

The above will get you mappings of the /dev name to vmhba name. Besure to use remote disks and not local disks.

ls /vmfs/disks

will map vmhba name to vml name.

esxcfg-mpath can now use the vml name.

Write a script around this logic and you will be fine.

Best regards,

Edward L. Haletky, author of the forthcoming 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', publishing January 2008, (c) 2008 Pearson Education.

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
depping
Leadership
Leadership
Jump to solution

Steve created a script for loadbalancing paths, check this topic:

http://communities.vmware.com/message/598649

Duncan

0 Kudos