From: Mike Snitzer <snitzer@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Cc: af804@bfn.org, linux-lvm@redhat.com
Subject: [linux-lvm] Re: retry:snapshots: COW drive capacity and monitoring space usage
Date: Thu, 8 Oct 2009 13:53:22 -0400 [thread overview]
Message-ID: <20091008175321.GB11142@redhat.com> (raw)
In-Reply-To: <4ACD61A3.3020407@bfn.org>
On Wed, Oct 07 2009 at 11:50pm -0400,
J. Hart <af804@bfn.org> wrote:
> Greetings All,
>
> I didn't see anything come back, so I'm giving it one last try. I
> apologize if this is a duplicate.
>
> After having built my own distro up from source code (just to see if I
> could), I've got snapshotting set up successfully on my system using the
> kernel device mapping facility, dmsetup, and a COW drive. I understand
> from my reading that it is possible for the COW drive to run out of
> space while it is in use. Since it is not mounted and does not use a
> filesystem as far as I know, I am wondering how one might go about
> deciding on how big a drive to use, and monitoring space usage.
You need to size your snapshot proportional to the rate of change you
expect during the life of the snapshot. This change can happen to
either the origin device or directly to the snapshot device. Regardless
of which one; if you expect excessive change you want to size the
snapshot larger, or vice-versa if you expect little change.
As for monitoring, LVM2 provides dmeventd-based snapshot usage
monitoring that is enabled by default as of LVM2 2.02.53.
When you're low on space you'll see messages like the following in
/var/log/messages:
Sep 16 21:15:05 really-raw dmeventd[12522]: dmeventd ready for processing.
Sep 16 21:15:11 really-raw lvm[12522]: Monitoring snapshot test-testlv_snap
Sep 16 21:15:15 really-raw lvm[12522]: Snapshot test-testlv_snap is now 92% full.
Mike
parent reply other threads:[~2009-10-08 17:53 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <4ACD61A3.3020407@bfn.org>]
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=20091008175321.GB11142@redhat.com \
--to=snitzer@redhat.com \
--cc=af804@bfn.org \
--cc=dm-devel@redhat.com \
--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).