I'm on Ubuntu 10.04 64 bit. I have 6 3TB drives I want to place in raid 10. For <=2TB drives, I would run fdisk, create 'fd' (linux raid autodetect) partitions on each drive, then mdadm --create, then mkfs on the new mdX raid device. Since I can no longer use fdisk on >2TB drives, I tried parted instead of fdisk:
Code:
parted /dev/sdx
(parted) mklabel gpt
(parted) unit TB
(parted) mkpart primary 0 -1
(parted) print
(parted) quit
I ran the above on all drives, then did:
Code:
mdadm --create /dev/md0 --level=10 --verbose --raid-devices=6 --spare-devices=0 /dev/sd{b,c,d,e,f,g}1
mdadm --detail --scan >> /etc/mdadm.conf
as usual.
This actually worked, and I was able to mkfs and mount and read/write data. However, upon reboot, ubuntu didn't correctly detect the drives and recreate the md0 from the appropriate partitions. What am I doing wrong?