Re: backups

From: Bill Montgomery <billm(at)lulu(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: wespvp(at)syntegra(dot)com, jearl(at)bullysports(dot)com, Dennis Gearon <gearond(at)fireserve(dot)net>, pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: backups
Date: 2004-07-01 14:49:16
Message-ID: 40E4246C.3020904@lulu.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruno Wolff III wrote:

>On Wed, Jun 30, 2004 at 18:23:08 -0500,
> wespvp(at)syntegra(dot)com wrote:
>
>
>>What do other sites with mondo databases do?
>>
>>
>
>There have been comments from people using storage systems that they
>can freeze the storage system and get a consistant snap shot of the
>file system. This can be used to do a restore. It will look just like
>postgres crashed when coming back up.
>If you find one of the posts about this in the archives the poster may
>have more details on their storage systems.
>
>
We achieve the same effect with LVM. An rsync on the live set of files
is done to get the majority of files that have changed since the last
snapshot, then an LVM snapshot is taken and the relatively small set of
files that have changed are rsyncd. This minimizes the lifetime of the
snapshot. LVM snapshots degrade write performance on the LVM volume
group on which they reside, due to the dual-write they require, so we
want them around for as short a time as possible.

Of course, we also tar up the files after the snapshot rsync, in case
the primary server craps out in the middle of the next hour's
snapshot/rsync. Otherwise, we might find ourselves resorting to last
night's pg_dump.

Regards,

Bill Montgomery

In response to

  • Re: backups at 2004-07-01 03:32:26 from Bruno Wolff III

Responses

  • Re: backups at 2004-07-01 15:21:56 from Dennis Gearon

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-07-01 14:52:30 Re: Bug in function to_char() !!
Previous Message Tom Lane 2004-07-01 14:25:13 Re: Internationalization