Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 38C73B5DBD3 for ; Tue, 24 May 2011 12:28:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 04011-05 for ; Tue, 24 May 2011 15:28:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id 0D917B5DBBD for ; Tue, 24 May 2011 12:28:36 -0300 (ADT) Received: by fxm17 with SMTP id 17so4738676fxm.19 for ; Tue, 24 May 2011 08:28:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=gfBacgA6V13+nhFfRdT3TnEXqhz1ijpzNGYr8RA7ypA=; b=lx0UeUse23XALMfWsodR6HwOcOVAwym9Je2Gp2032hcv0FU5zGcCkb3IPluNHVEul4 8uiUdkWkt6OuUaJc6cTHj+E5LYVtp2tPV1q7JELONPxjcKhybDHVKS5tM9ufkhI7bH0S JkYyvP+NnY4tZqCps2pu9Askw7VqgGi3754n4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lLROCLYnZtObdNUtNpKJ/IXZW66jzfW5WiANzr4k9w8LZNmaPjnVAlBGxhdh0phlVU 37YaP/MWjIPEfUJfUQt/956NY2fEqp0KAz+/NAWv5MTe40Ki3eUiLMO/b/NyhlrTgF68 sln/fvd0a/QvFsls/XCSdJFH8D15cbObSbWfY= MIME-Version: 1.0 Received: by 10.204.20.66 with SMTP id e2mr3424427bkb.141.1306250916034; Tue, 24 May 2011 08:28:36 -0700 (PDT) Received: by 10.204.154.83 with HTTP; Tue, 24 May 2011 08:28:36 -0700 (PDT) Date: Tue, 24 May 2011 20:58:36 +0530 Message-ID: Subject: issue with postgresql S R slave From: Manish Singh To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=00032555450ed679e604a4073da9 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.887 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201105/160 X-Sequence-Number: 37597 --00032555450ed679e604a4073da9 Content-Type: text/plain; charset=UTF-8 Hello I am having a problem with all slaves...i am not sure it's a bug or my side configuration problem.. When ever i am restarting postgresql slave (Service postgresql restart - made a script) or even just stopping and starting a postgresql slave.. it displays a a message, although slave get's started and working fine... server starting cp: cannot stat `/usr/local/pgsql/data/pg_xlogarch/000000010000000300000026': No such file or directory cp: cannot stat `/usr/local/postgres/data/pg_xlogarch/000000010000000300000026': No such file or directory May 24 20:55:34 db-slave2 postgres[25223]: [2-1] LOG: received fast shutdown request May 24 20:55:34 db-slave2 postgres[25223]: [3-1] LOG: aborting any active transactions May 24 20:55:34 db-slave2 postgres[25229]: [3-1] FATAL: terminating walreceiver process due to administrator command May 24 20:55:34 db-slave2 postgres[25226]: [1-1] LOG: shutting down May 24 20:55:35 db-slave2 postgres[25226]: [2-1] LOG: database system is shut down May 24 20:55:36 db-slave2 postgres[26769]: [1-1] LOG: database system was shut down in recovery at 2011-05-24 20:55:35 IST May 24 20:55:36 db-slave2 postgres[26769]: [2-1] LOG: entering standby mode May 24 20:55:36 db-slave2 postgres[26769]: [3-1] LOG: consistent recovery state reached at 3/2628F3F0 May 24 20:55:36 db-slave2 postgres[26769]: [4-1] LOG: redo starts at 3/2628F360 May 24 20:55:36 db-slave2 postgres[26769]: [5-1] LOG: invalid record length at 3/2628F3F0 May 24 20:55:36 db-slave2 postgres[26768]: [1-1] LOG: database system is ready to accept read only connections May 24 20:55:36 db-slave2 postgres[26774]: [2-1] LOG: streaming replication successfully connected to primary Pl. give any solution for this. Postgresql Ver. 9.0.3 OS: CentOS release 5.3 (Final) Kernel: 2.6.18-128.el5xen pg_controldata pg_control version number: 903 Catalog version number: 201008051 Database system identifier: 5572911747953590263 Database cluster state: in archive recovery pg_control last modified: Tue 24 May 2011 08:55:36 PM IST Latest checkpoint location: 3/2628F398 Prior checkpoint location: 3/2628F398 Latest checkpoint's REDO location: 3/2628F360 Latest checkpoint's TimeLineID: 1 Latest checkpoint's NextXID: 0/1102911 Latest checkpoint's NextOID: 1346139 Latest checkpoint's NextMultiXactId: 2 Latest checkpoint's NextMultiOffset: 3 Latest checkpoint's oldestXID: 654 Latest checkpoint's oldestXID's DB: 1 Latest checkpoint's oldestActiveXID: 1102911 Time of latest checkpoint: Tue 24 May 2011 08:53:52 PM IST Minimum recovery ending location: 3/2628F3F0 Backup start location: 0/0 Current wal_level setting: hot_standby Current max_connections setting: 5000 Current max_prepared_xacts setting: 0 Current max_locks_per_xact setting: 64 Maximum data alignment: 8 Database block size: 8192 Blocks per segment of large relation: 131072 WAL block size: 8192 Bytes per WAL segment: 16777216 Maximum length of identifiers: 64 Maximum columns in an index: 32 Maximum size of a TOAST chunk: 1996 Date/time type storage: 64-bit integers Float4 argument passing: by value Float8 argument passing: by value -- Manish Singh --00032555450ed679e604a4073da9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello

