Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Dec 2011 16:11:55 -0500
From:      Zaphod Beeblebrox <zbeeble@gmail.com>
To:        krad <kraduk@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS dedup and replication
Message-ID:  <CACpH0Mc_OeoVeqxOThqbnVyyn-kVwALcutQ7c7uaw0tM25_BBw@mail.gmail.com>
In-Reply-To: <CALfReyckuygjfp9mot7_MJaAAb-Sk-fsX_TwNGsXtdDKNQ0F8Q@mail.gmail.com>
References:  <CAEUA181wUZC-KjVwcm=tTY0DoBLzrNAuBF3aFimSbLB=xht0jw@mail.gmail.com> <CALfReycy29VdegrmDrBJ7U3Mjt7%2BOxUvN7hxOKHOqSX4jD5_kg@mail.gmail.com> <4ED77B09.1090709@brockmann-consult.de> <CALfReyckuygjfp9mot7_MJaAAb-Sk-fsX_TwNGsXtdDKNQ0F8Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 1, 2011 at 11:42 AM, krad <kraduk@gmail.com> wrote:
> On 1 December 2011 13:03, Peter Maloney
> <peter.maloney@brockmann-consult.de>wrote:
>
>> On 12/01/2011 11:20 AM, krad wrote:

>> On my system with 12 TiB used up, what I do in a script is basically:

>> -generate a snap name
>> -make a recursive snapshot
>> -ssh to the remote server and compare snapshots (find the latest common
>> snapshot, to find an incremental reference point)
>> -if a usable reference point exists, start the incremental send like
>> this (which wipes all changes on the remote system without confirmation)=
:
>> =A0 =A0 =A0 =A0zfs send -R -I ${destLastSnap} ${srcLastSnap} | ssh ${des=
tHost}
>> zfs recv -d -F -v ${destPool}
>> -and if no usable reference point existed, then do a full send,
>> non-incremental:
>> =A0 =A0 =A0 =A0zfs send -R ${srcLastSnap} | ssh ${destHost} zfs recv -F =
-v
>> ${destDataSet}


>> The part about finding the reference snapshot is the most complicated
>> part of my script, and missing from anything else I found online when I
>> was looking for a good solution. For example this script:
>> http://blogs.sun.com/clive/resource/zfs_repl.ksh
>> found on this page:
>> http://blogs.oracle.com/clive/entry/replication_using_zfs

Not that everyone doesn't enjoy inventing their own wheel, but would
you mind sharing your snapshot parser?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACpH0Mc_OeoVeqxOThqbnVyyn-kVwALcutQ7c7uaw0tM25_BBw>