From: Simon Kirby <sim@hostway.ca>
To: Fred van Zwieten <fvzwieten@gmail.com>
Cc: "K. Richard Pixley" <rich@noir.com>, linux-btrfs@vger.kernel.org
Subject: Re: remote mirroring in the works?
Date: Mon, 30 Aug 2010 23:38:41 -0700 [thread overview]
Message-ID: <20100831063841.GF29552@hostway.ca> (raw)
In-Reply-To: <AANLkTimNOqfQHwPmJk4mQUsFOwORHtZvyZ_8QZ5om=wT@mail.gmail.com>
On Tue, Aug 31, 2010 at 07:07:29AM +0200, Fred van Zwieten wrote:
> Hmmm, maybe, but rsync would take a lot of time to find the changes.
> the actual blocks of a snap _are_ the changes, that's why SnapMirror
> is very efficient. And, I don't see how rsync will retain the snap's
> between both sites. It would be great if a tool like rsync could have
> access to the changed blocks in a snap. Don't know if btrfs exposes
> these somehow.
rsync doesn't have the hinting required to do this efficiently. It has
to scan the whole thing every time it is run, and isn't anything like a
continuous replication in this respect. Also, We've had problems in the
past with very large file systems causing rsync to run out of memory,
because it builds a file list in memory. This lead us to build a "cpbk"
tool that basically did the same thing without file listsm, which turned
out to be a piece of crap, so some other guy kindly rewrote it, but he
unfortunately missed the original point entirely and rewrote it using
file lists. Sigh.
Anyway, there _is_ this interface:
btrfs subvolume find-new <path> <last_gen>
List the recently modified files in a filesystem.
Eg:
btrfs sub find-new /mnt 0
This should print all files on the file system, and the last transaction
ID marker. This can be used to call the interface again, which lists
only new changed things since that ID.
So, it might be pretty easy to glue these tools together, for now, until
something does this automatically and/or in some more efficient or
low-level way.
Simon-
next prev parent reply other threads:[~2010-08-31 6:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTinmSdHwXXq3s64sM39GjacafgwgTjPadZGHuway@mail.gmail.com>
2010-08-30 17:07 ` remote mirroring in the works? Fred van Zwieten
2010-08-30 17:21 ` Bryan Whitehead
2010-08-30 17:33 ` Roy Sigurd Karlsbakk
2010-08-30 17:55 ` K. Richard Pixley
2010-08-30 17:59 ` Roy Sigurd Karlsbakk
2010-08-30 18:14 ` K. Richard Pixley
2010-08-31 6:30 ` Simon Kirby
2010-08-31 18:44 ` Fred van Zwieten
2010-09-06 21:50 ` David Nicol
2010-09-07 0:04 ` K. Richard Pixley
2010-08-30 21:15 ` Fred van Zwieten
2010-08-30 21:23 ` Freddie Cash
2010-08-30 22:56 ` K. Richard Pixley
2010-08-31 5:07 ` Fred van Zwieten
2010-08-31 6:38 ` Simon Kirby [this message]
2010-08-31 18:29 ` Goffredo Baroncelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100831063841.GF29552@hostway.ca \
--to=sim@hostway.ca \
--cc=fvzwieten@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=rich@noir.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).