Skip to contentSkip to conversation

Number of parity disks

DISCUSSION Kengo.M 2 participants 2 messages Jan 3, 2023 – Jan 4, 2023 Btrfs file system

lore
Share & tools
lore

Kengo.M

author
#0 lore raw

Hi Folks

I use btrfs conveniently.

Let me ask a very very basic question.

One parity disk can be used in RAID 5 and 2 parity disks can be used in RAID 6. ZFS RAIDZ-3 (raidz3) can use 3 parity disks.

Is it difficult to increase the number of parity disks to 4, 5 or more. If so, is the reason for this because of the time it takes to generate the parity bits?

BRD

Kengo Miyahara

#1 lore raw
Quoted 4 lines · Kengo.M

Hi Folks

I use btrfs conveniently.

Quoted 8 lines

Let me ask a very very basic question.

One parity disk can be used in RAID 5 and 2 parity disks can be used in RAID 6. ZFS RAIDZ-3 (raidz3) can use 3 parity disks.

Is it difficult to increase the number of parity disks to 4, 5 or more. If so, is the reason for this because of the time it takes to generate the parity bits?

Someone pasted, some years ago, a patch that added parity
calculations up to 6. It is relatively difficult to find appropriate orthogonal functions, but the computation of the parity values once you know those functions isn't hugely expensive.

I don't think the patch added actual n-way parity functionality to
btrfs or MD-RAID, though.

Given the longevity (and severity) of some of the btrfs parity RAID
bugs, I think it's probably not a priority to layer more code onto an already wobbly part of btrfs. That may change in the future, now that parity RAID is seeing some major fixes landing, but I wouldn't hold your breath for it.

Hugo.

Signature · 4 lines
Hugo Mills             | This: Rock. You throw rock.
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |                          Graeme Swann on fast bowlers