[PATCH 13/13] docs: nvme-multipath: Add FC-NVMe marginal state
Jesse Taube <[email protected]>
| Newsgroups | org.kernel.vger.linux-block,org.infradead.lists.linux-nvme,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-scsi |
|---|---|
| Message-ID | <[email protected]> |
Adds documentation for the new marginal state for NVMe over Fibre Channel. Documents how to check and reset the state, as well as a description of how it affects multipath policies. Signed-off-by: Jesse Taube <[email protected]> --- Documentation/admin-guide/nvme-multipath.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/admin-guide/nvme-multipath.rst b/Documentation/admin-guide/nvme-multipath.rst index 97ca1ccef459..8df4235d4d10 100644 --- a/Documentation/admin-guide/nvme-multipath.rst +++ b/Documentation/admin-guide/nvme-multipath.rst @@ -31,6 +31,23 @@ To set the desired policy (e.g., round-robin), use one of the following methods: 1. echo -n "round-robin" > /sys/module/nvme_core/parameters/iopolicy 2. or add the "nvme_core.iopolicy=round-robin" to cmdline. +FC-NVMe +---- +On NVMe over Fibre Channel there is an additional state called `marginal` +All policies will treat this path as offline and will not use it unless +all other paths are marginal or unavailable. In that case, the policy will +select the best path based on the policy. + +To see the current path state, use one of the following methods: + 1. cat /sys/class/fc_host/host*/device/rport-*/fc_remote_ports/rport-*/port_state + 2. cat /sys/devices/virtual/nvme-subsystem/nvme-subsys*/nvme*/state +To reset a path to online use: + 1. echo "Online" > /sys/class/fc_host/host*/device/rport-*/fc_remote_ports/rport-*/port_state + +The marginal state is caused by a +FPIN-LI (Fabric Performance Impact Notification - Link Impact) event. +FPIN-LI event counters can be seen with: + 1. cat /sys/class/fc_host/host*/statistics/fpin_li* NUMA ---- -- 2.54.0