Add script to add unconfigured disk
This commit is contained in:
parent
7f4d0cb974
commit
f76ee1f539
1 changed files with 14 additions and 0 deletions
14
raid-add-unconfigured-disk
Executable file
14
raid-add-unconfigured-disk
Executable file
|
@ -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}
|
Loading…
Reference in a new issue