X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E92CD5297B for ; Sat, 30 Jul 2005 19:56:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 69056-08 for ; Sat, 30 Jul 2005 22:56:07 +0000 (GMT) Received: from smtp113.sbc.mail.mud.yahoo.com (smtp113.sbc.mail.mud.yahoo.com [68.142.198.212]) by svr1.postgresql.org (Postfix) with SMTP id 563635287D for ; Sat, 30 Jul 2005 19:56:06 -0300 (ADT) Received: (qmail 26903 invoked from network); 30 Jul 2005 22:56:09 -0000 Received: from unknown (HELO discord.dyndns.org) (jeffroe996@sbcglobal.net@69.227.49.166 with plain) by smtp113.sbc.mail.mud.yahoo.com with SMTP; 30 Jul 2005 22:56:08 -0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by discord.dyndns.org (8.13.1/8.13.1) with ESMTP id j6UMu5Ej004118 for ; Sat, 30 Jul 2005 15:56:05 -0700 Date: Sat, 30 Jul 2005 15:56:05 -0700 (PDT) From: Jeff Frost X-X-Sender: jeff@discord.dyndns.org To: pgsql-admin@postgresql.org Subject: Re: Question on placing database on a network attached In-Reply-To: <01c901c5954d$869ec660$6401a8c0@irene> Message-ID: References: <01a201c59541$59648560$6401a8c0@irene> <42EBE690.2040100@metatrontech.com> <01c901c5954d$869ec660$6401a8c0@irene> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/261 X-Sequence-Number: 18317 If you are using postgresql-8.0.x, then you can use PITR and base backups to achieve a fairly consistent backup on a NAS which restores rather quickly. If the NAS supports hard links, then you can use the --link-dest option of rsync to make the base backups quite fast and still retain more than one base backup at a time. The only problem with this solution is that you need at least as much disk space as your PGDATA directory contains, plus enough space for the WAL archives between base backups. If the NAS does not support hard links, but does do snapshotting as you indicate, then using rsync with the --partial flag against the previous base backup would also be quite fast and bandwidth efficient. The snapshotting on the NAS would take care of the prior version base backup for you and all you need do is rotate out the WAL archives according to how many snapshots you care about. Using PITR in this way has the added benefit of allowing you to restore the DB to some point in the past if need be. -- Jeff Frost, Owner Frost Consulting, LLC http://www.frostconsultingllc.com/ Phone: 650-780-7908 FAX: 650-649-1954 On Sat, 30 Jul 2005, N/A wrote: > The NAS is a Network Appliance 920c. I understand that an individual file > while be "intact" during a snap, (not sure I believe it, but that's what I'm > told). The NAS may be able to monitor the state of an individual file and > not "snap" it if it is on an "open" state or has a pending write, or some > such, but as the NAS has no knowledge of groups of files that need to exist > in a known state, (it deals on the file level), it cannot guarantee a > consistent state across a group of files. (The database will be on the NAS > and will be NFS mounted filesystem to a Linux Redhat 3 running the > application.)