I would like my RAID10 to survive the failure of the bootdisk. I want to write grub to the MBR of each disk in the array so that in the case of a failure the array will still boot on the remaining members.
I have a 4 disk array, so in theory I only need 2 grub MBRs, but I don't see the harm in putting the bootloader on all 4.
Grub folder is: /boot/grub Root is: (md0)/
Step by step, how do I install grub on each drive?
I see you've already figured out how to accomplish this from a high level interface, but for the sake of anybody else who would like to learn how to configure software RAID10, I'll link to a fantastic article that goes into great depth on how to accomplish this. Rather than copy the article verbatim, I'll link to it instead. I used this article as a guide to set up RAID 10 for a file server; it also explains how to configure GRUB to successfully boot after a disk failure.
I usually don`t do this with grub. The problem - which is not addressed in the referenced article is:
If you loose sda (=hd0) your previous sdb (=hd1) will become sda (=hd0) which confuses grub: It was installed to sdb/hd1.
I use dd from one partition to the other to copy the whole boot-partition (including grub-setup).
And don`t forget to set up your bios so it will continue to boot in case of a drive failure. ;-)