From: Jon Bendtsen <jon+lvm@silicide.dk>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] e2fsadm and snapshots?
Date: Fri Nov 1 02:19:01 2002 [thread overview]
Message-ID: <3DC238D1.54E65AEC@silicide.dk> (raw)
In-Reply-To: 1036112887.10402.88.camel@theory.jpl.nasa.gov
Jim King wrote:
>
> On Thu, 2002-10-31 at 15:25, Andreas Dilger wrote:
> > The LVM snapshot is the whole filesystem (with only the parts that
> > actually change being written to the snapshot LV) - no need to change
> > the filesystem size at all. All you need to change is the LV size.
>
> OK -- so using lvextend I can extend it. But once it's extended, I can
> no longer mount it. I get:
You dont need to unmount it to extend it.
May i suggest mounting the filesystems as ext2, if you are running ext3?
I run 5 scripts for the snapshots as well.
One is run every minute, and checks if there is less than 512M left on
the snapshot, then it extends it. (this is actualy 3 scripts, one using
find to execute another script, this one is called by cron, the 2. does
a lvdisplay on the snapshot, and pipes the data into a perl script, that
does checking and resizing + email sysadm (me))
The 4 other scripts are run every hour, every 8 hour, every day, and
every
sunday. They take a new snapshot, unmounts the old, mounts the new, and
removes the old.
Ontop of all this, i take backup using the day snapshot, and i'll soon
(setting it up today) get another server, that i will use rsync to
take a backup of the hourly snapshot to another server, which is
identical.
JonB
next prev parent reply other threads:[~2002-11-01 2:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-31 16:58 [linux-lvm] e2fsadm and snapshots? Jim King
2002-10-31 17:29 ` Andreas Dilger
2002-10-31 18:08 ` Jim King
2002-10-31 19:09 ` Jim King
2002-10-31 22:51 ` Andreas Dilger
2002-11-04 15:32 ` Jim King
2002-11-04 17:30 ` Andreas Dilger
2002-11-05 2:59 ` Joe Thornber
2002-11-01 2:19 ` Jon Bendtsen [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-05 11:25 re[2]: " Greg Freemyer
2002-11-05 13:14 ` Andreas Dilger
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=3DC238D1.54E65AEC@silicide.dk \
--to=jon+lvm@silicide.dk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox