From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matt Clark <matt@ymogen.net>
Cc: Ragnar KjÃzrstad <postgres@ragnark.vestdata.no>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: LVM snapshots
Date: Mon, 17 Mar 2003 09:59:27 -0500
Message-ID: <6139.1047913167@sss.pgh.pa.us> (raw)
In-Reply-To: <OAEAKHEHCMLBLIDGAFELEEDJDBAA.matt@ymogen.net>
References: <OAEAKHEHCMLBLIDGAFELEEDJDBAA.matt@ymogen.net>
"Matt Clark" <matt@ymogen.net> writes:
> The snapshot volume holds the *original* data from the frozen volume,
> using copy-on-write, so neither taking nor releasing the snapshot
> involve any copying of data.
Ah, I see: so while the freeze is on, writes to the frozen volume cost
about 3x normal (1 write -> 1 read + 2 writes), but establishing and
discontinuing the freeze cost nothing. And if you have a crash the
volume is still in the proper state. Good.
> If you run out of room on the snapshot volume because you've written
> too much data to the frozen volume then you are buggered, pure and
> simple.
No, you only have to drop the freeze; the original volume is not broken.
I would wonder though about the datastructure that LVM uses to remember
which blocks of the frozen volume have been copied (and where) on the
snapshot area. I assume this table lives in kernel memory --- what
happens if it gets large?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, matt@ymogen.net, postgres@ragnark.vestdata.no, peter_e@gmx.net, murthy.kambhampaty@goeci.com
Subject: Re: LVM snapshots
In-Reply-To: <6139.1047913167@sss.pgh.pa.us>
References: <OAEAKHEHCMLBLIDGAFELEEDJDBAA.matt@ymogen.net> <6139.1047913167@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox