For some reason, I want my future file server to have space for 8 hot-swap HDD. Those HDD will house the RAIDZ cluster of my ZFS array (although that particular terminology sounds odd). Why do I want hot-swap? Because I can. It costs about $100 for a drive cage for 4 SATA drives. That’s +$25 per HDD, but it’s nice. That’s all. It’s Nice To Have.
I said RAIDZ, but I might go with raidz2, or perhaps raidz3. They can withstand 2 or 3 simultaneous disk failures. The different levels require a different minimum number of disks. ZFS clusters are recommended to contain between 2 and 9 HDD. If you need more than 9 HDD, create a new cluster.
- raidz – 3 HDD minimum
- raidz2 – 5 HDD miniumum
- raidz3 – 8 HDD minimum
Taken from ZFS Best Practices Guide.
The following table shows how much disk space I would have in each arrangement of parity, disk size,and disk quantity.
|Disk size (TB)|
|Num Disks||Parity||Space Available|
The plan is to start with four HDD, so at most, I can get raidz. Which would give me 6TB of space with 2TB HDD.
I’ve also been thinking about how many SATA ports should my motherboard have. Six is pretty common. But I also plan to have a DVD drive. I also plan to boot off a non-ZFS array. That will require two SATA ports, because I will use gmirror on that.
This means I need 3 SATA ports for the system, plus one per each HDD in the array, for a total of 11 ports, if I go with an 8-HDD ZFS array.