do you know what the error message is ?
Main Topics
Browse All TopicsI have two identical Cent OS 5.3 computers configured identically with Postgresql 8.3.7. I'm trying to create a warm standby using WAL following the instructions at:
http://www.postgresql.org/
Both servers have access to the directory /path/to/archive
I configured postgresql.conf on the master server with:
archive_mode = on
archive_command = 'cp "%p" /path/to/archive/"%f"'
arvhice_timeout = 300
Then restarted postgresql. Then I logged into the database "psql db" and created the base backup "SELECT pg_start_backup('label');"
Then on the slave postgresql server, I shut down the database, and created the recovery.conf file with
restore_command = 'cp /path/to/archive/%f %p'
When I try to restart postgresql on the slave, I get an error. What am I doing wrong?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The error message is:
cp cannot stat '/path/to/archive/00000001
This file doesn't exist, but it isn't created in the backup process.
And I realize the restore command is more complex than that, I'm just trying to do a single manual restore first, then I'll add the more complex automation.
I realize the step I missed was copying the data directory from the primary database server to the backup server before trying to "recover". What I was trying to do was initially load both databases the exact same way and then start reading WAL files from the 1st on the 2nd. This obviously didn't work... This question can be closed now.
Business Accounts
Answer for Membership
by: earthman2Posted on 2009-04-11 at 04:36:27ID: 24121655
The restore command is more complex than a simple copy. docs/8.3/s tatic/warm -standby.h tml
see docs
http://www.postgresql.org/
24.4.1
"A working example of a waiting restore_command is provided as a contrib module named pg_standby. This example can be extended as needed to support specific configurations or environments."