mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-25 12:41:39 +00:00
Add a sample vroc 'pre' script for reference
This commit is contained in:
parent
0f1581f8f7
commit
83da1359df
15
misc/vroc
Normal file
15
misc/vroc
Normal file
@ -0,0 +1,15 @@
|
||||
DEVICES="/dev/sda /dev/sdb"
|
||||
RAIDLEVEL=1
|
||||
mdadm --detail /dev/md* | grep imsm >& /dev/null && exit 0
|
||||
lvm vgchange -a n
|
||||
mdadm -S -s
|
||||
NUMDEVS=$(for dev in $DEVICES; do
|
||||
echo wipefs -a $dev
|
||||
done|wc -l)
|
||||
for dev in $DEVICES; do
|
||||
wipefs -a $dev
|
||||
done
|
||||
mdadm -C /dev/md/imsm0 $DEVICES -n $NUMDEVS -e imsm
|
||||
mdadm -C /dev/md/md0_0 /dev/md/imsm0 -n $NUMDEVS -l $RAIDLEVEL
|
||||
mdadm -S -s
|
||||
mdadm --assemble --scan
|
Loading…
Reference in New Issue
Block a user