Multipath I/O Policy Selector: ESXi, Linux, Windows

This multipath I/O policy selector recommends a path policy for VMware ESXi, Linux or Windows from the operating system and the way your array handles paths. It shows why, lists the alternatives and gives an example configuration to adapt. Use it as a starting point before you read your array vendor’s host settings guide, which always has the last word.

Result

The result updates automatically as you change any input.

Formula and worked steps
Formulas used
  • ESXi: MRU is the default for active/passive and for VMW_SATP_ALUA; Fixed is the default for active/active; Round Robin is the native load-balancing policy
  • Linux: multibus (all paths in one group), failover (one path per group), group_by_prio with prio alua for ALUA; selector default service-time 0
  • Windows MPIO: Fail Over Only, Round Robin, Round Robin with Subset, Least Queue Depth, Weighted Paths, Least Blocks
Assumptions
  • These are general guidelines. The array vendor's documentation and compatibility guide always override them, and some ALUA arrays require a specific ESXi policy.
  • Windows recommendations assume the Microsoft DSM; an array vendor DSM has its own rules.
  • Round Robin tuning values (such as the ESXi IOPS limit) are vendor-specific; none are built in.
References

What is multipath I/O?

Multipath I/O gives a host more than one route to a LUN, usually through two HBAs, two fabrics and several array ports. The host’s multipath software decides which route each I/O takes, and moves I/O to another route when one fails.

Path behaviour of arrays

Active/active arrays accept I/O to a LUN on all their paths equally. Active/passive arrays serve a LUN through one controller and keep the other as standby. ALUA arrays, asymmetric logical unit access, accept I/O on every path but report some paths as optimized, those to the controller that owns the LUN, and others as non-optimized.

Policies

A path policy is the rule for choosing among usable paths. Failover uses one path and switches on failure. Round robin rotates through paths. Other policies pick by queue length, service time or weight. The right one depends on what the array can do.

Vendor precedence

Array vendors test specific policies and publish settings for each OS version. Where those differ from general guidance, the vendor wins, and some ESXi arrays are listed in the VMware Compatibility Guide with a required policy.

How the multipath I/O policy selector works

Choose the operating system, the array type and whether your vendor supports load balancing across paths. The tool applies the documented defaults and common practice for that combination.

VMware ESXi

ESXi’s native multipathing offers three policies. Fixed uses a preferred path and is the default for active/active arrays. Most Recently Used, MRU, stays on the path it last used and is the default for active/passive arrays and for devices claimed by the ALUA plugin. Round Robin rotates across paths and is the only native policy that load balances. For ALUA arrays the tool suggests Round Robin where the vendor supports it and otherwise the MRU default.

Linux device-mapper multipath

The key settings are path_grouping_policy and path_selector. Multibus puts all paths in one group and suits active/active. Failover gives each path its own group and suits active/passive. Group_by_prio makes one group per priority, and with prio alua and hardware_handler “1 alua” it keeps I/O on the optimized paths. The selector can be service-time 0, which is the default, queue-length 0 or round-robin 0.

Windows MPIO

The Microsoft DSM supports Fail Over Only, Round Robin, Round Robin with Subset, Least Queue Depth, Weighted Paths and Least Blocks. For active/active and ALUA arrays the tool suggests Round Robin or Least Queue Depth. For active/passive it suggests Fail Over Only. If the array vendor ships its own DSM, follow its documentation.

Worked example: an ALUA array

Take a Linux host with an ALUA array. The selector returns group_by_prio, prio alua, hardware_handler “1 alua” and the service-time selector, with failback immediate, and shows a device stanza for multipath.conf. On ESXi with the same array and a vendor that supports load balancing, it suggests Round Robin, notes that MRU is the default for the ALUA plugin and gives the esxcli command to change the default for the plugin.

Why it matters for SAN and storage admins

Multipath settings fail in a way that looks like success. Every path policy keeps the LUN online. A wrong one, such as Fixed on a path to the non-optimized controller, merely makes it slower, adds controller cross-traffic or leaves half your bandwidth idle. The multipath I/O policy selector gives you the reasoning for a policy, so you can check it against what the array and the host actually do.

It also helps when something has changed. After a firmware update or a move from one array to another, the old policy may no longer fit. Running through the selector again shows where the new combination differs.

Use it when you:

  • Build a new host or template and need a defensible default.
  • Review hosts that were set up by someone else.
  • Move from an active/passive to an ALUA array.
  • Write the standard settings for a runbook.

Best practices and common mistakes

  • Start from the array vendor’s published settings for your OS version, and use this tool to understand them.
  • Check that the intended policy is applied to every device, not only to new ones.
  • Verify that the paths you expect are active, and test a path failure before go-live.
  • Keep Round Robin tuning values at the vendor’s figure. Defaults differ from vendor recommendations.
  • Use the same setting across a cluster, so a VM that moves between hosts sees the same behaviour.
  • Re-test after array firmware upgrades, which can change path reporting.

A frequent mistake is to set Round Robin on an active/passive array because it sounds better. The standby paths cannot carry I/O, and the host wastes effort probing them.

FAQs

What is the default path policy for an ALUA array on ESXi?

Most Recently Used (VMW_PSP_MRU), because it is the default for devices claimed by VMW_SATP_ALUA. Many vendors recommend Round Robin, so follow your array’s guide.

Which multipath settings does Linux use for ALUA?

path_grouping_policy group_by_prio with prio alua and hardware_handler “1 alua”, so active/optimized paths form the preferred group.

Is Round Robin always better than failover?

No. Round Robin only helps where the array can serve I/O on several paths. On an active/passive array the standby paths cannot take I/O, so failover is correct.

Next, try the queue depth calculator, the HBA queue depth calculator and the SAN fan-out ratio calculator, or browse the full list of storage calculators.