Is there an easy way to find out what datasets have dedup''d data in them. Even better would be to discover which files in a particular dataset are dedup''d. I ran # zdb -DDDD which gave output like: index 1055c9f21af63 refcnt 2 single DVA[0]=<0:1e274ec3000:2ac00:STD:1> [L0 deduplicated block] sha256 uncompressed LE contiguous unique unencrypted 1-copy size=20000L/20000P birth=236799L/236799P fill=1 cksum=55c9f21af6399be:11f9d4f5ff4cb109:2af8b798671e47ba:d19caf78da295df5 How can I translate this into datasets or files? -B -- Brandon High : bhigh at freaks.com
On 04/29/11 07:44 AM, Brandon High wrote:> Is there an easy way to find out what datasets have dedup''d data in > them. Even better would be to discover which files in a particular > dataset are dedup''d. >Dedup is at the block, not file level. -- Ian.
On Thu, Apr 28, 2011 at 3:48 PM, Ian Collins <ian at ianshome.com> wrote:> Dedup is at the block, not file level.Files are usually composed of blocks. -B -- Brandon High : bhigh at freaks.com
On Thu, 2011-04-28 at 15:50 -0700, Brandon High wrote:> On Thu, Apr 28, 2011 at 3:48 PM, Ian Collins <ian at ianshome.com> wrote: > > Dedup is at the block, not file level. > > Files are usually composed of blocks. > > -B >I think the point was, it may not be easy to determine which file a given block is part of. I don''t think stuff is stored as a doubly-linked-list. That is, the file metadata lists the blocks associated with that file, but the block itself doesn''t refer back to the file metadata. Which means, that while I can get a list of blocks which are deduped, it may not be possible to generate a list of files from that list of blocks. -- Erik Trimble Java System Support Mailstop: usca22-317 Phone: x67195 Santa Clara, CA Timezone: US/Pacific (GMT-0800)
On Thu, Apr 28, 2011 at 4:06 PM, Erik Trimble <erik.trimble at oracle.com> wrote:> Which means, that while I can get a list of blocks which are deduped, it > may not be possible to generate a list of files from that list of > blocks.Is it possible to determine which datasets the blocks are referenced from? Since I have some datasets with dedup''d data, I''m a little paranoid about tanking the system if they are destroyed. -B -- Brandon High : bhigh at freaks.com