]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/multipath/templates/multipath-ubc-ganeti.conf.erb
ubc: Ignore sda on p410 blades
[dsa-puppet.git] / modules / multipath / templates / multipath-ubc-ganeti.conf.erb
diff --git a/modules/multipath/templates/multipath-ubc-ganeti.conf.erb b/modules/multipath/templates/multipath-ubc-ganeti.conf.erb
new file mode 100644 (file)
index 0000000..016d349
--- /dev/null
@@ -0,0 +1,166 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+# conversion from MSA stype WWIDs to multipathd.conf:
+#
+#   sed -re 's#(.{6})(.{6})0000(.{2})(.*)#36\1000\2\3\4#'
+
+defaults {
+        udev_dir                /dev
+        polling_interval        10
+        path_selector           "round-robin 0"
+        path_grouping_policy    multibus
+        getuid_callout          "/lib/udev/scsi_id -g -u -s /block/%n"
+        path_checker            readsector0
+        rr_min_io               100
+        rr_weight               priorities
+        failback                immediate
+        no_path_retry           fail
+        user_friendly_names     yes
+}
+blacklist {
+        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
+        devnode "^hd[a-z][[0-9]*]"
+        devnode "^vd[a-z]"
+        devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
+<%- if %w{pasquini tristano boito bertali}.include?(hostname) then -%>
+        devnode "^sda[0-9]*"
+<%- end -%>
+        device {
+                vendor DEC.*
+                product MSA[15]00
+        }
+}
+multipaths {
+        # reger
+        multipath {
+                wwid 3600c0ff000d5f6bd5dabd64c01000000
+                alias reger-boot
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bd72ac375101000000
+                alias r10-reger-root
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bd1dfe9d5101000000
+                alias r10-reger
+        }
+        # geo2
+        multipath {
+                wwid 3600c0ff000d5f6bd3ed7995101000000
+                alias r10-geo2
+        }
+        # brahms
+        multipath {
+                wwid 3600c0ff000d5f6bdf4fa995101000000
+                alias r10-brahms
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bdfdfa995101000000
+                alias r10-brahms-srv
+        }
+        # lotti
+        multipath {
+                wwid 3600c0ff000d5f6bd9a2a9a5101000000
+                alias r10-lotti
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bd1ab08c4c01000000
+                alias r6-lotti-srv
+        }
+        # lilburn
+        multipath {
+                wwid 3600c0ff000d5f6bd40329a5101000000
+                alias r10-lilburn
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bd46329a5101000000
+                alias r10-lilburn-srv
+        }
+        # elgar
+        multipath {
+                wwid 3600c0ff000d5f6bd04849b5101000000
+                alias r10-elgar
+        }
+        # jenkins
+        multipath {
+                wwid 3600c0ff000d5f6bdf38f9b5101000000
+                alias r10-jenkins
+        }
+        # popov
+        multipath {
+                wwid 3600c0ff000d5f6bda9a19b5101000000
+                alias r10-popov
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bdaaa19b5101000000
+                alias r10-popov-srv
+        }
+        # fano
+        multipath {
+                wwid 3600c0ff000d5f6bd71c19c5101000000
+                alias r10-fano
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bd87c49c5101000000
+                alias r10-fano-srv
+        }
+        # finzi
+        multipath {
+                wwid 3600c0ff000d5f6bd68ec9c5101000000
+                alias r10-finzi
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bddd0bee4f01000000
+                alias r10-finzi-srv
+        }
+        # tchaikovsky
+        multipath {
+                wwid 3600c0ff000d5f6bd06f29c5101000000
+                alias r10-tchaikovsky
+        }
+        # gombert
+        multipath {
+                wwid 3600c0ff000d5f6bd318a9e5101000000
+                alias r10-gombert
+        }
+        # blavet
+        multipath {
+                wwid 3600c0ff000d5f6bd736aa05101000000
+                alias r10-blavet
+        }
+        # tye
+        multipath {
+                wwid 3600c0ff000d5f6bdb08aa05101000000
+                alias r10-tye
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bdb28aa05101000000
+                alias r10-tye-srv
+        }
+        # glinka
+        multipath {
+                wwid 3600c0ff000d5f6bdf0eaa45101000000
+                alias r10-glinka
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bdf1eaa45101000000
+                alias r10-glinka-srv
+        }
+        multipath {
+                wwid 3600c0ff000d5f6bd866d4c5101000000
+                alias r6-glinka-mirrors
+        }
+        # diabelli
+        multipath {
+                wwid 3600c0ff000d5f6bdfa42aa5101000000
+                alias r10-diabelli
+        }
+        # nono
+        multipath {
+                wwid 3600c0ff000d5f6bd0944b85101000000
+                alias r10-nono
+        }
+}