diff --git a/Makefile b/Makefile index 56f4770d0..2222841d6 100755 --- a/Makefile +++ b/Makefile @@ -59,7 +59,7 @@ SM_LIBS += constants SM_LIBS += cbtutil SM_LIBS += sr_health_check -UDEV_RULES = 65-multipath 55-xs-mpath-scsidev 57-usb 58-xapi 99-purestorage +UDEV_RULES = 65-multipath 55-xs-mpath-scsidev 57-usb 58-xapi 99-purestorage 99-datacore MPATH_DAEMON = sm-multipath MPATH_CONF = multipath.conf MPATH_CUSTOM_CONF = custom.conf diff --git a/mk/sm.spec.in b/mk/sm.spec.in index e9bd29b04..927942760 100755 --- a/mk/sm.spec.in +++ b/mk/sm.spec.in @@ -222,6 +222,7 @@ tests/run_python_unittests.sh %config /etc/logrotate.d/SMlog %config /etc/udev/rules.d/57-usb.rules %config /etc/udev/rules.d/99-purestorage.rules +%config /etc/udev/rules.d/99-datacore.rules %doc CONTRIB LICENSE MAINTAINERS README.md diff --git a/multipath/multipath.conf b/multipath/multipath.conf index 166bd8476..603eeef97 100644 --- a/multipath/multipath.conf +++ b/multipath/multipath.conf @@ -183,4 +183,16 @@ devices { rr_min_io_rq 1 rr_weight uniform } -} \ No newline at end of file + device { + vendor                    "DataCore" + product                   "Virtual Disk" + path_checker              tur + prio                      alua + failback                  10 + no_path_retry             fail + dev_loss_tmo              60 + fast_io_fail_tmo          5 + rr_min_io_rq              100 + path_grouping_policy      group_by_prio + } +} diff --git a/udev/99-datacore.rules b/udev/99-datacore.rules new file mode 100644 index 000000000..aacf07283 --- /dev/null +++ b/udev/99-datacore.rules @@ -0,0 +1 @@ +SUBSYSTEM=="block", ACTION=="add", ATTRS{vendor}=="DataCore", ATTRS{model}=="Virtual Disk    ", RUN+="/bin/sh -c 'echo 80 > /sys/block/device/timeout'"