What does the ZFS Metadata Special Device do? #14542
-
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
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 ( There's another possible advantage: ZFS can store "small" files on the One important thing to remember is that This is only a rough explanation, see also: |
Beta Was this translation helpful? Give feedback.
-
This page has a high rank for "openzfs metadata special" so hope this helps someone: On Apr 24th, 2023, a This commit is in >=
As a reminder:
|
Beta Was this translation helpful? Give feedback.
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 aspecial
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 aspecial
vdev of a SSD mirror can speed up access times, as ZFS can look to the SSDs to know where on the data …