From f76ee1f539c9d8bcbb4906172c1575605a495fca Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 24 Feb 2018 23:38:55 +0100 Subject: [PATCH] Add script to add unconfigured disk --- raid-add-unconfigured-disk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 raid-add-unconfigured-disk diff --git a/raid-add-unconfigured-disk b/raid-add-unconfigured-disk new file mode 100755 index 0000000..7be6335 --- /dev/null +++ b/raid-add-unconfigured-disk @@ -0,0 +1,14 @@ +#!/bin/sh +# Nico Schottelius, 2018-02-24 +# Copyright ungleich glarus ag + +if [ $# -ne 2 ]; then + echo $0: enclosure:slot controller + echo "f.i. $0 32:4 0 + exit 1 +fi + +diskslot=$1; shift +controller=$1; shift + +megacli -CfgLdAdd -r0 [$diskslot] -a${controller}