pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
To: pgsql-admin@postgresql.org
Cc: linux-xfs@oss.sgi.com
Subject: Pausing the pg_xlog/ filesystem
Date: Tue, 13 May 2003 18:16:04 -0400
Message-ID: <2D92FEBFD3BE1346A6C397223A8DD3FC092264@THOR.goeci.com> (raw)

We presently use a backup strategy based on doing an rsync from an LVM
snapshot of the $PGDATA filesystem that has first been frozen and flushed to
disk (the discussion at
http://marc.theaimsgroup.com/?l=postgresql-admin&w=2&r=1&s=LVM+snapshots&q=b
gives all the gory details). I'm contemplating putting the pg_xlog/ folder
on separate disks, to improve performance, and am wondering if the following
will give me "consistent" copies of the $PGDATA cluster:

1.) Freeze the filesystem on which $PGDATA/pg_xlog/ (the postgresql log
files) resides
2.) Freeze the filesystem on which the rest of $PGDATA resides
3.) Create the snapshot
4.) Unfreeze the rest of $PGDATA
5.) Unfreeze $PGDATA/pg_xlog/
6.) Mount and copy the snapshot
[7.) Unmount and remove the snaphsot]

In other words, if writes to pg_xlog/ drag on, will the postmaster just idly
wait, or will it decide to flush logs (checkpoint) while waiting for writes
to pg_xlog/ to complete.

Thanks,
	Murthy




Message-ID: <2D92FEBFD3BE1346A6C397223A8DD3FC092264@THOR.goeci.com>
Permalink:  ../2D92FEBFD3BE1346A6C397223A8DD3FC092264@THOR.goeci.com/
Also on:    postgresql.org/message-id/2D92FEBFD3BE1346A6C397223A8DD3FC092264@THOR.goeci.com

 · 

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: murthy.kambhampaty@goeci.com, linux-xfs@oss.sgi.com
  Subject: Re: Pausing the pg_xlog/ filesystem
  In-Reply-To: <2D92FEBFD3BE1346A6C397223A8DD3FC092264@THOR.goeci.com>
  References: <2D92FEBFD3BE1346A6C397223A8DD3FC092264@THOR.goeci.com>

* 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