Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSgbH-0002kH-AB for pgsql-performance@arkaria.postgresql.org; Wed, 05 Jul 2017 09:27:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dSgbG-0002FX-QT for pgsql-performance@arkaria.postgresql.org; Wed, 05 Jul 2017 09:27:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dSgZS-0007ZV-Lo for pgsql-performance@postgresql.org; Wed, 05 Jul 2017 09:26:06 +0000 Received: from mxgate01.infotech-enterprises.com ([110.76.168.168] helo=mxgate01.cyient.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dSgZK-0001sn-OL for pgsql-performance@postgresql.org; Wed, 05 Jul 2017 09:26:05 +0000 X-IronPort-AV: E=Sophos;i="5.40,311,1496082600"; d="scan'208,217";a="76723497" Received: from unknown (HELO CYINMBX4.CORP.CYIENT.COM) ([172.17.4.164]) by mxgate01.cyient.com with ESMTP/TLS/AES256-SHA256; 05 Jul 2017 14:51:04 +0530 Received: from CYINMBX4.CORP.CYIENT.COM (172.17.4.164) by CYINMBX4.CORP.CYIENT.COM (172.17.4.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.27; Wed, 5 Jul 2017 14:56:01 +0530 Received: from CYINMBX4.CORP.CYIENT.COM ([fe80::fc8e:ffa6:a403:e167]) by CYINMBX4.CORP.CYIENT.COM ([fe80::fc8e:ffa6:a403:e167%19]) with mapi id 15.01.0544.027; Wed, 5 Jul 2017 14:56:01 +0530 From: Daulat Ram To: "pgsql-performance@postgresql.org" Subject: Unable to start the slave instance Thread-Topic: Unable to start the slave instance Thread-Index: AdL1btPg9zYm5Z6zRC2/naQWgur7IQAAcXPg Date: Wed, 5 Jul 2017 09:26:01 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.4.81] Content-Type: multipart/alternative; boundary="_000_b07dbae6729747c59b8f0b7ef4167716cyientcom_" MIME-Version: 1.0 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --_000_b07dbae6729747c59b8f0b7ef4167716cyientcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi experts, We have configured a replication environment in Windows 10. But I am gettin= g below the error messages while starting slave instance. Error: 2017-07-05 00:00:02 IST LOG: restored log file "000000010000000000000022" = from archive 2017-07-05 00:00:02 IST LOG: WAL file is from different database system: W= AL file database system identifier is 6438799484563175092, pg_control datab= ase system identifier is 6379088242155134709. 2017-07-05 00:00:02 IST FATAL: database system identifier differs between = the primary and standby 2017-07-05 00:00:02 IST DETAIL: The primary's identifier is 64387994845631= 75092, the standby's identifier is 6379088242155134709. 2017-07-05 00:00:06 IST LOG: restored log file "000000010000000000000022" = from archive 2017-07-05 00:00:06 IST LOG: WAL file is from different database system: W= AL file database system identifier is 6438799484563175092, pg_control datab= ase system identifier is 6379088242155134709. 2017-07-05 00:00:06 IST FATAL: database system identifier differs between = the primary and standby 2017-07-05 00:00:06 IST DETAIL: The primary's identifier is 64387994845631= 75092, the standby's identifier is 6379088242155134709. 2017-07-05 00:00:11 IST LOG: restored log file "000000010000000000000022" = from archive 2017-07-05 00:00:11 IST LOG: WAL file is from different database system: W= AL file database system identifier is 6438799484563175092, pg_control datab= ase system identifier is 6379088242155134709. 2017-07-05 00:00:11 IST FATAL: database system identifier differs between = the primary and standby 2017-07-05 00:00:11 IST DETAIL: The primary's identifier is 64387994845631= 75092, the standby's identifier is 6379088242155134709. 2017-07-05 00:00:16 IST LOG: restored log file "000000010000000000000022" = from archive 2017-07-05 00:00:16 IST LOG: WAL file is from different database system: W= AL file database system identifier is 6438799484563175092, pg Below are the parameters at Primary/standby & Recovery.conf as well as hba.= conf file. @MASTER wal_level =3D hot_standby shared_buffers =3D 128MB port =3D 5432 max_connections =3D 100 wal_level =3D hot_standby # archive_mode =3D on archive_command =3D 'copy "%p" "\\\\192.168.1.111\\archive\\%f"' max_wal_senders =3D 1 wal_keep_segments =3D 10 listen_addresses =3D '*' @SLAVE 'pgsql-performance@postgresql.org' port =3D 5432 hot_standby =3D on max_connections =3D 100 listen_addresses =3D '*' shared_buffers =3D 128MB In Recovery.conf restore_command =3D 'copy "\\\\192.168.1.111\\archive\\%f" "%p"' standby_mode =3D 'on' primary_coninfo =3D 'host =3D 192.168.1.111 port =3D 5432 user =3D postgres= password =3D postgres' In Hba.conf @ Master side # TYPE DATABASE USER ADDRESS METHOD # replication privilege. host replication postgres 192.168.1.106/32 trust Please help on this issue. What things I have to changed & checked. Regards, Daulat ________________________________ DISCLAIMER: This email message is for the sole use of the intended recipient(s) and may= contain confidential and privileged information. Any unauthorized review, = use, disclosure or distribution is prohibited. If you are not the intended = recipient, please contact the sender by reply email and destroy all copies = of the original message. Check all attachments for viruses before opening t= hem. All views or opinions presented in this e-mail are those of the author= and may not reflect the opinion of Cyient or those of our affiliates. --_000_b07dbae6729747c59b8f0b7ef4167716cyientcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi experts,

We have configured a replication enviro= nment in Windows 10. But I am getting below the error messages while starti= ng slave instance.

 

Error:<= /o:p>

 

2017-07-05 00:00:02 IST= LOG:  restored log file "000000010000000000000022" from arc= hive

2017-07-05 00:00:02 IST= LOG:  WAL file is from different database system: WAL file database s= ystem identifier is 6438799484563175092, pg_control database system identifier is 6379088242155134709.

2017-07-05 00:00:02 IST= FATAL:  database system identifier differs between the primary and st= andby

2017-07-05 00:00:02 IST= DETAIL:  The primary's identifier is 6438799484563175092, the standby= 's identifier is 6379088242155134709.

2017-07-05 00:00:06 IST= LOG:  restored log file "000000010000000000000022" from arc= hive

2017-07-05 00:00:06 IST= LOG:  WAL file is from different database system: WAL file database s= ystem identifier is 6438799484563175092, pg_control database system identifier is 6379088242155134709.

2017-07-05 00:00:06 IST= FATAL:  database system identifier differs between the primary and st= andby

2017-07-05 00:00:06 IST= DETAIL:  The primary's identifier is 6438799484563175092, the standby= 's identifier is 6379088242155134709.

2017-07-05 00:00:11 IST= LOG:  restored log file "000000010000000000000022" from arc= hive

2017-07-05 00:00:11 IST= LOG:  WAL file is from different database system: WAL file database s= ystem identifier is 6438799484563175092, pg_control database system identifier is 6379088242155134709.

2017-07-05 00:00:11 IST= FATAL:  database system identifier differs between the primary and st= andby

2017-07-05 00:00:11 IST= DETAIL:  The primary's identifier is 6438799484563175092, the standby= 's identifier is 6379088242155134709.

2017-07-05 00:00:16 IST= LOG:  restored log file "000000010000000000000022" from arc= hive

2017-07-05 00:00:16 IST LOG:  WAL file is from d= ifferent database system: WAL file database system identifier is 6438799484= 563175092, pg

 

 

Below are the parameters at Primary/sta= ndby & Recovery.conf as well as hba.conf file.

 

@MASTER

wal_level =3D hot_stand= by

shared_buffers =3D 128M= B            &n= bsp;            = ;          

port =3D 5432 &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;   

max_connections =3D 100=             &nb= sp;             = ;            &n= bsp;         

wal_level =3D hot_stand= by            &= nbsp;           #  &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;    

archive_mode =3D on&nbs= p;            &= nbsp;            &nb= sp;            =             &nb= sp;            =    

archive_command =3D 'co= py "%p" "\\\\1= 92.168.1.111\\archive\\%f"'      &nb= sp;             = ;            &n= bsp;            = ;            &n= bsp;                &= nbsp;           &nbs= p;            &= nbsp;        

max_wal_senders =3D 1&n= bsp;  

wal_keep_segments =3D 1= 0

listen_addresses =3D '*= '    

 

@SLAVE

'pgsql-performance@postgresql.org'=

 

port =3D 5432 &nbs= p;     

hot_standby =3D on = ;            &n= bsp;            = ;       

max_connections =3D 100=             &nb= sp;           

listen_addresses =3D '*= '            &n= bsp;   

shared_buffers =3D 128M= B            &n= bsp;            = ;          

    = ;            &n= bsp;            = ;      

In Recovery.conf

restore_command =3D 'co= py "\\\\192.168.1.111\\a= rchive\\%f" "%p"'

standby_mode =3D 'on'

primary_coninfo =3D 'ho= st =3D 192.168.1.111 port =3D 5432 user =3D postgres password =3D postgres'=

 

In Hba.conf @ Master side

# TYPE  DATABASE&n= bsp;       USER     =        ADDRESS     &= nbsp;           METHOD

# replication privilege= .

host    replication   &= nbsp; postgres        192.168.1.106/32&n= bsp;       trust

 

Please help on this issue. What things = I have to changed & checked.

 

Regards,

Daulat




DISCLAIMER:

This email message is for the sole use of the intended recipient(s) and may= contain confidential and privileged information. Any unauthorized review, = use, disclosure or distribution is prohibited. If you are not the intended = recipient, please contact the sender by reply email and destroy all copies of the original message. Check all a= ttachments for viruses before opening them. All views or opinions presented= in this e-mail are those of the author and may not reflect the opinion of = Cyient or those of our affiliates.
--_000_b07dbae6729747c59b8f0b7ef4167716cyientcom_--