Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2013 10:02:57 +0100
From:      Adam Nowacki <nowakpl@platinum.linux.pl>
To:        freebsd-fs@freebsd.org
Subject:   Re: ZFS slackspace, grepping it for data
Message-ID:  <5104ED41.8020800@platinum.linux.pl>
In-Reply-To: <CAD2Ti2-1ROTxQXNA6FzWtcgnMoaAzvfcdh__zH7AVC7zCPsyzw@mail.gmail.com>
References:  <CAD2Ti2-1ROTxQXNA6FzWtcgnMoaAzvfcdh__zH7AVC7zCPsyzw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-01-27 09:36, grarpamp wrote:
> Say there's a 100GB zpool over a single vdev (one drive).
> It's got a few datasets carved out of it.
> How best to stroll through only the 10GB of slackspace
> (aka: df 'Avail') that is present?
> I tried making a zvol out of it but only got 10mb of zeros,
> which makes sense because zfs isn't managing anything
> written there in that empty zvol yet.
> I could troll the entire drive, but that's 10x the data and
> I don't really want the current 90gb of data in the results.
> There is zdb -R, but I don't know the offsets of the slack,
> unless they are somehow tied to the pathname hierarchy.
> Any ideas?

zdb -mmm pool_name
for on-disk offset add 0x400000 If i remember correctly.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5104ED41.8020800>