Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTPjn-0004ox-9p for pgsql-admin@arkaria.postgresql.org; Tue, 28 Apr 2020 12:53:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jTPjm-0003Ib-64 for pgsql-admin@arkaria.postgresql.org; Tue, 28 Apr 2020 12:53:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTPjl-0003DS-Jf for pgsql-admin@lists.postgresql.org; Tue, 28 Apr 2020 12:53:21 +0000 Received: from mail-eopbgr60097.outbound.protection.outlook.com ([40.107.6.97] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTPjh-0000ac-Gz for pgsql-admin@postgresql.org; Tue, 28 Apr 2020 12:53:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bhramuKj/RIlQPVX7WpK9bYaZ1Z6VnQwCZUuKNbyS+DuIgy8+WH6EIKq0Qj3pnxGu2YM14fReBbSQyXpF3r/EBTaBCkx7PcaJMa3OiD8QpGF4Bpe96UHS2ebYYw2ZKsGIfJDs11y1kHGr5lvs69J86YNiZYuullrAivpyv1rOyb0xTxYFu9ba5PlgstBuLKSqtSwy3k4ojtdrxH5LkJ3F2k3ZqXw+Nrkyneo31c5+6cZBW07+2PRGgM/R8aPdtQxKsViOX9sXAAnsld6rbFOoQBgsB+zMbbwVYjjS8lCqHMtJHAf80kCcf1b92kpQCKrQkj3NspeR98pIlFbjj8oag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2V++EkUy/VCzKjeuVga6hQEtzK8mWpP0qfjqcIQZ9K4=; b=NAIBiLTd6/wF8iroZN8oB9ZxNSoT9Nf41v7VEmJOmV3qk3oL0pfKM31cdcHk3wlOM1iszjI9lgQLZ8PPzSeNMKxC55nlri4ZEetCg7nwjbgtvtL55HXP5nSGcZIy7yT0lLgrh+NOUk5HFGXa7hYcRULDsGhC84wDgjF+HFbBh79fpwrmK2nLn+UHQOaLtkZGqYCeSrG3ALQsNmU0E3ey0kwUbd9V40hcfWWxE5vLMPAMyHcV/bGfdZpzBSPLGsVOEkbdTJXqeTBV5pSZA9C128F/3lNj5ohpY2UpSMFzzhen/6WogxLnMMzh9cDUZQtjS0sN4Ak/6W6t+MMjxcBD2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=accelaero.com; dmarc=pass action=none header.from=accelaero.com; dkim=pass header.d=accelaero.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=accelaero.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2V++EkUy/VCzKjeuVga6hQEtzK8mWpP0qfjqcIQZ9K4=; b=CBposabFpDRmjtDrIxs9ZGNLmSm43/1YpGTEU1YITYYK0GAf8YbUb/sXyiDUds0O0vmaNb46tJE4JfQTtf+C0mGE3koKukJ4pAMbqcO5gzuLCQLT60JnJjbDGZGjIren4vRVQWHdYQqboWsFc8vEwxliLCttUrrp5Q8rnxlGO2w= Received: from AM0P191MB0708.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:153::8) by AM0P191MB0273.EURP191.PROD.OUTLOOK.COM (2603:10a6:208:46::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Tue, 28 Apr 2020 12:53:13 +0000 Received: from AM0P191MB0708.EURP191.PROD.OUTLOOK.COM ([fe80::543:76b5:fb40:eda9]) by AM0P191MB0708.EURP191.PROD.OUTLOOK.COM ([fe80::543:76b5:fb40:eda9%2]) with mapi id 15.20.2937.023; Tue, 28 Apr 2020 12:53:12 +0000 From: Ashok kumar Mani To: "'pgsql-admin@postgresql.org'" , "'pgsql-admin@lists.postgresql.org'" Subject: RE: failover database replication failing! Thread-Topic: failover database replication failing! Thread-Index: AdYdWVnwNXHU3RUTRSed2Cy1Amw7JgAAoEbg Date: Tue, 28 Apr 2020 12:53:12 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_Enabled=True; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_SiteId=7bbb8a4d-7f1b-4a58-9b3a-c250fb8023e3; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_Owner=amani@accelaero.com; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_SetDate=2020-04-28T12:36:24.9372116Z; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_Name=External - General; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_Application=Microsoft Azure Information Protection; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_ActionId=7911a46b-031b-4ed5-998a-23788c38b56d; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_Extended_MSFT_Method=Manual authentication-results: postgresql.org; dkim=none (message not signed) header.d=none;postgresql.org; dmarc=none action=none header.from=accelaero.com; x-originating-ip: [2001:8f8:1423:5930:30c2:2fcc:9a34:9d5c] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 30c11325-dc96-46e5-f088-08d7eb731c94 x-ms-traffictypediagnostic: AM0P191MB0273: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0387D64A71 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0P191MB0708.EURP191.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(136003)(376002)(366004)(396003)(39850400004)(346002)(55016002)(33656002)(81156014)(9686003)(2906002)(8676002)(110136005)(71200400001)(86362001)(5660300002)(2940100002)(478600001)(316002)(7696005)(53546011)(66476007)(64756008)(76116006)(66556008)(66446008)(6506007)(186003)(52536014)(66946007)(8936002)(3480700007)(491001)(130980200001);DIR:OUT;SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 35s3bp1Xxc0lH5i5Km4K/dtbOF9Y24IYyRS1udeWJR3FEy9MOJvUhCbc6k2sojQ2QlfGUnzDxnS5M26Gdg6RccomM+VNkFfM38NtLimzBg1q6neiZmaCxMFt9hOIG4KL071G3V4Bi2Pbnl+ITMxDsZoXs1l41upbU7PgAB4vgZ+j2LoKY1hxPK/jLKGzpWcLwugY7fpxzXpJSazCSrgtEsgUOsK1vH8CDxG0n2nA62le60nq9EZLLflvGpNzr8lk3G6wN3dXiPJz8awVEeUhB6GFigP3wDQsqKrf/F7sIJCC//C1zAqFinJmAkkHNh3L6Cu1wM/tSnZnuRqLd0rkAEmAQCm49TNT5OOhcRXAOYtLcY+HO7GJdcCWqeH7o4558DSQY3Zna2h3bGWI80ENLgkP85pkRoWHNnEtNwBSJe0VZ76L4sCqpwzMusj68ZA3OMsTx63FcvCSHjnRY+nilC5mU3XvPXHEKtenFuHajlxbavY5pWm6kQdCMErhfLG4Yy6HQrcgZVkYEE/zldv7pA== x-ms-exchange-antispam-messagedata: 65PiYXL+DmtsBD94nLk5OiBvYU9tdIF7kcRuSnvEX3/o7iIvGTYClGDy2Hw3+o2szBx27z+7ScsYbj6gPdkwAGMRh+ML7K3XuLguixhDN7CfOg/pk8A5e4gIKeOPvWzdux7nA7o/r7dpQUeoJQ+be5JN5dDtXRjtucb3X0NWL73I/MQnYnsaoWXPiKLdjgfFiIL4yEjsSwhhWybdvPRP2ZV19+F/8vwHDRwP3vCqmx4BAZCJc1fCHzAvqMfF3n5AoBp2B1ZkWyLMPHD4ZQp+ygsZwnxtBKoUs7IIoFT8wCF2SsQXW0Q/bLkJ9hEsye8Vi5bQsXCfOPrbXIVXjjXfoZNej82N/CO2TGLUx8Ch1vM/yjkZRjYHSA3Og+GbYQwxf8r8tio6kH+2tFCtJtMuhdOe/BRjCrU1AnngtCoAcGZz3mKO6ZljDdSBgmruaqUSCz5KZHJvcl5yrfgaguuDC8JZzLpq4W8bdU6+1gm6qqLd1pprjweTL6ku4l09iyzuALg9uoN2zvts2gCCpW4mHPC8no0jAVq+ka4KRBuFy9sY1QOVdLnJKS/gh658SzhXZPYojIuJ27NSg3ZgUkcE086HHL6NsqrfbAQJ/J7qvjM85StiVpL0U1h1+xWVJM8k2Ulks021UQ6kf5K+FBNXePsKrHS8EBtyXywS2GHGk1AyBenUccxF5hc/58ljwRbKuamaa3cCxOjtw4aVQ3Jg+n4WzCJtgEYtg9NrmbBRTu7t2AL/jl1EJYm2MyTE3MnBaxdl3ezNTo0RRGZQIxJo7vDnJj4DESdzV8eUHrHrrCyJiI/RMo3RpMDMyUL0F+A2zgfWcSHYJEoA0aMDWBLcj9nelMrizBqcopsQIpBC1/k= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_AM0P191MB070856E189D4086ACAEB3B09AEAC0AM0P191MB0708EURP_" MIME-Version: 1.0 X-OriginatorOrg: accelaero.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30c11325-dc96-46e5-f088-08d7eb731c94 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Apr 2020 12:53:12.5182 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7bbb8a4d-7f1b-4a58-9b3a-c250fb8023e3 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Os+eP/UfMk74ErE9IDyH3iYyZLv+Ee5xaujrEW6WsPcUogBlGPNcfUAg6kB8Dgh6TGWcVw1BNRcBLB+1UzXhPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P191MB0273 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_AM0P191MB070856E189D4086ACAEB3B09AEAC0AM0P191MB0708EURP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Classification: External Hi All I am unable to start the new standby after updating the archive_command (wi= th new ip) [postgres@ log]$ cat postgresql-2020-04-28_124617.log 2020-04-28 12:46:17 GMT LOG: database system was shut down in recovery at= 2020-04-28 12:36:41 GMT 2020-04-28 12:46:17 GMT LOG: restored log file "00000002.history" from ar= chive cp: cannot stat '/data/ARCHIVELOG/00000003.history': No such file or direct= ory 2020-04-28 12:46:17 GMT LOG: entering standby mode 2020-04-28 12:46:17 GMT LOG: restored log file "00000002.history" from ar= chive 2020-04-28 12:46:17 GMT LOG: restored log file "000000020000001D000000DA"= from archive 2020-04-28 12:46:17 GMT LOG: invalid xl_info in primary checkpoint record 2020-04-28 12:46:17 GMT PANIC: could not locate a valid checkpoint record 2020-04-28 12:47:47 GMT [unknown] [unknown]LOG: connection received: host= =3D[local] 2020-04-28 12:47:47 GMT postgres postgresFATAL: the database system is sta= rting up 2020-04-28 12:47:49 GMT [unknown] [unknown]LOG: connection received: host= =3D[local] 2020-04-28 12:47:49 GMT postgres postgresFATAL: the database system is sta= rting up 2020-04-28 12:48:15 GMT LOG: startup process (PID 24654) was terminated b= y signal 6: Aborted 2020-04-28 12:48:15 GMT LOG: aborting startup due to startup process fail= ure 2020-04-28 12:48:15 GMT LOG: database system is shut down [postgres@de284194 log]$ psql psql.bin: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? [postgres@ log]$ From: Ashok kumar Mani Sent: Tuesday, April 28, 2020 4:36 PM To: 'pgsql-admin@postgresql.org' ; 'pgsql-admin= @lists.postgresql.org' Subject: failover database replication failing! Classification: External Dear All, I have converted primary into slave today. After converting I made new slav= e as well but when I create new database in new database Which is not replicating in new standby . Could you please confirm do I need update archive command and archive mode = as well because in new standby it is still referring old ip address. Can any one help on this? Regards, Ashok --_000_AM0P191MB070856E189D4086ACAEB3B09AEAC0AM0P191MB0708EURP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

= Classification: External

 

Hi All

I am unable to start the new standby after updating the arc= hive_command (with new ip)

 

[postgres@ log]$ cat postgresql-2020-04-28_1= 24617.log

2020-04-28 12:46:17 GMT  LOG:  dat= abase system was shut down in recovery at 2020-04-28 12:36:41 GMT

2020-04-28 12:46:17 GMT  LOG:  res= tored log file "00000002.history" from archive<= /p>

cp: cannot stat ‘/data/ARCHIVELOG/0000= 0003.history’: No such file or directory

2020-04-28 12:46:17 GMT  LOG:  ent= ering standby mode

2020-04-28 12:46:17 GMT  LOG:  res= tored log file "00000002.history" from archive<= /p>

2020-04-28 12:46:17 GMT  LOG:  res= tored log file "000000020000001D000000DA" from archive=

2020-04-28 12:46:17 GMT  LOG:  inv= alid xl_info in primary checkpoint record

2020-04-28 12:46:17 GMT  PANIC:  c= ould not locate a valid checkpoint record

2020-04-28 12:47:47 GMT [unknown] [unknown]L= OG:  connection received: host=3D[local]

2020-04-28 12:47:47 GMT postgres postgresFAT= AL:  the database system is starting up

2020-04-28 12:47:49 GMT [unknown] [unknown]L= OG:  connection received: host=3D[local]

2020-04-28 12:47:49 GMT postgres postgresFAT= AL:  the database system is starting up

2020-04-28 12:48:15 GMT  LOG:  sta= rtup process (PID 24654) was terminated by signal 6: Aborted

2020-04-28 12:48:15 GMT  LOG:  abo= rting startup due to startup process failure

2020-04-28 12:48:15 GMT  LOG:  dat= abase system is shut down

[postgres@de284194 log]$ psql

psql.bin: could not connect to server: No su= ch file or directory

        I= s the server running locally and accepting

        c= onnections on Unix domain socket "/tmp/.s.PGSQL.5432"?=

[postgres@ log]$

 

From: Ashok kumar Mani
Sent: Tuesday, April 28, 2020 4:36 PM
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>;= 'pgsql-admin@lists.postgresql.org' <pgsql-admin@lists.postgresql.org>= ;
Subject: failover database replication failing!

 

= Classification: External

 

Dear All,

I have converted primary into slave today. After con= verting I made new slave as well but when I create new database in new data= base

Which is not replicating in new standby .=

 

Could you please confirm do I need update archive co= mmand and archive mode as well because in new standby it is still referring= old ip address.

 

Can any one help on t= his?

 

Regards,

Ashok

 

--_000_AM0P191MB070856E189D4086ACAEB3B09AEAC0AM0P191MB0708EURP_--