ZFS slackspace, grepping it for data

grarpamp grarpamp at gmail.com
Sun Jan 27 21:34:22 UTC 2013


> zdb -mmm pool_name

Ahh, I saw this later too, thanks. Seems I've got 425k free ranges
to scan among 25k free txg's. This will take a while but
it's still a nice feature. I doubt it was meant for this
purpose though. More likely for debugging zfs structures
and data issues.

> for on-disk offset add 0x400000 If i remember correctly.

I could check for it with a string search near the head of data.
Does that fs to disk offset stay the same throughout the fs?

The minimum range size appears to be 4KiB (245k worth),
with another 75k at 8KiB and 100k more on up to 32KiB.
So not sure yet whether using zdb to collect the slack will
perform any worse than supplying the list to dd, or even
trying to write some C to avoid the shell overhead and further
to read the disk direct.

I occaisionally get failed assertions and core dumps with
various zdb operations. Is there interest in ticketing them?

Assertion failed: (object_count == usedobjs (0x0 == 0x1e33ec)), file
/re8/src/cddl/usr.sbin/zdb/../../../cddl/contrib/opensolaris/cmd/zdb/zdb.c,
line 1649.


More information about the freebsd-fs mailing list