From ef17392d4ee5a13bf4107e6cc6dac0a19ddf6086 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 30 May 2013 19:04:21 +0200 Subject: [PATCH] add binet devices --- modules/multipath/files/multipath-bm.conf | 28 ++++++++--------------- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/modules/multipath/files/multipath-bm.conf b/modules/multipath/files/multipath-bm.conf index c16fe1cea..44c14c4a6 100644 --- a/modules/multipath/files/multipath-bm.conf +++ b/modules/multipath/files/multipath-bm.conf @@ -3,25 +3,9 @@ ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git ## -# cut -b 2- -# convert_sn() { -# local sn a b c d -# sn="$1" -# if [ -z "$sn" ] ; then read sn; fi -# a="${sn%??????????????????????????}"; sn="${sn#??????}" -# b="${sn%????????????????????}"; sn="${sn#??????}" -# c="${sn%??????????????}"; sn="${sn#??????}" -# d="$sn" +# conversion from MSA stype WWIDs to multipathd.conf: # -# if [ "${c#0000}" = "$c" ]; then -# echo >&2 "sn has unexpected value ($1: $a - $b - $c - $d)" -# return 1 -# fi -# -# echo "36${a}000${b}${c#0000}${d}" -# return 0 -# } - +# sed -re 's#(.{6})(.{6})0000(.{2})(.*)#36\1000\2\3\4#' blacklist_exceptions { devnode "cciss!c[0-9]d[0-9]*" @@ -72,4 +56,12 @@ multipaths { wwid 3600c0ff000d5ad34fdb58f5101000000 alias piu-slave-bm-a-swap } + multipath { + wwid 3600c0ff000d5ad34a381a75101000000 + alias binet + } + multipath { + wwid 3600c0ff000d5ad34b181a75101000000 + alias binet-srv + } } -- 2.20.1