Raidz-1 parity disks

opensolarisraidzzfs

I am a bit confused about how to configure my zfs pool. What is the exact difference between adding 8 disks to a raidz1 pool or adding 2×4 to the pool with 2 raidz1 groups. Example

zpool create testPool raidz1 d1 d2 d3 d4 raidz1 d5 d6 d7 d8

zpool status shows the same amount of usable disk space but when running zfs list testPool the one with the 2 raidz groups shows 1/2 of the usable diskspace of the one with all disks in one group.

Does this method define 2 parity disks? How are the number of parity disks defined? If I create the following pool with raidz2 it shows pretty much the same usable space.

zpool create testPool raidz2 d1 d2 d3 d4 d5 d6 d7 d8

Any hints on this?

Thanks a lot

Best Answer

If you're familiar with traditional RAID, basically you're comparing RAID6 (double parity) to RAID 50 (striped raid5 sets). The 8 disk RAID-z2 setup is probably the better bet as then any two of the 8 disks to fail without losing all your data, while with a striped pair of 4disk raidz1 sets can only tolerate one disk failure per set (failure of two disks in the same set and you loose everything).

The 2x4disk RAIDz1 sets may offer increased IOPS in some situations as smaller reads/writes might be serviced by one half or the other, whereas every IO hits every disk in the 8disk raidz2 setup, but if performance is your primary concern you should definitely think about mirroring your disks instead (ala RAID 10).