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 1kqfD4-00021o-KU for pgsql-general@arkaria.postgresql.org; Sat, 19 Dec 2020 16:35:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kqfCX-0007dC-8H for pgsql-general@arkaria.postgresql.org; Sat, 19 Dec 2020 16:35:25 +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 1kqfCV-0007d3-JD for pgsql-general@lists.postgresql.org; Sat, 19 Dec 2020 16:35:25 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqfCN-0001mK-03 for pgsql-general@postgresql.org; Sat, 19 Dec 2020 16:35:22 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 943CD4B5; Sat, 19 Dec 2020 11:35:11 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 19 Dec 2020 11:35:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=j ov/6QMB4EQe3aCfQaKCstuyxB+bUqWMsw2cJcH+x8k=; b=foxONCX70+bJw2fsY pyg+/zYdTrrHJV/ABiFL4nKjywSKIx6xlAumHn0X68QviCj7a6us8BIaDxHh0tJh 9Wmsnu9vlui7RwjJTrizjFlI8f02/ROHQzibP+UPr51TVBuXjjtRUJOYkjavbIcX efXA74s8IczxsbYU++65ngv6QX0U72mkARmaHW5WCM+A2SKRPJpbrwOBWmH1wyxx UNuF9a3kmfjweVRdfhc+qA3NZk0wvnLC6nIXsxeYkoYoTEhnBp2NpLyND/2Hry3W 95+sUAB9IlkPhr0dozJyGgku1L0UhCyO+IirnXVVX1YLBAB7t2prdlpbcWx9Xamj h9JxQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=jov/6QMB4EQe3aCfQaKCstuyxB+bUqWMsw2cJcH+x 8k=; b=YUgNy1Xb+DHQTpQ5RCl65Va1y1M/u74qwuVJ1u+9xUP1pjEuIwTD05USm vcWXzWALaJfDOqsgzpilCMeVpUv3T6J/jYa40BPGq0bL5bk0vZptxTusqnPCJAav 5k9Xthe6z+by4hZyrFcVPIpuxhs64Uvxup1BY7VbbQDIS7i2w4YvzOFeuGqkkVGv iZslTe28nsa6gxo1tKjb4rcWBi/nTB9ZUQKcR+xiMqT+p1L19BrYexVx2fgUXwHS hyeBZM1s7NWXE1yqQ2VCgLygZG7NCIVS21yFNGZOyqyPIgBS4W4CpSOsgCFxck34 9oG09OLnGWgQzXb2ELj7EAUFYy+zw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudelkedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeehrddujedvrddugedrudejnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (75-172-14-17.tukw.qwest.net [75.172.14.17]) by mail.messagingengine.com (Postfix) with ESMTPA id 0F56F1080059; Sat, 19 Dec 2020 11:35:09 -0500 (EST) Subject: Re: Upgrade check failed from 11.5 to 12.1 To: "Lu, Dan" , Tom Lane Cc: "pgsql-general@postgresql.org" References: <216128.1608328504@sss.pgh.pa.us> <43b12147-5346-796d-09d9-f08cedaa1c1f@aklaver.com> From: Adrian Klaver Message-ID: <76daf63e-1d69-304f-b15a-dfad1b261689@aklaver.com> Date: Sat, 19 Dec 2020 08:35:09 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/19/20 8:13 AM, Lu, Dan wrote: Please do not top post. Convention on this list is bottom/inline posting. > Thanks Adrian. > > This is what I am seeing. > > postgresdbad:dpoc:pgdbadevbal800:> pg_controldata -D > /hostname/pg/dev12upg/data | grep -i "Bytes per WAL segment" > > Bytes per WAL segment: 131072 Well that would be the problem. Did someone manually change --wal-segsize during initdb or pg_ctl init? In any case that is not going to work. I'm assuming the 12 instance is not in use at this time. If so I would do the initdb again after clearing the data directory. Don't use the --wal-segsize, it will default to 16MB. Then check with pg_controldata to make sure the correct size is set. > > postgresdbad:dpoc:pgdbadevbal800:> pg_controldata -D > /hostname/pg/dpoc/data | grep -i "Bytes per WAL segment" > > Bytes per WAL segment: 16777216 > > -----Original Message----- > From: Adrian Klaver > Sent: Saturday, December 19, 2020 10:28 AM > To: Lu, Dan ; Tom Lane > Cc: pgsql-general@postgresql.org > Subject: Re: Upgrade check failed from 11.5 to 12.1 > > On 12/18/20 2:56 PM, Lu, Dan wrote: > > > Thanks for catching that.  Typo on my end. > > > > > > Now I am getting this. > > > > > > Performing Consistency Checks on Old Live Server > > > ------------------------------------------------ > > > Checking cluster versions                                   ok > > > > > > old and new pg_controldata WAL segment sizes are invalid or do not > > > match Failure, exiting > > > > > > I found the setting in the current version of the instance via "show > all" as "wal_segment_size                       | 16MB".   I guess my > new instance should be "16MB" as well when running this "initdb > --wal-segsize=16 -D /hostname/pg/NewInstance/data"? > > > > > Well the default is 16MB so you should not have to set it. > > What does: > > pg_controldata -D <11.5 data dir> > > pg_controldata -D <12.1 data dir> > > show for the setting Bytes per WAL segment: ? > > -- > > Adrian Klaver > > adrian.klaver@aklaver.com > > > ------------------------------------------------------------------------ > > IMPORTANT: The information contained in this email and/or its > attachments is confidential. If you are not the intended recipient, > please notify the sender immediately by reply and immediately delete > this message and all its attachments. Any review, use, reproduction, > disclosure or dissemination of this message or any attachment by an > unintended recipient is strictly prohibited. Neither this message nor > any attachment is intended as or should be construed as an offer, > solicitation or recommendation to buy or sell any security or other > financial instrument. Neither the sender, his or her employer nor any of > their respective affiliates makes any warranties as to the completeness > or accuracy of any of the information contained herein or that this > message or any of its attachments is free of viruses. -- Adrian Klaver adrian.klaver@aklaver.com