#!/bin/sh

set -e

sudo yum install -y mdadm
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdc /dev/sdd
sudo mkdir -p /etc/mdadm
sudo mdadm --detail --scan > /etc/mdadm/mdadm.conf

#!/bin/sh

set -e

yum install -y mdadm
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sdc /dev/sdd
mkdir -p /etc/mdadm
mdadm --detail --scan > /etc/mdadm/mdadm.conf

Remove sudo, requires interactive terminal
Remove sudo, requires interactive terminal
