Skip to content

Commit b33bdf8

Browse files
authored
RAIDZ.rst: add note about usable space (openzfs#477)
1 parent a0cc15d commit b33bdf8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/Basic Concepts/RAIDZ.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ we will allocate on disk:
5151

5252
- one 4K block of data
5353

54-
- one 4K padding block
54+
- one 4K parity block
5555

5656
and usable space ratio will be 50%, same as with double mirror.
5757

@@ -62,7 +62,9 @@ Another example for ``ashift=12`` and ``recordsize=128K`` for raidz1 of 3 disks:
6262

6363
- one stripe can have up to 2 data parts of 4K size because of 1 parity blocks
6464

65-
- we will have 128K/2 = 64 stripes with 8K of data and 4K of parity each
65+
- we will have 128K/8k = 16 stripes with 8K of data and 4K of parity each
66+
67+
- 16 stripes each with 12k, means we write 192k to store 128k
6668

6769
so usable space ratio in this case will be 66%.
6870

0 commit comments

Comments
 (0)