View ZFS deduplication ratio on a dataset

deduplicationzfs

I have a tank consisting of several datasets, only one of which is configured to use deduplication.

How can I see the ratio for this dataset? I get a ratio of 1.00x for the whole pool but I imagine this is just reporting the ratio on what's in the tank, which is nothing (I only have datasets in the tank).

Best Answer

What you're referring to as a tank is really a ZFS pool and your datasets are ZFS filesystems within the pool.

ZFS deduplication has pool-wide scope and you can't see the dedup ratio for individual filesystems.

If you turn dedup on for a pool that already contains data, the existing data will not be automatically deduped and your ratio will still be 1.00x. Only newly written data will be deduped and then you may see the ratio increase.

Related Question