From owner-freebsd-fs@FreeBSD.ORG Wed Aug 8 16:32:28 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26075106564A for ; Wed, 8 Aug 2012 16:32:28 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9B1CD8FC0A for ; Wed, 8 Aug 2012 16:32:27 +0000 (UTC) Received: by lbbgk8 with SMTP id gk8so714224lbb.13 for ; Wed, 08 Aug 2012 09:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=0dPW2h5n9W4mnoEDpjNX0Ga+A70iy1gKa6fMdq8tnYw=; b=xBlgJrlvd4ngg5EjHgEx+MPrRqlqLqeAGy3o3imbMCOmQlJfHJl+J7uJG0Dd8cShPF PErjaz+5BQir/oVttSEVWO4KaTEqaXcaaNe0oDSoIykVhrrMgu5E2ref6oQUJgk5YBiv pvuWzwLdTP/kjGYnZC3G8OOf27cOJkZ5Z4J8z6s74k8a+hsn6RV75kISk6C31O4clI4d D81bpAXyAepGcEA9PMIwKOotC9N2SoAqOURKSQHp626llYLI5aEP/ZdaKQ6QN8YLQde0 ZqohRHETDMmsithYlK9siOoz/f+DaXOo+QYzeBYKh6HueMyv0cbZas9gV1aT6GSFSeDW dMDw== MIME-Version: 1.0 Received: by 10.152.111.71 with SMTP id ig7mr18632350lab.28.1344443546465; Wed, 08 Aug 2012 09:32:26 -0700 (PDT) Received: by 10.114.16.229 with HTTP; Wed, 8 Aug 2012 09:32:26 -0700 (PDT) In-Reply-To: <0c9d01cd7580$1b8ecee0$52ac6ca0$@simons-rock.edu> References: <0c8801cd757a$601018e0$20304aa0$@simons-rock.edu> <0c9d01cd7580$1b8ecee0$52ac6ca0$@simons-rock.edu> Date: Wed, 8 Aug 2012 09:32:26 -0700 Message-ID: From: Freddie Cash To: Brian Gold Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: undoing zfs deduplication X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Aug 2012 16:32:28 -0000 On Wed, Aug 8, 2012 at 9:08 AM, Brian Gold wrote: >> Yes, that is the only option for "un-deduping" a filesystem. >> >> zfs send/recv from the deduped filesystem to one with dedup=3Doff. Then= delete the deduped filesystem. >> >> Note: a "zfs destroy" will use a lot of RAM as it has to go through an = update all the DDT entries. You may have to manually delete >> individual snapshots, and then manually delete individual directories in= the filesystem, before destroying the actual filesystem. You >> may run into a situation where you don't have enough RAM/ARC to destroy = a deduped filesystem. >> >> -- >> Freddie Cash >> fjwcash@gmail.com > > From what I've read so far, it looks like a "zfs send -R" would send the = filesystem and all of the snapshots I've made. So would something like this= work to move the duped filesystem and all of its snapshots over to a new u= ndeduped filesystem: "zfs send -R backup/duped | zfs receive -duv backup/de= duped" ? Yes. That will create a new filesystem and snapshots of the non-deduped da= ta. You would still have to delete the deduped filesystem, though, to clear out the DDT and remove the extra RAM requirements of dedupe. --=20 Freddie Cash fjwcash@gmail.com