From: David Brown <lvm@davidb.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Enterprise Backup Software with good support for LVM
Date: Tue, 29 Nov 2005 11:19:06 -0800 [thread overview]
Message-ID: <20051129191905.GA10770@old.davidb.org> (raw)
In-Reply-To: <0456A130F613AD459887FF012652963F33EB75@mail7.amherst.edu>
On Tue, Nov 29, 2005 at 01:43:17PM -0500, Steffen Plotner wrote:
> I would like to add that creating backups of LVM snapshots is sensible,
> as the data is in a crash-consistent state. Today's operating systems
> can definitely handle this type of state. I have developed scripts that
> effectively netcat contents from LVM snapshots to a remote machine
> (either into another logical volume or simply a file).
One other thing to point out. Any backup utility that is based on
timestamps, as opposed to a file database, is going to occasionally miss
changes made between the creation of the snapshot and the invocation of the
backup.
For example. I perform the following.
- Make snapshot of /foo.
- Create file /foo/bar.
- Backup the /foo snapshot.
At this point, the backup of /foo won't contain the file 'bar', since it
was created after the snapshot was made.
However, if the backup software uses the time that the backup was created,
rather than the time the snapshot was created, it will think that /foo/bar
would have been included in the backup, and won't catch it for future
incrementals.
If the backup software knows about LVM (creating the snapshots itself, for
example), then it _should_ know to use the correct timestamp. My personal
experience is that it is very rare to find backup software that will
restore to the same filesystem at the time of backup. Even the very
expensive ones don't always do the right thing.
As an example, GNU tar can be coerced into doing the right thing with LVM
snapshots. Something like this.
# touch /tmp/snapstamp
# lvcreate -s ...
# mount ...
# tar ... -g $lfile ...
Then fix up the timestamp on the backup.
# stat -c %Y /tmp/snapstamp > $lfile.bak
# tail -n +2 $lfile >> $lfile.bak
# mv $lfile.bak $lfile
Star accepts a 'dumpdate=/tmp/snapstamp' option to use instead of current
time.
Dave
next prev parent reply other threads:[~2005-11-29 19:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-29 18:43 [linux-lvm] Enterprise Backup Software with good support for LVM Steffen Plotner
2005-11-29 18:50 ` David Brown
2005-11-29 19:19 ` David Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-29 20:51 Allen Bolderoff
2005-11-29 20:49 Allen Bolderoff
2005-11-29 18:03 Mark F
2005-11-29 18:29 ` Michael Loftis
2005-11-29 18:40 ` Graham Wood
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=20051129191905.GA10770@old.davidb.org \
--to=lvm@davidb.org \
--cc=linux-lvm@redhat.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).