From: Mark Woodward <markw@mohawksoft.com>
To: linux-lvm@redhat.com
Cc: Linda Walsh <lvm@tlinx.org>
Subject: Re: [linux-lvm] access or interface to list of blocks that have, changed via C.O.W.?
Date: Wed, 03 Oct 2012 11:42:16 -0400 [thread overview]
Message-ID: <506C5CD8.2070502@mohawksoft.com> (raw)
In-Reply-To: <mailman.18903.1349274978.3548.linux-lvm@redhat.com>
There are a couple projects that do this. They are pretty much based on
ddsnap. You can google it.
In LVM2 world, it is fairly trivial to do what you want to do.
(1) create a virtual disk.
(2) take the "old" snapshot.
(3) write to lvdisk
(4) take the "new" snapshot.
At this stage the COW device of the "old" snapshot has all the data that
has changed up to and including the "new" snapshot. You can back that
up. As a differential. Then delete the "old" snapshot. The "new"
snapshot is now renamed to the old snapshot.
Take the next "new" snapshot. The renamed "old" snapshot has the changes
since the previous snapshot up to and including the latest "new"
snapshot. Just repeat this process, and you can do incremental backups
of your LVM disks.
The biggest issue with performance is the COW aspect of snapshots. I
have found using 64K chunk sizes greatly increase performance by
reducing COW to snapshots. The default size if 4K.
On 10/03/2012 10:36 AM, linux-lvm-request@redhat.com wrote:
> From: Linda Walsh<lvm@tlinx.org>
> To: LVM general discussion and development<linux-lvm@redhat.com>
> Subject: [linux-lvm] access or interface to list of blocks that have
> changed via C.O.W.?
> Message-ID:<50651097.2060200@tlinx.org>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> I'm trying to use snapshots that are active for a day or so to grab
> differences between successive days for allowing me to display previous
> versions of files over a month or so...
>
> They aren't a replacement for my daily towero'hanoi-backups, but
> they are a great deal easier to use.
>
> The chink in my plan is the time it is taking to do a diff -- not really
> a fatal chink but annoying. It takes anywhere from 80-100 minutes for
> rsync to sum up the changes and copy them to a third volume each day.
>
> I figured well sheesh, the lvm should already know what sectors are
> different. If I could combine that info against a inode+blockmap, I might
> get that diff computation down to under 10 minutes maybe under 5.
>
> The contents of the files that are computed as differences by rsync usually
> take a minute or less to actually copy into final volume -- anywhere between
> 800Mb - 2.5GB out of a 1TB volume. So I I could shortcut that diff
> process,
> might make it practical to do more than one snapshot a day;...
>
> Is there some interface for getting at that information or would it have
> to be written from scratch?
next parent reply other threads:[~2012-10-03 15:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.18903.1349274978.3548.linux-lvm@redhat.com>
2012-10-03 15:42 ` Mark Woodward [this message]
2012-10-04 2:52 ` [linux-lvm] access or interface to list of blocks that have, changed via C.O.W.? Linda Walsh
2012-10-04 3:41 ` Mark Woodward
2012-10-04 5:05 ` Linda Walsh
2012-10-04 10:17 ` Mark Woodward
2012-10-04 14:44 ` Bryn M. Reeves
2012-10-04 15:02 ` Mark Woodward
2012-10-04 22:00 ` Stuart D Gathman
2012-10-05 9:39 ` Bryn M. Reeves
2012-10-05 9:26 ` Bryn M. Reeves
2012-10-05 11:21 ` Mark Woodward
2012-10-16 12:15 ` Mark Woodward
2012-10-17 10:20 ` Lars Ellenberg
2012-09-28 2:51 [linux-lvm] access or interface to list of blocks that have " Linda Walsh
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=506C5CD8.2070502@mohawksoft.com \
--to=markw@mohawksoft.com \
--cc=linux-lvm@redhat.com \
--cc=lvm@tlinx.org \
/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).