How do I setup a raid for my hard drives on Ubuntu?

1) Make sure to setup Primary partition: Primary Beginning of this space Ext4 Mount point: / and Swap partition: Logical Beginning of this space Swap area using "Something Else" 2) get and install updates and upgrades sudo apt-get update sudo apt-get upgrade 3) get raid software sudo apt-get update sudo apt-get install mdadm 4) setup RAID a) if raids haven't been setup: sudo mdadm --create /dev/md0 --chunk=256 --level=0 --raid-devices=2 /dev/sda /dev/sdb b) if raids are setup, but just have to be reassembled: sudo mdadm --assemble /dev/md0 /dev/sda /dev/sdb or mdadm --assemble --scan

Back to blog

Leave a comment

Please note, comments need to be approved before they are published.