Created
April 1, 2015 17:36
-
-
Save dukz/8107d3c5565abfec70e2 to your computer and use it in GitHub Desktop.
Ubuntu MDADM RAID 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install mdadm | |
sudo apt-get update | |
sudo apt-get install mdadm | |
# Create RAID | |
sudo mdadm --create /dev/md0 --level=10 --raid-devices=4 /dev/xvdg /dev/xvdh /dev/xvdi /dev/xvdj | |
# Check Status | |
sudo mdadm --detail /dev/md0 | |
sudo cat /proc/mdstat | |
# Add to mdadm.conf - double check the output below | |
sudo mdadm --detail --scan > /etc/mdadm/mdadm.conf | |
sudo update-initramfs -u | |
# Format Disk | |
sudo mkfs.ext4 /dev/md0 | |
# Create Mount Point | |
sudo mkdir /mnt_raid | |
# Add to fstab | |
echo "/dev/md0 /mnt_raid auto defaults,nobootwait,noatime 0 0" | sudo tee /etc/fstab | |
# Restart & Check | |
sudo shutdown -r now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment