Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[GENERAL] pg_standby instructions

9 views
Skip to first unread message

akp geek

unread,
Nov 18, 2009, 4:46:35 PM11/18/09
to
Hi All -

I would like to know if any one has instructions on how
to setup pg_standby, if so can you please share?

Thanks for the help

Regards

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

Joshua D. Drake

unread,
Nov 18, 2009, 4:58:07 PM11/18/09
to
On Wed, 2009-11-18 at 16:46 -0500, akp geek wrote:
> Hi All -
>
> I would like to know if any one has instructions on how
> to setup pg_standby, if so can you please share?

If you are on a *nix platform, I would suggest PITRTools which utilizes
pg_standby but gives you a more complete solution. Check out:

https://projects.commandprompt.com/public/pitrtools

Its BSD licensed.

Joshua D. Drake


--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander

akp geek

unread,
Nov 20, 2009, 12:14:35 PM11/20/09
to
Thanks for the response . I was not able to get back on this.. Our set
up is Solaris. will be there any thing that I can use on Solaris

Regards

Joshua D. Drake

unread,
Nov 20, 2009, 12:23:45 PM11/20/09
to
On Fri, 2009-11-20 at 12:14 -0500, akp geek wrote:
> Thanks for the response . I was not able to get back on this.. Our set
> up is Solaris. will be there any thing that I can use on Solaris

They should work on Solaris. It is just Python + Utilities you can
already get (like rsync and ssh).

akp geek

unread,
Nov 25, 2009, 5:24:52 PM11/25/09
to
I have been trying to use the PITR tools , I am running into the following issue. I don't know how to resolve it. can you please help?
I tried to search the online blogs, I did not find much for the error.
 
NOTICE: check_config_func()
NOTICE: Performing standard archive
NOTICE: archive_func()
NOTICE: send_queue_func()
NOTICE: list_queue_func()
NOTICE: generate_slave_list_func()
NOTICE: Your slaves are: ['10.100.101.150']
Traceback (most recent call last):
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 343, in ?
    archive_func()
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 254, in archive_func
    queue = send_queue_func()
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 219, in send_queue_func
    for host in list_queue_func():
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 202, in list_queue_func
    list_archives = os.listdir(queuedir)
OSError: [Errno 2] No such file or directory: '/opt/postgres/archive/10.100.101.150'
LOG:  archive command failed with exit code 1
DETAIL:  The failed archive command was: cmd_archiver -C /export/home/postgres/8.4/pitrtools/cmd_archiver.ini -F pg_xlog/00000003000000010000007D
NOTICE: check_config_func()
NOTICE: Performing standard archive
NOTICE: archive_func()
NOTICE: send_queue_func()
NOTICE: list_queue_func()
NOTICE: generate_slave_list_func()
NOTICE: Your slaves are: ['10.100.101.150']
Traceback (most recent call last):
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 343, in ?
    archive_func()
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 254, in archive_func
    queue = send_queue_func()
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 219, in send_queue_func
    for host in list_queue_func():
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 202, in list_queue_func
    list_archives = os.listdir(queuedir)
OSError: [Errno 2] No such file or directory: '/opt/postgres/archive/10.100.101.150'
LOG:  archive command failed with exit code 1
DETAIL:  The failed archive command was: cmd_archiver -C /export/home/postgres/8.4/pitrtools/cmd_archiver.ini -F pg_xlog/00000003000000010000007D
 
 
 
Regards

Joshua D. Drake

unread,
Nov 25, 2009, 5:37:30 PM11/25/09
to
On Wed, 2009-11-25 at 17:24 -0500, akp geek wrote:
> I have been trying to use the PITR tools , I am running into the
> following issue. I don't know how to resolve it. can you please help?
> I tried to search the online blogs, I did not find much for the error.

> OSError: [Errno 2] No such file or directory:


> '/opt/postgres/archive/10.100.101.150'
> LOG: archive command failed with exit code 1
> DETAIL: The failed archive command was: cmd_archiver
> -C /export/home/postgres/8.4/pitrtools/cmd_archiver.ini -F
> pg_xlog/00000003000000010000007D

Did you run cmd_archiver -I ?

Joshua D. Drake


--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander


--

Devrim GÜNDÜZ

unread,
Nov 25, 2009, 6:43:02 PM11/25/09
to
On Wed, 2009-11-25 at 17:24 -0500, akp geek wrote:
> OSError: [Errno 2] No such file or directory: '/opt/postgres/archive/
> 10.100.101.150'

Did you see this message?
--
Devrim GÜNDÜZ, RHCE
Command Prompt - http://www.CommandPrompt.com
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz

signature.asc

akp geek

unread,
Nov 27, 2009, 8:19:56 AM11/27/09
to
When I execute the command cmd_archiver -I I am getting the following response

Traceback (most recent call last):
  File "/export/home/postgres/8.4/pitrtools/cmd_archiver", line 56, in ?
    config.read(configfile)
  File "/usr/lib/python2.4/ConfigParser.py", line 262, in read
    for filename in filenames:
TypeError: iteration over non-sequence

I am not able to interpret any thing from the above message. Can you please give me some thoughts

Regards

Rikard Bosnjakovic

unread,
Nov 27, 2009, 8:28:28 AM11/27/09
to
On Fri, Nov 27, 2009 at 14:19, akp geek <akp...@gmail.com> wrote:

[...]
> TypeError: iteration over non-sequence

> I am not able to interpret any thing from the above message. Can you please
> give me some thoughts

I can't say anything about the application itself, but the cryptic
message means that the variable "filenames" is expected to be a
sequenced typed variable. A sequence in Python is a string, a list or
a tuple. To get the above error message requires the variable to be
something else, like an integer or something. One possible cause for
the problem is a configuration error. Perhaps a line contains a
non-string, as in foo = bar, instead of foo = "bar".

But again, I don't know about the application so I cannot give any
better guess, but the above is what the error is about.


--
- Rikard - http://bos.hack.org/cv/

0 new messages