Catching up Production from Warm Standby after maintenance - Please help

From: Jennifer Spencer <jenniferm411(at)hotmail(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Catching up Production from Warm Standby after maintenance - Please help
Date: 2009-07-07 02:38:27
Message-ID: SNT102-W17E5FCC723A78E3264282481280@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Hello All -

I
will soon be receiving a new production and warm-standby machine.
Prior to now, we have only had one database machine and no warm
standby.

We had planned to feed the standby with one backup
and then use WAL files rsync'd over until either catastrophe or
maintenance required on the primary machine. I will be able to
properly close out my users on the primary, force a closeout of the log
file (pg_switch_xlog), and shut it down. Then I can catch up and
ingest the last WAL on my warm standby, let the users in, and have the
warm standby become the new primary. All okay so far.

But.
When the primary is vacuumed, re-indexed and all clean and shiny again,
HOW do I catch up with data changes that happened in the meantime on my
warm standby without corruption or >30 minutes of user down-time? I
cannot re-ingest WALs from the warm standby into the cleaned up primary
or I get a PANIC, and I don't have time to run a full backup on the
warm standby and ingest it into the primary leaving everything down.

I
know some of you must have tackled this before, so I am really hoping
you can help me. I checked the archives but didn't see anything about
how to recover the primary after the repair or maintenance had been
completed. I was really hoping to use the logs on the warm standby to
feed into the cleaned up primary to catch up, but it seems that's a
hopeless idea since any vacuuming or other cleaning I may do changes my
binary data files beyond the WAL's recognition.

Thanks in advance for your assistance.

Best regards,
Jennifer Spencer
_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2009-07-07 05:54:12 Re: Catching up Production from Warm Standby after maintenance - Please help
Previous Message Jennifer Spencer 2009-07-07 02:29:49 Catching up Production from Warm Standby after maintenance - Please help