You can set path ranks using the following esxcli commands.
# esxcli storage nmp psp generic pathconfig get -p <vmhba pathname> # esxcli storage nmp psp generic pathconfig set -p <vmhba Pathname> -c rank=<Rank Number>This function is currently limited to the CLI. You cannot set ranks to individual paths using the GUI.
Path SelectionVMW_PSP_MRU will go through the path group states in the following order:
Active,
Active_UO and
Standby, and pick a path that has the highest rank. As a result, as long as there are paths in the
Active path group, a path that has the highest rank in the
Active path group is selected. If there are no paths in the
Active path group, then the algorithm searches the
Active_UO path group and the
Standby path group in that order.
Path FailoverDuring failover, if there are no
Active paths available, VMW_PSP_MRU attempts to activate a path that has the highest rank in ACTIVE_UO state. If no paths are available in the
Active_UO state, VMW_PSP_MRU attemps to select a
Standby path that has a highest rank for activation.
Path FailbackVMW_PSP_MRU fail-backs to a better ranked path or path with a better state when such a path becomes available. This is allowed because VMW_PSP_MRU will never fail-back to a path which requires activation, such as
Active to
Standby, or
Active to
Active_UO.
Array SupportVMW_PSP_MRU works for both
Active/Active and
Active/Passive arrays.
Known IssuesWhen paths are unclaimed by running esxcli claim rules, the path ranking information is lost. Run the command
esxcfg-mpath -r to restore the path ranking information.
If you change the path ranking for a path, all paths are marked as non-current and the current path is marked as
none if one of the following conditions is met:
- You set the rank of the path you are changing higher than the rank of the current path.
- You reduce the current path's rank.
On the next I/O, the path with the highest rank is selected and the current path is updated.