Saltstack Official Linux Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

99 行
2.3KB

  1. {%- from "linux/map.jinja" import storage with context %}
  2. ##
  3. ## This is a template multipath-tools configuration file
  4. ## Uncomment the lines relevent to your environment
  5. ##
  6. {% set backend = storage.get('backend', 'default') %}
  7. {%- if backend in ['hitachi', 'hds', 'HDS'] %}
  8. defaults {
  9. # udev_dir /dev
  10. # polling_interval 10
  11. # selector "round-robin 0"
  12. # path_grouping_policy multibus
  13. # getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
  14. # prio const
  15. # path_checker directio
  16. # rr_min_io 100
  17. # flush_on_last_del no
  18. # max_fds 8192
  19. # rr_weight priorities
  20. # failback immediate
  21. # no_path_retry fail
  22. # queue_without_daemon no
  23. user_friendly_names no
  24. # mode 644
  25. # uid 0
  26. # gid disk
  27. }
  28. {%- elif backend in ['fujitsu'] %}
  29. defaults {
  30. user_friendly_names no
  31. }
  32. blacklist {
  33. wwid "355cd2e404b76b*"
  34. }
  35. devices {
  36. device {
  37. vendor "FUJITSU"
  38. product "ETERNUS_DXL"
  39. prio alua
  40. path_grouping_policy group_by_prio
  41. path_selector "round-robin 0"
  42. failback immediate
  43. no_path_retry 0
  44. path_checker tur
  45. dev_loss_tmo 2097151
  46. fast_io_fail_tmo 1
  47. }
  48. }
  49. {%- else %}
  50. defaults {
  51. getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
  52. user_friendly_names no
  53. }
  54. blacklist {
  55. # wwid 26353900f02796769
  56. # devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
  57. # devnode "^hd[a-z][[0-9]*]"
  58. # device {
  59. # vendor DEC.*
  60. # product MSA[15]00
  61. # }
  62. #
  63. # POZOR - filtrace vseho krome blacklistovanych veci
  64. #
  65. # wwid "*"
  66. }
  67. blacklist_exceptions {
  68. # devnode "^dasd[c-d]+[0-9]*"
  69. # wwid "IBM.75000000092461.4d00.34"
  70. # wwid 3600507680280050cd000000000000035
  71. # wwid 3600507680280050cd000000000000030
  72. # wwid 3600507680280050cd0000000000000ac
  73. # wwid 3600507680280050cd0000000000003df
  74. wwid "*"
  75. }
  76. devices {
  77. device {
  78. vendor "IBM"
  79. product "2145"
  80. path_grouping_policy group_by_prio
  81. getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
  82. features "1 queue_if_no_path"
  83. prio alua
  84. path_checker tur
  85. failback immediate
  86. no_path_retry "5"
  87. rr_min_io 1
  88. polling_interval 30
  89. dev_loss_tmo 120
  90. }
  91. }
  92. {%- endif %}