I don't think your partition vs drive question relates to your array being a MD RAID 10. The partition vs drive question is preferential. And when it comes to growing or shrinking arrays, if MDADM can do something for RAID 1, it can probably do it for raid 10.
On that note, it is easier if you do not use the whole drive for your array just in case another drive you get in the future ends up being smaller, and whether or not you address such an issue now or later is a matter of preference. I personally use a partition that is slightly smaller for my MD RAID 10 array because it is safer than messing with sizes after the array is in place.
And in contrast to what Hennes has said, you DO get a performance boost when you use a software RAID 10 on two drives. My performance literally doubled the moment I rebuilt my array into 10 from 1 using the same drives in the same computer. Seems ridiculous RAID 1 doesn't naturally read from both discs, but it doesn't! I am thinking about adding a third drive for double redundancy since I am using older drives and I think I run a high risk of failure during a rebuild due to using older hardware in general. And the speed boost doesn't hurt.
As a note, I even have two different size drives (1TB and 2TB),from 2 different manufacturers. Not the best scenario, but it works great! Writes are slower than a single drive, but reads are fast! Only 2 drives and rebuilds are quick! (no parity) Enjoy your two drive RAID 10 and just enjoy all those people like Hennes who are SURE you need 4 drives. :)
1>
1
To clarify the differences between RAID 0 (stripe), RAID 1 (mirror) and RAID 10 ( a stripe of mirrors ) and RAID01 ( a mirror of stripes ) please see this post on our sister site SF.
– Hennes – 2013-07-29T12:40:43.157@Hennes As far as I can see, "Linux MD RAID10" (which I have in mind) requires at least two volumes: http://en.wikipedia.org/wiki/Non-standard_RAID_levels#Linux_MD_RAID_10. Am I missing something?
– Thomas Arildsen – 2013-07-29T13:02:19.603@Hennes BTW, thanks for the post on SF. Nice to know that RAID01 should be avoided. And, reading about the capabilities of ZFS has got me very interested now... – Thomas Arildsen – 2013-07-29T13:07:30.123
A stripe of multiple volumes on a single disk makes no sense. It might work, but the goal of a stripe is to increase performance by combining the speed of multiple drives. A stripe of two volumes on the same drive would effectively yield "twice * half the speed". And that ignores extra overhead and unneeded complexity. As to ZFS, it is very powerful. Just make sure you read all the documentation and that you realise the CPU and RAM needed for some of the advanced features. (E.g. dudeplication). Having said that, Sun made a great system with ZFS. – Hennes – 2013-07-29T14:05:48.610
@Hennes As far as I understand, MD RAID10 should be able to give me both the redundancy of RAID1 and the performance of RAID0 combined, even with two discs, right? – Thomas Arildsen – 2013-07-29T15:30:11.057
No. You get the redundancy and read-performance boost of RAID 1, but not the performance increase of RAID 0.
Compare it to this analogy. If you have one secretary working at top speed, and you give her two jobs. Does more work get done? (Answer: no, She might be working on two jobs, but each goes half as fast.) – Hennes – 2013-07-29T15:36:20.520
let us continue this discussion in chat
– Thomas Arildsen – 2013-07-30T07:59:58.593