From: Petro <petro@auctionwatch.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Automatic snapshot system?
Date: Thu Nov 29 14:58:02 2001 [thread overview]
Message-ID: <20011129130007.F20807@auctionwatch.com> (raw)
In-Reply-To: <ufa667ts3zh.fsf@epithumia.math.uh.edu>
On Thu, Nov 29, 2001 at 02:42:58PM -0600, Jason L Tibbitts III wrote:
> >>>>> "p" == petro <petro@auctionwatch.com> writes:
>
> p> We have a home-brewed perl script called from cron that does a
> p> snap, rsync's out the data, then releases the snapshot.
> Interesting, but not quite what I'm trying to do. Essentially I'd
> like to use snapshots as a sort of quick online backup to guard
> against users nuking their files. Of course we do backups nightly,
> but restoring from a snapshot is much quicker than messing with tapes.
Well, I won't get into the debate on whether it's better to protect
the users or educate them (ie easy to access backups make users
sloppy kind of argument), but were I tasked with such a thing, I'd
do it thus:
I'm assuming a situation were you have "working hours", but if
that's not the case, then only the times have to be modified:
Establish a cron-job to run at <work-start-time>, <work-start+4> and
<work-end>. This cron job calls a script that expires the old snap
and creates a new one. If you want (for whatever reason) to keep
multiple old snapshots around (and it can be done I believe) you
would just make the script smarter and have it expire <current-<x>>
snapshots.
> So, depending on how snapshots actually work and the performance
> penalty they incur and various other bits, I was thinking of doing a
> daily or twice-daily snapshot, keeping them around for a few days,
> then deleting them. But that entails having around 100 snapshots
> sitting around, and I don't know if there are performance problems
> with doing that.
I'd imagine there is, since the snap doesn't "store" all the data,
but rather it stores the unchanged version of changed data, meaning
that as long as the snap is active, it's getting writes. You may be
able to deactivate a snap and keep it around, but I don't know how
that works.
--
Share and Enjoy.
next prev parent reply other threads:[~2001-11-29 14:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-29 1:07 [linux-lvm] Automatic snapshot system? Jason L Tibbitts III
2001-11-29 2:46 ` Petro
2001-11-29 14:41 ` Jason L Tibbitts III
2001-11-29 14:58 ` Petro [this message]
2001-11-29 15:16 ` Jason L Tibbitts III
2001-11-30 2:53 ` Joe Thornber
2001-11-30 9:11 ` Jason L Tibbitts III
2001-12-03 8:18 ` Heinz J . Mauelshagen
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=20011129130007.F20807@auctionwatch.com \
--to=petro@auctionwatch.com \
--cc=linux-lvm@sistina.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.