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
Steve created a script for loadbalancing paths, check this topic:
http://communities.vmware.com/message/598649
Duncan
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.
Yes I wish to configure fixe prefered path for a lun on each esx server.
Do you have a script to do that ?
Regards
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
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.
Steve created a script for loadbalancing paths, check this topic:
http://communities.vmware.com/message/598649
Duncan