Skip to content

Instantly share code, notes, and snippets.

@omar-yassin
Last active December 17, 2015 05:29
Show Gist options
  • Save omar-yassin/5558474 to your computer and use it in GitHub Desktop.
Save omar-yassin/5558474 to your computer and use it in GitHub Desktop.
Ubuntu 12.04 LTS: 3TB Raid 1 howto
# run parted on both drives, my case they were sdb and sdc
# label as gpt, unit TB, etc..
# create mdadm device and get to bed
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
# format anyway you like on your new device
# make mdadm.conf
mdadm -Db /dev/md0 >> /etc/mdadm/mdadm.conf
# due to some kernel issue, change the following (keep only ARRAY /dev/path and UUID):
ARRAY /dev/md0 metadata=1.2 name=nas:0 UUID=3039a6d0:b48d34c8:fd85278c:af59f0e9
to
ARRAY /dev/md0 UUID=3039a6d0:b48d34c8:fd85278c:af59f0e9
# mount it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment