Skip to content

Commit

Permalink
udev-rules: set ctrl_loss_tmo to -1 for ONTAP NVMe/TCP
Browse files Browse the repository at this point in the history
Setting ctrl_loss_tmo to -1 for ONTAP NVMe/TCP controllers would enable
indefinite reconnect attempts during a path loss and help avoid purging
the path on the host, which otherwise may lead to mounted fs read-only
behavior. So add a rule towards enabling the same.

Signed-off-by: Martin George <[email protected]>
  • Loading branch information
martin-gpy authored and igaw committed Oct 4, 2023
1 parent bd2f882 commit 0782167
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nvmf-autoconnect/udev-rules/71-nvmf-iopolicy-netapp.rules.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Enable round-robin for NetApp ONTAP and NetApp E-Series
ACTION=="add", SUBSYSTEM=="nvme-subsystem", ATTR{subsystype}=="nvm", ATTR{model}=="NetApp ONTAP Controller", ATTR{iopolicy}="round-robin"
ACTION=="add", SUBSYSTEM=="nvme-subsystem", ATTR{subsystype}=="nvm", ATTR{model}=="NetApp E-Series", ATTR{iopolicy}="round-robin"

# Set ctrl_loss_tmo to -1 for NetApp ONTAP NVMe/TCP
ACTION!="remove", SUBSYSTEM=="nvme", KERNEL=="nvme*", ATTR{transport}=="tcp", ATTR{model}=="NetApp ONTAP Controller", ATTR{ctrl_loss_tmo}="-1"

0 comments on commit 0782167

Please sign in to comment.