ungleich-tools/raid-add-unconfigured-disk

15 lines
268 B
Text
Raw Normal View History

2018-02-24 22:38:55 +00:00
#!/bin/sh
# Nico Schottelius, 2018-02-24
# Copyright ungleich glarus ag
if [ $# -ne 2 ]; then
echo $0: enclosure:slot controller
2018-02-24 22:42:09 +00:00
echo "f.i. $0 32:4 0"
2018-02-24 22:38:55 +00:00
exit 1
fi
diskslot=$1; shift
controller=$1; shift
2018-02-24 22:42:09 +00:00
megacli -CfgLdAdd -r0 [${diskslot}] -a${controller}