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 1jShzT-0005Hn-0T for pgsql-admin@arkaria.postgresql.org; Sun, 26 Apr 2020 14:10:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jShzQ-0004Yn-Lz for pgsql-admin@arkaria.postgresql.org; Sun, 26 Apr 2020 14:10:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jShzQ-0004Yf-3f for pgsql-admin@lists.postgresql.org; Sun, 26 Apr 2020 14:10:36 +0000 Received: from mail-eopbgr60120.outbound.protection.outlook.com ([40.107.6.120] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jShzG-0002OO-US for pgsql-admin@postgresql.org; Sun, 26 Apr 2020 14:10:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=anNacgGGe8noFheOZUTkBaIBr7GRUWTztntAtFdVMTNMcKGUXe2UTtlONcObAbu9ToDwh4DYwCtD7VUmhxIInfFqi1YxB1FCjLbu6DHvK6ht0PpkNVa9mCHC7UhCJDIEq9v/VSyxdyjacUTybRdkVy9wifik0FFSpeBSuqLtcJHnYaIyDomdSVc26JaHgks5TeSn4XTY8KUmB+jBQOIPaWtRAwKnj+zTs40S8K4FCAJa9OCA7jEpCpyfJ9jxL6J+vk8sEXpNBF0f+ze/zcfxoPbozFwnHabxT230ECZ4OUMnnzhVPcQ2kH9NSNOlVSdYbeKKvxxx05eSoot35snS1g== 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=r57mheD1jOF2iHsPfM1apnU1P37XmSLcuii3+BhH104=; b=LhHSSvKXYAmoNSZRbpHwxw/075rg5guJqCY1QKK9x75BAMJ7OIS5DuoPVgTLC7mzTn+glklwEDjsSNyY/0OhDjKJo835KrwIJWNXkWLqtrlsjp7g6L3JYKToWviNF0tX/pqh5Kteomg4eqY+pLkecMa8Zw6MXgATu2AK32utZlbXEX4ErOCaHWBpjKUOKEhePNvq6A1mw24mGrd/k2kAI27fMi/WtnWIROkMy4awOnQqrqnJh+RWYo8Ac5u9GkNr1bZgLd+AuSZq4d+0jCbNrjJfmdidmeoiYetPH4mMZtZUddXyl+gjeCkonZNfGh6WxgeUm7tEAYoR5JH2FskRDw== 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=r57mheD1jOF2iHsPfM1apnU1P37XmSLcuii3+BhH104=; b=rQEO8ULniD3bs0aalF/vxjdJCNpGY9ywAqfdKW327+SqYwoR0xJu9IR6/kIfZv+vqMFkeaOC4DSs5u0JnphyXRkZl9PAftloxmkcwsAEYYDcpWgFs8YxfHG/muOaa9TbuGoD1NUWrasJ40P03QOoEPDBP1BL/UBWei/DQ/nlUQU= Received: from AM0P191MB0708.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:153::8) by AM0P191MB0595.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:146::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.13; Sun, 26 Apr 2020 14:10:23 +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; Sun, 26 Apr 2020 14:10:23 +0000 From: Ashok kumar Mani To: "pgsql-admin@postgresql.org" , "pgsql-admin@lists.postgresql.org" Subject: how to cross check the wal log count from primary and standby ? Thread-Topic: how to cross check the wal log count from primary and standby ? Thread-Index: AdYb1DRHinbAxOLaQFuLQYIG7cZytA== Date: Sun, 26 Apr 2020 14:10:23 +0000 Message-ID: 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-26T14:09:18.1965623Z; 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=a2710cd4-8184-42b5-b3fd-3b0298a6a99d; MSIP_Label_916ea167-67b1-4080-9c86-674eefeb4f23_Extended_MSFT_Method=Manual authentication-results: spf=none (sender IP is ) smtp.mailfrom=amani@accelaero.com; x-originating-ip: [2001:8f8:1423:81a:8c40:10c3:20ea:a495] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1f58bfd1-2961-4b87-9cdf-08d7e9eb8fcc x-ms-traffictypediagnostic: AM0P191MB0595: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 03853D523D 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)(396003)(346002)(136003)(366004)(376002)(39850400004)(33656002)(9686003)(55016002)(8676002)(81156014)(8936002)(4743002)(316002)(86362001)(478600001)(52536014)(71200400001)(110136005)(6506007)(5660300002)(7696005)(76116006)(66446008)(64756008)(66556008)(66476007)(66946007)(2906002)(186003);DIR:OUT;SFP:1102; received-spf: None (protection.outlook.com: accelaero.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4Dew42/3HCqPDtE4YFIHBIVnu8T9fqAoNLjApqqs7lVWo5u+DzcBZzoc0IDCydNBSNEVcMzzX8IRsxEvWx8pwYHVtW+tHa1aubpMFwHMNXVkDEl+kpy1QFR955ulLDJH6ENLCVY0jDdK4ZCNxJE19FikL2I6x13DvC1zTrz4uUpou3gb7drjGk58bcXu6j6zAc9654mzAYjgz9UMPpP8VA3X28lss5Ym4STk1tnvCeMJsaiZns+Xi4U0BZUeD/5ezSS55+4Aidto/3OzInKjvxueJQChh3Svi3HXCaABuuwRwnVSSYHrw1q5rad9JW9gQJivbc6l76J3P74n3ZKCpa+K+kbtLTlKCsxcZmrkkgbXt4ZBVjDH417CL9N8fh7uVnxRGlqzl02SfSvNr/t9+W6bi191uBKFqBLB4gtfHo8VVx0f+lABlsqAv8tdIN06 x-ms-exchange-antispam-messagedata: DOJIlTTToYZHKaSCmG2dMY44f5wu2GvNWExcpn04RjrMV78AvlPd3QFKjfK7V4mqgE14ZyUEoyKSvD9TgVwFTiYsC4LScdORHGi1YpWdP66Gl0RMsub9Nh0Pz/P8h5wMeJmBUQDGX69Z5RcDtR4wwjXeTM8qruLbxZN05t2c/dJGHcmGdjButJvdg+BN7PTnVUBPPz4KdRyeDJv6y8w+LOByZ3XggxJSOVgDcFc66xY8jj1mwywrINXzS0pb/sLIH3Y3cqvwySFquH7bKzZwll5KkZIn0nxwa5vn1LToZBYnxT+6/ODnuXkQRAUQYNZp41bziY4XrTzHR9fmUJ4TCF3RTGr/7dxPUkhH1DayrqS2i27Le31sifNWO2Pmdb75Ck3jDhmQNY/PLRFDAlSZRzOy6qO34E16ybTxlEQDtjcr02+Eu+At6MmiaHGCKCPFksdXg8KdEY8DGb0nDEc+LYydKbn1G3WAJ/eCHnxN1RzK6JieE/GKxb7n6Q4y7HfdToe2iNtii24k6r8ZdUzxnipbBGIOMkjlQxg4ktNNu9yk/rSL6f4zNBykk5VH5qQbqocgHn5+zLwgkK408OTYmbNiAnMZiGRrXA8UVuKHZvhxOjkiJKkwO8qTQKul/AWDsIFJaRdlrUBM5RxF2B+XgXzlmAt4VJj0LZSHj6K6V641okOgqx6D1jsbw7P8PE9Jxiw5GttKLw9zU8IX+WAQvkrF+KZ6HBttVzQtK4x3Xv4A5WKn7mKfL8OWob8lGuLLz7Hjqm0MDbrEm6b+uuXCJGmmo3rxqt6jm57h6NA5nlyOxbtxt8ZoRChOIDTivGAVG2kxk3p6oFVlo8KGPqiGXu9eqluOQy6BnZJQXI5ZPHc= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_AM0P191MB070834BB0CDEE222BE603BA9AEAE0AM0P191MB0708EURP_" MIME-Version: 1.0 X-OriginatorOrg: accelaero.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f58bfd1-2961-4b87-9cdf-08d7e9eb8fcc X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2020 14:10:23.3868 (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: oMrIMe4vlDEX65stACtczv6YA2RlT9qLpoUGUySoiufBNVGHUglDV2+yDYK7qvZr4wPEudTy9SR/ghdJZE83Sw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P191MB0595 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_AM0P191MB070834BB0CDEE222BE603BA9AEAE0AM0P191MB0708EURP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Classification: External Dear All, The below error I have pulled from master database after shutting down the = standby database then I tried to shutdown master but I got the FATEL error, Later after shuttindown the standby service ( postgresql-10.service) then m= aster db is shutdown now. Someone Let me know how to validate the wal log file count with primary and= standby ? scp: /data/ARCHIVELOG/000000010000001C000000AA: No space left on device 2020-04-26 13:50:26 GMT LOG: archive command failed with exit code 1 2020-04-26 13:50:26 GMT DETAIL: The failed archive command was: scp pg_wa= l/000000010000001C000000AA 172.29.7.194:/data/ARCHIVELOG/000000010000001C00= 0000AA 2020-04-26 13:50:26 GMT WARNING: archiving write-ahead log file "00000001= 0000001C000000AA" failed too many times, will try again later 2020-04-26 13:53:08 GMT LOG: received fast shutdown request 2020-04-26 13:53:08 GMT LOG: aborting any active transactions 2020-04-26 13:53:08 GMT LOG: worker process: logical replication launcher= (PID 6648) exited with exit code 1 2020-04-26 13:53:08 GMT LOG: shutting down 2020-04-26 13:54:24 GMT [unknown] [unknown]LOG: connection received: host= =3D[local] 2020-04-26 13:54:24 GMT postgres postgresFATAL: the database system is shu= tting down 2020-04-26 13:54:41 GMT [unknown] [unknown]LOG: connection received: host= =3D[local] 2020-04-26 13:54:41 GMT postgres postgresFATAL: the database system is shu= tting down packet_write_wait: Connection to 172.29.7.194 port 22: Broken pipe lost connection 2020-04-26 13:54:56 GMT LOG: archive command failed with exit code 1 2020-04-26 13:54:56 GMT DETAIL: The failed archive command was: scp pg_wa= l/000000010000001D0000000A 172.29.7.194:/data/ARCHIVELOG/000000010000001D00= 00000A ssh: connect to host 172.29.7.194 port 22: Connection refused lost connection 2020-04-26 13:54:57 GMT LOG: archive command failed with exit code 1 2020-04-26 13:54:57 GMT DETAIL: The failed archive command was: scp pg_wa= l/000000010000001D0000000A 172.29.7.194:/data/ARCHIVELOG/000000010000001D00= 00000A ssh: connect to host 172.29.7.194 port 22: Connection refused lost connection 2020-04-26 13:54:58 GMT LOG: archive command failed with exit code 1 2020-04-26 13:54:58 GMT DETAIL: The failed archive command was: scp pg_wa= l/000000010000001D0000000A 172.29.7.194:/data/ARCHIVELOG/000000010000001D00= 00000A 2020-04-26 13:54:58 GMT WARNING: archiving write-ahead log file "00000001= 0000001D0000000A" failed too many times, will try again later ssh: connect to host 172.29.7.194 port 22: Connection refused lost connection 2020-04-26 13:54:58 GMT LOG: archive command failed with exit code 1 2020-04-26 13:54:58 GMT DETAIL: The failed archive command was: scp pg_wa= l/000000010000001D0000000A 172.29.7.194:/data/ARCHIVELOG/000000010000001D00= 00000A ssh: connect to host 172.29.7.194 port 22: Connection refused lost connection 2020-04-26 13:54:59 GMT LOG: archive command failed with exit code 1 2020-04-26 13:54:59 GMT DETAIL: The failed archive command was: scp pg_wa= l/000000010000001D0000000A 172.29.7.194:/data/ARCHIVELOG/000000010000001D00= 00000A ssh: connect to host 172.29.7.194 port 22: Connection timed out lost connection 2020-04-26 13:57:09 GMT LOG: archive command failed with exit code 1 2020-04-26 13:57:09 GMT DETAIL: The failed archive command was: scp pg_wa= l/000000010000001D0000000A 172.29.7.194:/data/ARCHIVELOG/000000010000001D00= 00000A 2020-04-26 13:57:09 GMT WARNING: archiving write-ahead log file "00000001= 0000001D0000000A" failed too many times, will try again later 2020-04-26 13:57:10 GMT LOG: database system is shut down [postgres@de284194 log]$ Thanks and Best Wishes Ashok +91 81975 99922(WhatsApp) --_000_AM0P191MB070834BB0CDEE222BE603BA9AEAE0AM0P191MB0708EURP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Classification: E= xternal


Dear All,

 

The below error I have pulled from master database a= fter shutting down the standby database then I tried to shutdown master but= I got the FATEL error,

Later after shuttindown the standby service ( postgr= esql-10.service) then master db is shutdown now.

 

 

Someone Let me know how to validate the wal log file= count with primary and standby ?

 

 

 

scp: /data/ARCHIVELOG/000000010000001C000000AA: No s= pace left on device

2020-04-26 13:50:26 GMT  LOG:  archive com= mand failed with exit code 1

2020-04-26 13:50:26 GMT  DETAIL:  The fail= ed archive command was: scp pg_wal/000000010000001C000000AA 172.29.7.194:/d= ata/ARCHIVELOG/000000010000001C000000AA

2020-04-26 13:50:26 GMT  WARNING:  archivi= ng write-ahead log file "000000010000001C000000AA" failed too man= y times, will try again later

2020-04-26 13:53:08 GMT  LOG:  received fa= st shutdown request

2020-04-26 13:53:08 GMT  LOG:  aborting an= y active transactions

2020-04-26 13:53:08 GMT  LOG:  worker proc= ess: logical replication launcher (PID 6648) exited with exit code 1

2020-04-26 13:53:08 GMT  LOG:  shutting do= wn

2020-04-26 13:54:24 GMT [unknown] [unknown]LOG: = ; connection received: host=3D[local]

2020-04-26 13:54:24 GMT postgres postgresFATAL: = ; the database system is shutting down

2020-04-26 13:54:41 GMT [unknown] [unknown]LOG: = ; connection received: host=3D[local]

2020-04-26 13:54:41 GMT postgres postgresFATAL: = ; the database system is shutting down

packet_write_wait: Connection to 172.29.7.194 port 2= 2: Broken pipe

lost connection

2020-04-26 13:54:56 GMT  LOG:  archive com= mand failed with exit code 1

2020-04-26 13:54:56 GMT  DETAIL:  The fail= ed archive command was: scp pg_wal/000000010000001D0000000A 172.29.7.194:/d= ata/ARCHIVELOG/000000010000001D0000000A

ssh: connect to host 172.29.7.194 port 22: Connectio= n refused

lost connection

2020-04-26 13:54:57 GMT  LOG:  archive com= mand failed with exit code 1

2020-04-26 13:54:57 GMT  DETAIL:  The fail= ed archive command was: scp pg_wal/000000010000001D0000000A 172.29.7.194:/d= ata/ARCHIVELOG/000000010000001D0000000A

ssh: connect to host 172.29.7.194 port 22: Connectio= n refused

lost connection

2020-04-26 13:54:58 GMT  LOG:  archive com= mand failed with exit code 1

2020-04-26 13:54:58 GMT  DETAIL:  The fail= ed archive command was: scp pg_wal/000000010000001D0000000A 172.29.7.194:/d= ata/ARCHIVELOG/000000010000001D0000000A

2020-04-26 13:54:58 GMT  WARNING:  archivi= ng write-ahead log file "000000010000001D0000000A" failed too man= y times, will try again later

ssh: connect to host 172.29.7.194 port 22: Connectio= n refused

lost connection

2020-04-26 13:54:58 GMT  LOG:  archive com= mand failed with exit code 1

2020-04-26 13:54:58 GMT  DETAIL:  The fail= ed archive command was: scp pg_wal/000000010000001D0000000A 172.29.7.194:/d= ata/ARCHIVELOG/000000010000001D0000000A

ssh: connect to host 172.29.7.194 port 22: Connectio= n refused

lost connection

2020-04-26 13:54:59 GMT  LOG:  archive com= mand failed with exit code 1

2020-04-26 13:54:59 GMT  DETAIL:  The fail= ed archive command was: scp pg_wal/000000010000001D0000000A 172.29.7.194:/d= ata/ARCHIVELOG/000000010000001D0000000A

ssh: connect to host 172.29.7.194 port 22: Connectio= n timed out

lost connection

2020-04-26 13:57:09 GMT  LOG:  archive com= mand failed with exit code 1

2020-04-26 13:57:09 GMT  DETAIL:  The fail= ed archive command was: scp pg_wal/000000010000001D0000000A 172.29.7.194:/d= ata/ARCHIVELOG/000000010000001D0000000A

2020-04-26 13:57:09 GMT  WARNING:  archivi= ng write-ahead log file "000000010000001D0000000A" failed too man= y times, will try again later

2020-04-26 13:57:10 GMT  LOG:  database sy= stem is shut down

[postgres@de284194 log]$

 

 

Thanks and Best Wishes

Ashok

+91 81975 99922(WhatsApp)

--_000_AM0P191MB070834BB0CDEE222BE603BA9AEAE0AM0P191MB0708EURP_--