I am having a problem with all slaves...i am not sure it's= a bug or my side configuration problem..

When ever i am restarting = postgresql slave=C2=A0 (Service postgresql restart - made a script) or even= just stopping and starting a postgresql slave.. it displays a a message, a= lthough slave get's started and working fine...

server starting
cp: cannot stat `/usr/local/pgsql/data/pg_xlogarch/0= 00000010000000300000026': No such file or directory
cp: cannot stat = `/usr/local/postgres/data/pg_xlogarch/000000010000000300000026': No suc= h file or directory


May 24 20:55:34 db-slave2 postgres[25223]: [2-1] LOG:=C2=A0 receive= d fast shutdown request
May 24 20:55:34 db-slave2 postgres[25223]: [3-1]= LOG:=C2=A0 aborting any active transactions
May 24 20:55:34 db-slave2 p= ostgres[25229]: [3-1] FATAL:=C2=A0 terminating walreceiver process due to a= dministrator command
May 24 20:55:34 db-slave2 postgres[25226]: [1-1] LOG:=C2=A0 shutting downMay 24 20:55:35 db-slave2 postgres[25226]: [2-1] LOG:=C2=A0 database syst= em is shut down


May 24 20:55:36 db-slave2 postgres[26769]: [1-1]= LOG:=C2=A0 database system was shut down in recovery at 2011-05-24 20:55:3= 5 IST
May 24 20:55:36 db-slave2 postgres[26769]: [2-1] LOG:=C2=A0 entering standb= y mode
May 24 20:55:36 db-slave2 postgres[26769]: [3-1] LOG:=C2=A0 consi= stent recovery state reached at 3/2628F3F0
May 24 20:55:36 db-slave2 pos= tgres[26769]: [4-1] LOG:=C2=A0 redo starts at 3/2628F360
May 24 20:55:36 db-slave2 postgres[26769]: [5-1] LOG:=C2=A0 invalid record = length at 3/2628F3F0
May 24 20:55:36 db-slave2 postgres[26768]: [1-1] LO= G:=C2=A0 database system is ready to accept read only connections
May 24= 20:55:36 db-slave2 postgres[26774]: [2-1] LOG:=C2=A0 streaming replication= successfully connected to primary

Pl. give any solution for this.

Postgresql Ver. 9.0.3
OS: Cen= tOS release 5.3 (Final)
Kernel: 2.6.18-128.el5xen


pg_controld= ata
pg_control version number:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 903
Catalog version number:=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 20100= 8051
Database system identifier:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 5572911747953590263
Database cluster state:=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 in ar= chive recovery
pg_control last modified:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Tue 24 May 2011 08:55:36 PM IST<= br>Latest checkpoint location:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 3/2628F398
Prior checkpoint location:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 3/2628F398
Latest checkpoint's REDO location:=C2= =A0=C2=A0=C2=A0 3/2628F360
Latest checkpoint's TimeLineID:=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 1
Latest checkpoint's NextXID:=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0/1102911
Latest checkpoin= t's NextOID:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1346= 139
Latest checkpoint's NextMultiXactId:=C2=A0 2
Latest checkpoint's= NextMultiOffset:=C2=A0 3
Latest checkpoint's oldestXID:=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 654
Latest checkpoint's oldestXID'= ;s DB:=C2=A0=C2=A0 1
Latest checkpoint's oldestActiveXID:=C2=A0 1102= 911
Time of latest checkpoint:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 Tue 24 May 2011 08:53:52 PM IST
Minimum recovery endi= ng location:=C2=A0=C2=A0=C2=A0=C2=A0 3/2628F3F0
Backup start location:= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 0/0
Current wal_level setting:=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 hot_standby
Current max_connections setting:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5000
Curr= ent max_prepared_xacts setting:=C2=A0=C2=A0 0
Current max_locks_per_xact= setting:=C2=A0=C2=A0 64
Maximum data alignment:=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8
Database = block size:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8192
Blocks per segment of large relation: 131072
WAL block size:=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 8192
Bytes per WAL segment= :=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 16777216
Maximum length of identifiers:=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 64
Maximum columns in an index:=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 32
Maximum size of a TOAST chunk:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 19= 96
Date/time type storage:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 64-bit integers
Float4 argument = passing:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 by value
Float8 argument passing:=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 by value

-- <= br>Manish Singh


--00032555450ed679e604a4073da9--