From fburgess@radiantblue.com Tue Aug 14 20:27:50 2012 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1NiP-0000Bx-Sw for pgsql-bugs@postgresql.org; Tue, 14 Aug 2012 20:27:50 +0000 Received: from m1plsmtpa01-06.prod.mesa1.secureserver.net ([64.202.165.34]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1NiN-00075f-AG for pgsql-bugs@postgresql.org; Tue, 14 Aug 2012 20:27:48 +0000 Received: from fburgessdt2 ([208.78.149.13]) by m1plsmtpa01-06.prod.mesa1.secureserver.net with id mkTk1j0070Hb2TU01kTkTB; Tue, 14 Aug 2012 13:27:45 -0700 From: "Freddie Burgess" To: Subject: ERROR - Upgrading Postgresql 8.4.3 to Postgressql 9.1.4 Date: Tue, 14 Aug 2012 16:27:45 -0400 Message-ID: <000f01cd7a5b$43bf5e40$cb3e1ac0$@radiantblue.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01CD7A39.BCAF1DD0" X-Mailer: Microsoft Outlook 14.0 Thread-Index: Ac16Wy4ozWn3W9QsSeS6VikGwA8pAA== Content-Language: en-us X-Pg-Spam-Score: -0.5 (/) X-Archive-Number: 201208/83 X-Sequence-Number: 33807 This is a multipart message in MIME format. ------=_NextPart_000_0010_01CD7A39.BCAF1DD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit We are trying to upgrade our production postgres database instance that is approximately 4TB in size and it contains various table partition structures.; a separate tablespace for each partition. We were initially successful in performing the upgrade using pg_upgrade with both the link and copy options in our development environment, but that environment has a different hardware configuration {DAS storage and centOS operating system and dedicated server} than what is configured in production. When we attempted to upgrade using pg_upgrade with the link option on our production database. Our Production database is configured with RHEL 5.4, NAS storage; configured utilizing a symlink that references the file system on the network, and VMWare. We ran the pg_upgrade procedures, and it completed to quickly (less than 10 mins) - pg_upgrade (using the link option) is supposed to merge the legacy (8.4.3) DB cluster with the new, empty (9.1.4) cluster. - Both databases clusters were being identified as 8.4.3 clusters AFTER the upgrade. This was strange, we do not have an explanation. It acted as if the upgrade downgraded the 9.1.4 cluster to 8.4.3. - At completion, the DB files were unusable. They would not start under 9.1.4 or 8.4.3. Could our production server's hardware configuration possibility be the culprit responsible for this upgrade failure? Thanks in Advance for any assistance ------=_NextPart_000_0010_01CD7A39.BCAF1DD0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

We are trying to upgrade our production = postgres database instance that  is approximately 4TB in size and = it contains various table partition structures.; a separate tablespace = for each partition.  We were initially successful in performing the = upgrade using pg_upgrade with both the link and copy options in our = development environment, but that environment has a different hardware = configuration {DAS storage and centOS operating system and dedicated = server} than what is configured in production.

 

When we = attempted to upgrade using pg_upgrade with the link option on our = production database. Our Production database is configured with RHEL = 5.4, NAS storage; configured utilizing a symlink that references the = file system on the network, and VMWare.

 

We ran the pg_upgrade procedures, and it completed to quickly = (less than 10 mins)

 

- pg_upgrade (using the link option) is supposed to merge the = legacy (8.4.3) DB cluster with the new, empty = (9.1.4) cluster. 

- Both databases clusters were being identified as 8.4.3 = clusters AFTER the upgrade.  This was strange, we do not have an = explanation.  It acted as if the upgrade downgraded the 9.1.4 = cluster to 8.4.3. 

- At completion, the DB files were unusable.  They would not = start under 9.1.4 or 8.4.3.

 

Could our = production server’s hardware configuration possibility be the = culprit  responsible for this upgrade failure?

 

Thanks in = Advance for any assistance

 

------=_NextPart_000_0010_01CD7A39.BCAF1DD0-- From bruce@momjian.us Tue Aug 14 20:57:50 2012 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1OBS-0007U9-3u for pgsql-bugs@postgresql.org; Tue, 14 Aug 2012 20:57:50 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T1OBO-00069z-Jb for pgsql-bugs@postgresql.org; Tue, 14 Aug 2012 20:57:49 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1T1OBM-0003ZF-JH; Tue, 14 Aug 2012 16:57:44 -0400 Date: Tue, 14 Aug 2012 16:57:44 -0400 From: Bruce Momjian To: Freddie Burgess Cc: pgsql-bugs@postgresql.org Subject: Re: ERROR - Upgrading Postgresql 8.4.3 to Postgressql 9.1.4 Message-ID: <20120814205744.GE11913@momjian.us> References: <000f01cd7a5b$43bf5e40$cb3e1ac0$@radiantblue.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <000f01cd7a5b$43bf5e40$cb3e1ac0$@radiantblue.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/84 X-Sequence-Number: 33808 On Tue, Aug 14, 2012 at 04:27:45PM -0400, Freddie Burgess wrote: > We are trying to upgrade our production postgres database instance that is > approximately 4TB in size and it contains various table partition structures.; > a separate tablespace for each partition. We were initially successful in > performing the upgrade using pg_upgrade with both the link and copy options in > our development environment, but that environment has a different hardware > configuration {DAS storage and centOS operating system and dedicated server} > than what is configured in production. > > > > When we attempted to upgrade using pg_upgrade with the link option on our > production database. Our Production database is configured with RHEL 5.4, NAS > storage; configured utilizing a symlink that references the file system on the > network, and VMWare. > > > > We ran the pg_upgrade procedures, and it completed to quickly (less than 10 > mins) That is normal for link mode --- it is using hard links for the data files. > - pg_upgrade (using the link option) is supposed to merge the legacy (8.4.3) DB > cluster with the new, empty (9.1.4) cluster. Yes. > - Both databases clusters were being identified as 8.4.3 clusters AFTER the > upgrade. This was strange, we do not have an explanation. It acted as if the > upgrade downgraded the 9.1.4 cluster to 8.4.3. That is very odd, and I have never heard of that problem before. > - At completion, the DB files were unusable. They would not start under 9.1.4 > or 8.4.3. > > > > Could our production server’s hardware configuration possibility be the culprit > responsible for this upgrade failure? I can't see how, unless you were somehow using the NAS in a way that didn't allow hard links, but I am unclear how that would happen, and pg_upgrade checks for that. I guess the big question is how is production different from testing, and how does the new server identify itself as 8.4 if you can't connect to it. Something is obviously majorly messed up. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +