* retry:snapshots: COW drive capacity and monitoring space usage
@ 2009-10-08 3:50 J. Hart
2009-10-08 17:53 ` [linux-lvm] " Mike Snitzer
0 siblings, 1 reply; 3+ messages in thread
From: J. Hart @ 2009-10-08 3:50 UTC (permalink / raw)
To: dm-devel; +Cc: af804
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. Any
information on this would be most appreciated.
J. Hart
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: retry:snapshots: COW drive capacity and monitoring space usage
2009-10-08 3:50 retry:snapshots: COW drive capacity and monitoring space usage J. Hart
@ 2009-10-08 17:53 ` Mike Snitzer
0 siblings, 0 replies; 3+ messages in thread
From: Mike Snitzer @ 2009-10-08 17:53 UTC (permalink / raw)
To: device-mapper development; +Cc: af804, linux-lvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-lvm] Re: retry:snapshots: COW drive capacity and monitoring space usage
@ 2009-10-08 17:53 ` Mike Snitzer
0 siblings, 0 replies; 3+ messages in thread
From: Mike Snitzer @ 2009-10-08 17:53 UTC (permalink / raw)
To: device-mapper development; +Cc: af804, linux-lvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-08 17:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-08 3:50 retry:snapshots: COW drive capacity and monitoring space usage J. Hart
2009-10-08 17:53 ` Mike Snitzer
2009-10-08 17:53 ` [linux-lvm] " Mike Snitzer
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.