Hi,

Is there a way to see which files have been deduped, so I can copy them again 
an un-dedupe them?

unfortunately, that's not easy (I've tried it :) ).

The issue is that the dedup table (which knows which blocks have been deduped)
doesn't know about files.

And if you pull block pointers for deduped blocks from the dedup table,
you'll need to backtrack from there through the filesystem structure
to figure out what files are associated with those blocks.

(remember: Deduplication happens at the block level, not the file level.)

So, in order to compile a list of deduped _files_, one would need to extract
the list of dedupes _blocks_ from the dedup table, then chase the pointers
from the root of the zpool to the blocks in order to figure out what files
they're associated with.

Unless there's a different way that I'm not aware of (and I hope someone can
correct me here), the only way to do that is run a scrub-like process and
build up a table of files and their blocks.

Cheers,
  Constantin

--

Constantin Gonzalez Schmitz | Principal Field Technologist
Phone: +49 89 460 08 25 91 || Mobile: +49 172 834 90 30
Oracle Hardware Presales Germany

ORACLE Deutschland B.V. & Co. KG | Sonnenallee 1 | 85551 Kirchheim-Heimstetten

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Rijnzathe 6, 3454PV De Meern, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven

Oracle is committed to developing practices and products that help protect the
environment
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to