Skip to content

Instantly share code, notes, and snippets.

@pwilken
Last active December 8, 2019 10:21
Show Gist options
  • Save pwilken/741fbbabf3ae46938c9ffbd97e5b435a to your computer and use it in GitHub Desktop.
Save pwilken/741fbbabf3ae46938c9ffbd97e5b435a to your computer and use it in GitHub Desktop.
apt-get install mdadm
mdadm --create /dev/md0 --level=10 --raid-devices=4 /dev/sd[c-f]
mkfs.ext4 /dev/md0
mkdir /mnt/raid10
mount /dev/md0 /mnt/raid10/
echo "/dev/md0 /mnt/raid10 ext4 defaults 0 0" >> /etc/fstab
mount -av
mdadm --detail --scan --verbose >> /etc/mdadm.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment