Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > pg_standby / WA...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 15509 of 15987
Post > Topic >>

pg_standby / WAL archive-restore through system restarts

by d.wall@[EMAIL PROTECTED] (David Wall) May 12, 2008 at 08:51 AM

Just wanted to see if others would confirm my impressions about running 
WAL archiving and pg_standby restore.

Server A (Primary): Runs PG 8.3 with WAL archiving enabled.  Each WAL is 
copied over the network to Server B.  (A previous 'tar backup' of the 
database along with the requisite psql commands 
pg_start_backup()/pg_stop_backup() was done and restored on Server B.)

Server B (Backup): Runs PG 8.3 in 'recovery mode' (recovery.conf), with 
pg_standby feeding the WAL archives.

The idea is that if Server A dies, Server B will have a relatively close 
snapshot of the most recent database changes and could take over as the 
new primary database server.

During regular operations, Server A and Server B may independently need 
to be rebooted or postgresql restarted, etc.  Is there any sync-ing 
between Server A and Server B I have to worry about when doing this? 

That is, will Server B need to know anything about the fact that the 
postmaster on Server A going up and down?  Will it just run normally, 
waiting for the restarted Server A to send over new WAL archives?

Can I shutdown Server B simply by killing the postmaster and restart it 
back in recovery mode to continue re-syncing where it left off?  Or does 
stopping Server B in recovery mode require any manual re-sync steps 
before it can resume recovery?

If I ever tell Server B to stop recovery (assuming I didn't intend for 
it to become the new primary), I cannot just resume recovery mode unless 
I do the full data backup again from Server A and restore on Server B in 
start in recovery mode.  That is, once you tell PG to end recovery, it 
becomes a primary and no longer can resume recovery mode without redoing 
the recovery setup steps.

Are these correct?

Thanks,
David

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 9 Posts in Topic:
pg_standby / WAL archive-restore through system restarts
d.wall@[EMAIL PROTECTED]   2008-05-12 08:51:58 
Re: pg_standby / WAL archive-restore through system restarts
guillaume@[EMAIL PROTECTE  2008-05-13 14:37:26 
Re: pg_standby / WAL archive-restore through system restarts
d.wall@[EMAIL PROTECTED]   2008-05-13 08:27:47 
Re: pg_standby / WAL archive-restore through system
alvherre@[EMAIL PROTECTED  2008-05-13 11:31:58 
Re: pg_standby / WAL archive-restore through system restarts
guillaume@[EMAIL PROTECTE  2008-05-13 18:48:38 
Re: pg_standby / WAL archive-restore through system restarts
tgl@[EMAIL PROTECTED] (T  2008-05-13 11:54:37 
Re: pg_standby / WAL archive-restore through system restarts
d.wall@[EMAIL PROTECTED]   2008-05-13 09:13:33 
Re: pg_standby / WAL archive-restore through system restarts
tgl@[EMAIL PROTECTED] (T  2008-05-13 12:18:35 
Re: pg_standby / WAL archive-restore through
xzilla@[EMAIL PROTECTED]   2008-05-13 14:23:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 6 19:07:22 CDT 2008.