Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2012 11:11:53 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        Zeus Panchenko <zeus@ibs.dn.ua>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: is dedupe feature pool-wide or fs-wide?
Message-ID:  <CAOjFWZ43XMWmX4277ByjeF4Kfp-yA5ujqc=FcDvDUcqwZRJ7eg@mail.gmail.com>
In-Reply-To: <20120906210625.98392@relay.ibs.dn.ua>
References:  <20120906210625.98392@relay.ibs.dn.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 6, 2012 at 11:06 AM, Zeus Panchenko <zeus@ibs.dn.ua> wrote:
> please, forgive me this stupid question, but is dedup feature pool-wide
> or fs-wide indeed?
>
> what I mean is: if I have dedup=on on two fs, than while copying one
> file to the fist one and after that to the second one, I will or will
> not have data deduplicated on the second copying?
>
> am I correct to think if dedup is block-level then it is pool-wide?

It's pool-wide, but can be enabled/disabled on a per-dataset basis.

IOW, ZFS scans all dedup-enabled datasets for duplicate blocks.

So, copying from one dedup-enabled filesystem to another
dedupe-enabled filesystem will generated duplicate blocks that should
end up with only DDT updates and not use any extra storage space.

-- 
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ43XMWmX4277ByjeF4Kfp-yA5ujqc=FcDvDUcqwZRJ7eg>