Set IO rq_affinity for HP RAID disks
authorGrant Slater <git@firefishy.com>
Fri, 6 Jul 2018 11:17:35 +0000 (12:17 +0100)
committerGrant Slater <git@firefishy.com>
Fri, 6 Jul 2018 11:17:35 +0000 (12:17 +0100)
cookbooks/devices/templates/default/udev.rules.erb

index d6f30d69bda5824104cd2f3a1a817bbf3852f6cc..a9f7f3fdf21efa7da2193ba5ea4880276d49deec 100644 (file)
@@ -4,6 +4,7 @@
 ACTION=="add", SUBSYSTEM=="block", ENV{ID_VENDOR}=="HP", ENV{ID_MODEL}=="LOGICAL_VOLUME", ATTR{queue/scheduler}="noop"
 ACTION=="add", SUBSYSTEM=="block", ENV{ID_VENDOR}=="HP", ENV{ID_MODEL}=="LOGICAL_VOLUME", ATTR{queue/nr_requests}="512"
 ACTION=="add", SUBSYSTEM=="block", ENV{ID_VENDOR}=="HP", ENV{ID_MODEL}=="LOGICAL_VOLUME", ATTR{queue/read_ahead_kb}="4096"
 ACTION=="add", SUBSYSTEM=="block", ENV{ID_VENDOR}=="HP", ENV{ID_MODEL}=="LOGICAL_VOLUME", ATTR{queue/scheduler}="noop"
 ACTION=="add", SUBSYSTEM=="block", ENV{ID_VENDOR}=="HP", ENV{ID_MODEL}=="LOGICAL_VOLUME", ATTR{queue/nr_requests}="512"
 ACTION=="add", SUBSYSTEM=="block", ENV{ID_VENDOR}=="HP", ENV{ID_MODEL}=="LOGICAL_VOLUME", ATTR{queue/read_ahead_kb}="4096"
+ACTION=="add", SUBSYSTEM=="block", ENV{ID_VENDOR}=="HP", ENV{ID_MODEL}=="LOGICAL_VOLUME", ATTR{queue/rq_affinity}="2"
 <% node[:devices].each do |name,device| -%>
 
 # <%= device[:comment] %>
 <% node[:devices].each do |name,device| -%>
 
 # <%= device[:comment] %>