On 10/22/10 15:34, Peter Taps wrote:
Folks,

Let's say I have a volume being shared over iSCSI. The dedup has been turned on.

Let's say I copy the same file twice under different names at the initiator 
end. Let's say each file ends up taking 5 blocks.

For dedupe to work, each block for a file must match the corresponding block 
from the other file. Essentially, each pair of block being compared must have 
the same start location into the actual data.

No, ZFS doesn't care about the file offset, just that the checksum of the blocks matches.

For a shared filesystem, ZFS may internally ensure that the block starts match. However, over iSCSI, the initiator does not even know about the whole block mechanism that zfs has. It is just sending raw bytes to the target. This makes me wonder if dedup actually works over iSCSI.
Can someone please enlighten me on what I am missing?

Thank you in advance for your help.

Regards,
Peter

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to