X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 863A74763C6 for ; Tue, 13 May 2003 18:16:03 -0400 (EDT) Received: from THOR.goeci.com (thor.goeci.com [66.28.220.99]) by postgresql.org (Postfix) with ESMTP id E5DDC4763C2 for ; Tue, 13 May 2003 18:16:02 -0400 (EDT) Received: by THOR.goeci.com with Internet Mail Service (5.5.2653.19) id ; Tue, 13 May 2003 18:16:05 -0400 Message-ID: <2D92FEBFD3BE1346A6C397223A8DD3FC092264@THOR.goeci.com> From: Murthy Kambhampaty 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 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_01 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/160 X-Sequence-Number: 8722 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