From: Jeff Frost <jeff@frostconsultingllc.com>
To: pgsql-admin@postgresql.org
Subject: Re: Question on placing database on a network attached
Date: Sat, 30 Jul 2005 15:56:05 -0700 (PDT)
Message-ID: <Pine.LNX.4.63.0507301550280.2733@discord.dyndns.org> (raw)
In-Reply-To: <01c901c5954d$869ec660$6401a8c0@irene>
References: <01a201c59541$59648560$6401a8c0@irene>
<42EBE690.2040100@metatrontech.com>
<01c901c5954d$869ec660$6401a8c0@irene>
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 <jeff@frostconsultingllc.com>
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.)
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: jeff@frostconsultingllc.com
Subject: Re: Question on placing database on a network attached
In-Reply-To: <Pine.LNX.4.63.0507301550280.2733@discord.dyndns.org>
References: <01a201c59541$59648560$6401a8c0@irene> <42EBE690.2040100@metatrontech.com> <01c901c5954d$869ec660$6401a8c0@irene> <Pine.LNX.4.63.0507301550280.2733@discord.dyndns.org>
* 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