C
C
chief2021-01-05 19:10:09
linux
chief, 2021-01-05 19:10:09

How to correctly calculate space in ZFS?

Guys, teach me how to count space in zfs :) The
question seems absurd, but look.
Created raidz-2 from 10 HDDs of 500GB each.
Purely logically, it turns out that two disks are a hash, which means that there should be 4TB of free space (+ -).

BUT!
In spool list - I get 4.5TB free
In zfs list - 3.34TB

How is it at all?
5ff48f5cedacb281970286.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
edo1h, 2021-01-06
@edo1h

zpool shows free space without deducting control blocks (they are not there yet).
zfs shows (roughly) what you need.
if there were no overhead, then you would see 3.6T:

((500 ⋅ (10^9)) ⋅ (10 − 2)) / (1024^4) ≈ 3.637978807091713

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question