Skip to content

What does the ZFS Metadata Special Device do? #14542

Answered by robn
yuanfangcc asked this question in Q&A
Discussion options

You must be logged in to vote

There's two types of "data" in the pool: the actual data of whatever it is you're storing, and the metadata, which is all the tables, properties, indexes and other "stuff" that defines the pool structure, the datasets, and the pointers that tell ZFS where on disk to find the actual data.

Normally this is all mixed in together on the regular pool vdevs (mirror, raidz, etc). If you add a special vdev to your pool, then ZFS will prefer to store the metadata there, and send the data proper to the regular vdevs. The main reason for doing this is if you have "slow" data vdevs; adding a special vdev of a SSD mirror can speed up access times, as ZFS can look to the SSDs to know where on the data …

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@robn
Comment options

@yuanfangcc
Comment options

@yuanfangcc
Comment options

@MrRinkana
Comment options

@amotin
Comment options

Answer selected by yuanfangcc
Comment options

You must be logged in to vote
1 reply
@mattaw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants