FG
💻 Software

How can I tell if ZFS (zfs-fuse) dedup/compression is applied to a particular file?

Fresh5 days ago
Mar 15, 20266272 views
Confidence Score0%
0%

Problem

I have a zfs formatted partition using zfs-fuse for linux (Ubuntu). I had used it for a while, and then enabled dedup and compression on it (zfs set compression=on/dedup=on). Now I think I have some files that are dedup'ed and compressed, and file that are not yet. It was OK, but sometimes I was co…

Error Output

First, made some dataset and directories:
$ sudo zfs create zfs/test
$ sudo install -d -m 1777 /zfs/test/orig /zfs/test/copy

Created some files:
$ y…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I tell if ZFS (zfs-fuse) dedup/compression is applied to a particular file?

Low Risk

You can get deduplication overall statistics with the command. For per file compression status, it's not very straightforward but you might use this: This will output lines looking like these ones: The first column is the inode number, column 5 and …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment