pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Clark <matt@ymogen.net>
To: emurphy1@email.arizona.edu
To: pgsql-admin@postgresql.org
Subject: Re: Snapshot as Backup
Date: Tue, 13 Jan 2004 17:59:09 -0000
Message-ID: <OAEAKHEHCMLBLIDGAFELKEBNEHAA.matt@ymogen.net> (raw)
In-Reply-To: <000901c3d9f8$db4a1cd0$33a48796@ilc.arizona.edu>

MessageThe consensus from previous discussions (search for 'LVM' in the
archives) is essentially that it definitely *should* work, some people *do*
use it successfully, but that you *must* test it thoroughly in your own
setup under heavy write load before relying on it.

PG will believe it has 'crashed' when you start it from a restored snapshot,
and PG is designed to recover perfectly well from crashes.  If you stop the
postmaster before the snapshot is taken then it will definitely work fine.

Matt
  -----Original Message-----
  From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Ed Murphy
  Sent: 13 January 2004 17:16
  To: pgsql-admin@postgresql.org
  Subject: [ADMIN] Snapshot as Backup


  Hello,

  I'm using Red Hat Enterprise v2.1 and PostgreSQL v7.3.4.  Our hardware
setup includes a large Storage Area Network (SAN).  The systems folks are
going to utilize a snapshot type backup to backup the file system.  This
snapshot will include PGDATA and all the PostgreSQL files.  My question is
if I restore this snapshot will PostgreSQL work?  I know if doing a typical
file system backup of PostgreSQL I must first stop the postmaster or the
backup will not produce a useable PostgreSQL system.  Is it necessary to
stop the postmaster for this snapshot backup also?

  Thanks,

  Ed Murphy
  The University of Arizona

view thread (4+ messages)  latest in thread

Message-ID: <OAEAKHEHCMLBLIDGAFELKEBNEHAA.matt@ymogen.net>
Permalink:  ../OAEAKHEHCMLBLIDGAFELKEBNEHAA.matt@ymogen.net/
Also on:    postgresql.org/message-id/OAEAKHEHCMLBLIDGAFELKEBNEHAA.matt@ymogen.net

 · 

reply

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: matt@ymogen.net, emurphy1@email.arizona.edu
  Subject: Re: Snapshot as Backup
  In-Reply-To: <OAEAKHEHCMLBLIDGAFELKEBNEHAA.matt@ymogen.net>
  References: <000901c3d9f8$db4a1cd0$33a48796@ilc.arizona.edu> <OAEAKHEHCMLBLIDGAFELKEBNEHAA.matt@ymogen.net>

* 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