From owner-freebsd-fs@FreeBSD.ORG Fri Dec 2 19:04:38 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F36E106564A for ; Fri, 2 Dec 2011 19:04:38 +0000 (UTC) (envelope-from peter.maloney@brockmann-consult.de) Received: from mo-p05-ob6.rzone.de (mo-p05-ob6.rzone.de [IPv6:2a01:238:20a:202:53f5::1]) by mx1.freebsd.org (Postfix) with ESMTP id 86F4E8FC0C for ; Fri, 2 Dec 2011 19:04:37 +0000 (UTC) X-RZG-AUTH: :LWIKdA2leu0bPbLmhzXgqn0MTG6qiKEwQRWfNxSw4HzYIwjsnvdDt2oX8drk23mufl0QIA== X-RZG-CLASS-ID: mo05 Received: from [192.168.179.42] (hmbg-5f760a09.pool.mediaWays.net [95.118.10.9]) by smtp.strato.de (cohen mo30) (RZmta 26.10 AUTH) with (DHE-RSA-AES256-SHA encrypted) ESMTPA id n04b34nB2GbFDn ; Fri, 2 Dec 2011 20:04:26 +0100 (MET) Message-ID: <4ED92139.6010900@brockmann-consult.de> Date: Fri, 02 Dec 2011 20:04:25 +0100 From: Peter Maloney User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Jeremy Chadwick References: <4ED77B09.1090709@brockmann-consult.de> <4ED87FA6.6010408@brockmann-consult.de> <20111202142656.GA7104@e4310> <20111202145008.GA27853@icarus.home.lan> In-Reply-To: <20111202145008.GA27853@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS dedup and replication 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: Fri, 02 Dec 2011 19:04:38 -0000 Am 02.12.2011 15:50, schrieb Jeremy Chadwick: > On Fri, Dec 02, 2011 at 03:27:03PM +0100, Michel Le Cocq wrote: >> it's just me or there is no attachment ? > The mailing list stripped the attachment. The previous individual will > need to put it up on the web somewhere. > It is possible that I forgot to attach it. I assumed it would be stripped off but the ones in the to/cc would get it. Here it is on the company website: http://www.brockmann-consult.de/peter2/zfs.tgz Disclaimer/notes: -provided as is... might destroy your system, furthermore, I am not responsible for bodily injury nor nuclear war that may result from misuse -there are no unit tests, and no documentation other than a few comments that are possibly only coherent when I read them. For example, it says that it does it recursively and rolls back the destination dataset, but there are a few undocumented cases I can't remember when I needed to do something manual like delete a snapshot, or destroy a dataset. Maybe that is all in the past. I don't know. -the zfs_repl2.bash is the one that makes snapshots and replicates which I wrote myself. The other ksh one is the Oracle one I linked above, and the .sh version of it was just what I was working on to try to make it work reliably, before redoing it all myself (reinventing the wheel is indeed fun). -especially beware of the deleteOldSnapshots.bash which is not well tested and not used yet (and deleteEmptySnapshots.bash which does not work and I believe cannot work). -granted transferable your choice of any present or future version of the BSD or GPL license and another note, I meant to study these which might be better versions of the same thing, or something different, but never got around to it: /usr/ports/sysutils/zfs-replicate/ /usr/ports/sysutils/zfsnap/ /usr/ports/sysutils/zfs-periodic