From: Tollef Fog Heen Date: Mon, 11 Nov 2013 20:15:21 +0000 (+0100) Subject: Document how to add new LUNs to the MSA X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=commitdiff_plain;h=7ba134fb155e7b0b2ca3ab6950f046462c03a9f8 Document how to add new LUNs to the MSA --- diff --git a/input/howto/install-ganeti.creole b/input/howto/install-ganeti.creole index c6c6811..e27f02b 100644 --- a/input/howto/install-ganeti.creole +++ b/input/howto/install-ganeti.creole @@ -360,8 +360,35 @@ And you want to convert it to use DRBD afterwards and start it on the other clus * How to add new LUNs to Bytemark Cluster +** Add new LUN to MSA and export to all blades + +{{{ + Log into MSA controller + + Choose which vdisk to use, use "show vdisks" to list + +Add the volume: + # create volume vdisk msa2k-2-500gr10 size 5G donizetti + +Find a free LUN: + + # show lun-maps + +Make a note of the next free LUN + +Generate map commands for all blades, all ports, run locally: + + $ for p in 1 2 3 4; do for bl in 1 2 3 4 5 6 ; do echo "map volume donizetti lun 27 host bm-bl$bl-p$p" ; done ; done + +Paste the output into the MSA shell + +Find the WWN by doing show host-maps and looking for the volume name. +Transform it using the sed run at the top of /etc/multipath.conf: + +echo "$WWN" | sed -re 's#(.{6})(.{6})0000(.{2})(.*)#36\1000\2\3\4#' +}}} + {{{ - + Add a new LUN in the MSA and export it to all blades then: gnt-cluster command "echo 1 > /sys/bus/pci/devices/0000:0e:00.0/cciss0/rescan"