Skip to content

Commit 2a45945

Browse files
sagigrimbergigaw
authored andcommitted
udev: Add custom udev rule for the Vast Data Block array
Vast Data array supports NVMe-oF block access, and it prefers the host to use round-robin path selection for performance benefits. In addition, disable the ctrl_loss_tmo in case of prolonged maintenance operations. Signed-off-by: Sagi Grimberg <[email protected]>
1 parent 555a4a8 commit 2a45945

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ udev_files = [
254254
'70-nvmf-autoconnect.rules',
255255
'70-nvmf-keys.rules',
256256
'71-nvmf-netapp.rules',
257+
'71-nvmf-vastdata.rules',
257258
]
258259

259260
foreach file : udev_files

nvme.spec.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ touch %{buildroot}@SYSCONFDIR@/nvme/hostid
3434
@UDEVRULESDIR@/70-nvmf-autoconnect.rules
3535
@UDEVRULESDIR@/70-nvmf-keys.rules
3636
@UDEVRULESDIR@/71-nvmf-netapp.rules
37+
@UDEVRULESDIR@/71-nvmf-vastdata.rules
3738
@DRACUTRILESDIR@/70-nvmf-autoconnect.conf
3839
@SYSTEMDDIR@/[email protected]
3940
@SYSTEMDDIR@/nvmefc-boot-connections.service
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Enable round-robin for Vast Data Block Subsystem
2+
ACTION=="add", SUBSYSTEM=="nvme-subsystem", ATTR{subsystype}=="nvm", ATTR{model}=="VASTData", ATTR{iopolicy}="round-robin"
3+
4+
# Set ctrl_loss_tmo to -1 for Vast Data Block Controller
5+
ACTION!="remove", SUBSYSTEM=="nvme", KERNEL=="nvme*", ATTR{model}=="VASTData", ATTR{ctrl_loss_tmo}="-1"

0 commit comments

Comments
 (0)