Skip to content

zpool create using file as device #13175

Answered by rincebrain
0xzfs asked this question in Q&A
Discussion options

You must be logged in to vote

You're using a mix of ZFS versions for userland and kernel, and you should stop using Ubuntu's broken setup. That's not related to your question, it's just a bad idea.

That said, I think you're observing a result of how ZFS allocates metaslabs - looking at zdb -MM, it's using 512 MB metaslabs for a 5GB file vdev, which means that there's going to be an area of (512 MB - however much it's using for fixed usage at the front and back of the pool) that's not covered, I think.

You could play with the zfs_vdev_default_ms_shift and similar tunables to adjust how it bins up the space - for example, setting it from the default of 29 (512 MB) to 25 (32 MB) results in:

NAME      SIZE  ALLOC   FREE  …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@0xzfs
Comment options

@rincebrain
Comment options

@0xzfs
Comment options

@0xzfs
Comment options

Answer selected by 0xzfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants