I have been wondering how many drives can you lose in a zpool and still have your data survive, given various vdev configurations. After many hours of searching I haven't found a statisfying statistical analysis from that perspective; probably, I don't know where to look. I made basic outcome calculations. Starting from the simplest cases, and assuming the loss of a drive is random over the zpool:
a) 4 drives in a RAID 10 (2 mirror vdevs)
probability of surviving the loss of first drive: 1
probability of surviving the loss of second drive: 2/3
Hope of surviving drive losses: 1.67 drives
Obviously a raidz2 will survive the loss of 2 drives, so a raidz2 of 4 drives is a bit safer than a RAID 10.
b) 2 raidz2 of 6 drives (12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 6/8
(50% chance of a drive being lost to either vdev, 3 tries (2^3 = 8), you lose the zpool only if 3 drives all fail in the same vdev so there are only 2 ways of losing it)
probability of surviving the loss of 1 more drive: 6/8 * 6/16
(there are only 6 ways of surviving the loss of that last drive, out of 16 ways the failures can happen)
Hope of surviving drive losses: 3.03 drives
c) RAID 10 (6 mirror vdevs, 12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 10/11
probability of surviving the loss of 1 more drive: 10/11 * 8/10
probability of surviving the loss of 1 more drive: 10/11 * 8/10 * 6/9
probability of surviving the loss of 1 more drive: 10/11 * 8/10 * 6/9 * 4/8
probability of surviving the loss of 1 more drive: 10/11 * 8/10 * 6/9 * 4/8 * 2/7
Hope of surviving drive losses: 3.42 drives
d) 3 raidz2 of 4 drives each (12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 24/27
probability of surviving the loss of 1 more drive: 24/27 * 54/81
probability of surviving the loss of 1 more drive: 24/27 * 54/81 * 90/243
probability of surviving the loss of 1 more drive: 24/27 * 54/81 * 90/243 * 120/729
Hope of surviving drive losses: 3.74 drives
2) 2 raidz3 of 6 drives each (12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 14/16
(50% chance of a drive being lost to either vdev, 4 tries (2^4 = 16), you lose the zpool only if 4 drives all fail in the same vdev so there are only 2 ways of losing it)
probability of surviving the loss of 1 more drive: 14/16 * 22/32
probability of surviving the loss of 1 more drive: 14/16 * 22/32 * 20/64
Hope of surviving drive losses: 4.66 drives
I'm a bit surprised that with 12 drives, 6 mirror vdevs (RAID 10) should be a bit safer than a zpool consisting of 2 raidz2 vdevs. I wonder if my calculations are sound...
a) 4 drives in a RAID 10 (2 mirror vdevs)
probability of surviving the loss of first drive: 1
probability of surviving the loss of second drive: 2/3
Hope of surviving drive losses: 1.67 drives
Obviously a raidz2 will survive the loss of 2 drives, so a raidz2 of 4 drives is a bit safer than a RAID 10.
b) 2 raidz2 of 6 drives (12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 6/8
(50% chance of a drive being lost to either vdev, 3 tries (2^3 = 8), you lose the zpool only if 3 drives all fail in the same vdev so there are only 2 ways of losing it)
probability of surviving the loss of 1 more drive: 6/8 * 6/16
(there are only 6 ways of surviving the loss of that last drive, out of 16 ways the failures can happen)
Hope of surviving drive losses: 3.03 drives
c) RAID 10 (6 mirror vdevs, 12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 10/11
probability of surviving the loss of 1 more drive: 10/11 * 8/10
probability of surviving the loss of 1 more drive: 10/11 * 8/10 * 6/9
probability of surviving the loss of 1 more drive: 10/11 * 8/10 * 6/9 * 4/8
probability of surviving the loss of 1 more drive: 10/11 * 8/10 * 6/9 * 4/8 * 2/7
Hope of surviving drive losses: 3.42 drives
d) 3 raidz2 of 4 drives each (12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 24/27
probability of surviving the loss of 1 more drive: 24/27 * 54/81
probability of surviving the loss of 1 more drive: 24/27 * 54/81 * 90/243
probability of surviving the loss of 1 more drive: 24/27 * 54/81 * 90/243 * 120/729
Hope of surviving drive losses: 3.74 drives
2) 2 raidz3 of 6 drives each (12 drives total)
probability of surviving the loss of first drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 1
probability of surviving the loss of 1 more drive: 14/16
(50% chance of a drive being lost to either vdev, 4 tries (2^4 = 16), you lose the zpool only if 4 drives all fail in the same vdev so there are only 2 ways of losing it)
probability of surviving the loss of 1 more drive: 14/16 * 22/32
probability of surviving the loss of 1 more drive: 14/16 * 22/32 * 20/64
Hope of surviving drive losses: 4.66 drives
I'm a bit surprised that with 12 drives, 6 mirror vdevs (RAID 10) should be a bit safer than a zpool consisting of 2 raidz2 vdevs. I wonder if my calculations are sound...