X-Original-To: pgsql-admin@postgresql.org Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 74196475AE5 for ; Mon, 17 Mar 2003 09:59:30 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h2HExRub006140; Mon, 17 Mar 2003 09:59:28 -0500 (EST) To: "Matt Clark" Cc: =?iso-8859-1?Q?Ragnar_Kj=C3zrstad?= , "Peter Eisentraut" , "Murthy Kambhampaty" , pgsql-admin@postgresql.org Subject: Re: LVM snapshots In-reply-to: References: Comments: In-reply-to "Matt Clark" message dated "Mon, 17 Mar 2003 14:41:16 +0000" Date: Mon, 17 Mar 2003 09:59:27 -0500 Message-ID: <6139.1047913167@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200303/257 X-Sequence-Number: 7897 "Matt Clark" 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