Ok so this is my scenario:
/dev/sda1 /
/dev/sda2 swap
Now I want to mirror these two partitions.
I am doing:
1. sfdisk -d /dev/sda | sfdisk /dev/sdb
2. change the partition ID with fdisk to fd
3. mdadm --create /dev/md0 --metadata=0.90 --level=1 --raid-disks=2 missing /dev/sdb
4. mkfs.ext4 /dev/md0 mount and then rsync the the root disk from /dev/sda1 to /dev/md0
5. mdadm --detail --scan > /etc/mdadm.conf
6. dracut --mdadmconf /boot/initramfs-$(uname -r).img $(uname -r)
7. change fstab on /dev/sda to boot from /dev/md0
8. vi /boot/grub.menu.lst and change the UUID to /dev/md0
9. grub
10. device (hd0) /dev/sdb, root (hd0,0), setup (hd0)
Then I reboot and it fails to boot
Please help