From 09cea27fc09713eb3c1fbc086937996deb0264c1 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 20 May 2013 10:12:18 +0200 Subject: [PATCH] multipath config ubc --- modules/multipath/files/bm-ubc-ganeti.conf | 58 ++++++++++++++++++++++ modules/multipath/manifests/init.pp | 3 ++ 2 files changed, 61 insertions(+) create mode 100644 modules/multipath/files/bm-ubc-ganeti.conf diff --git a/modules/multipath/files/bm-ubc-ganeti.conf b/modules/multipath/files/bm-ubc-ganeti.conf new file mode 100644 index 00000000..e8e9087f --- /dev/null +++ b/modules/multipath/files/bm-ubc-ganeti.conf @@ -0,0 +1,58 @@ +## +## 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]*]" + device { + vendor DEC.* + product MSA[15]00 + } +} +multipaths { + multipath { + wwid 3600c0ff000d5f6bdedbe744e01000000 + alias ganeti-mini + } + multipath { + wwid 3600c0ff000d5f6bd5dabd64c01000000 + alias reger-boot + } + multipath { + wwid 3600c0ff000d5f6bd72ac375101000000 + alias r10-reger-root + } + multipath { + wwid 3600c0ff000d5f6bd8ca3735101000000 + alias fischer-root + } + multipath { + wwid 3600c0ff000d5f6bd2af5de4f01000000 + alias fischer-srv + } + multipath { + wwid 3600c0ff000d5f6bd3ed7995101000000 + alias r10-geo2 + } +} diff --git a/modules/multipath/manifests/init.pp b/modules/multipath/manifests/init.pp index e10bea64..aca06840 100644 --- a/modules/multipath/manifests/init.pp +++ b/modules/multipath/manifests/init.pp @@ -3,6 +3,9 @@ class multipath { bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14: { $conffile = 'bm-multipath.conf' } + rossini: { + $conffile = 'bm-ubc-ganeti.conf' + } default: { $conffile = '' } -- 2.39.2