Skip to content

File Size < on disk size - currently unexplained, size on disk is 2-3 x file size #9855

Answered by behlendorf
JestersTear asked this question in Q&A
Discussion options

You must be logged in to vote
  • zdb check for leaks, it walks the entire block tree constructing the space maps in memory and then compares them to the ones stored on disk. If they differ it reports the leak.

The main thing to be aware of when using zdb to check for leaks is the pool must not be online when running zdb. If the pool is imported and active zdb will incorrectly report leaked space. This is because zdb effectively imports the pool read-only in user space, so changes made to the imported pool by the kernel module will not be correctly accounted for by zdb.

This means the warnings you've seen are probably not indicative of a problem if you ran zdb against the imported pool. Unfortunately, to be absolutely…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by behlendorf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9855 on December 22, 2020 00:34.