X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 25C22D1C910 for ; Mon, 11 Aug 2003 03:13:25 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 32600-10 for ; Mon, 11 Aug 2003 00:11:55 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 7A71AD1C4E3 for ; Mon, 11 Aug 2003 00:13:13 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h7B3DCv06482; Sun, 10 Aug 2003 23:13:12 -0400 (EDT) From: Bruce Momjian Message-Id: <200308110313.h7B3DCv06482@candle.pha.pa.us> Subject: Re: Backup routine In-Reply-To: To: Christopher Browne Date: Sun, 10 Aug 2003 23:13:12 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/137 X-Sequence-Number: 9859 Christopher Browne wrote: > The world rejoiced as peterandsarah@blueyonder.co.uk (Peter and Sarah Childs) wrote: > > However there is a third way. That should be safe but some > > people may disagree with me! If you can "freeze" the disk while you > > take the backup. The backup can be used as if the computer had > > crashed with no hard disk failure at all. Ie WAL will be consistant > > and database may take longer but once it is up it will be safe (like > > paragaph 1). Now freezeing a disk for backup is not that > > difficult. You should be doing it anyway for user file > > consistancy. (You don't want the first 30 pages of you document to > > disagree with the end because somone was saving it during the > > backup! > > I heard D'Arcy Cain indicate that some SAN systems (I think he > mentioned NetApp) support this sort of thing, too. Digital's AdvFS > also supports it. > > Of course, if you take this approach, you have to make _certain_ that > when you "freeze" a replica of a filesystem, that _ALL_ of the > database is contained in that one filesystem. If you move WAL to a > different filesystem, bets would be off again... Also, I assume you have to stop the server just for a moment while you do the freeze, right? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073