Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vnfxm-0002M6-9Y for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Dec 2013 02:43:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vnfxl-0007J7-HB for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Dec 2013 02:43:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vnfxj-0007Iy-J5 for pgsql-bugs@postgresql.org; Tue, 03 Dec 2013 02:43:47 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vnfxg-0000tI-AB for pgsql-bugs@postgresql.org; Tue, 03 Dec 2013 02:43:46 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Vnfxe-0006sm-6C; Mon, 02 Dec 2013 21:43:42 -0500 Date: Mon, 2 Dec 2013 21:43:42 -0500 From: Bruce Momjian To: fburgess@radiantblue.com Cc: pgsql-bugs@postgresql.org Subject: Re: pg_upgrade error attempting to upgrade from PostgreSQL 9.1.6 with postgis 2.1.1 to PostgreSQL 9.3.0 Message-ID: <20131203024342.GT5274@momjian.us> References: <20131202163227.5a830134ae84016b0174832fdc1a3173.48459e0d98.wbe@email11.secureserver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131202163227.5a830134ae84016b0174832fdc1a3173.48459e0d98.wbe@email11.secureserver.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Mon, Dec 2, 2013 at 04:32:27PM -0700, fburgess@radiantblue.com wrote: > Using pg_upgrade to upgrade from postgreSQL 9.1.6 with Postgis 2.1.1 to > PostgreSQL 9.3.0 with Postgis 2.1.1 > > Does anyone know why I'm getting the following error. > > thanks > > > Performing Upgrade > ------------------ > Analyzing all rows in the new cluster ok > Freezing all rows on the new cluster ok > Deleting files from new pg_clog ok > Copying old pg_clog to new server ok > Setting next transaction ID for new cluster ok > Setting oldest multixact ID on new cluster ok > Resetting WAL archives ok > Setting frozenxid counters in new cluster ok > Restoring global objects in the new cluster ok > Adding support functions to new cluster ok > Restoring database schemas in the new cluster > ok > Removing support functions from new cluster ok > Adding ".old" suffix to old global/pg_control ok > > If you want to start the old cluster, you will need to remove > the ".old" suffix from /sars/apps/db/data/global/pg_control.old. > Because "link" mode was used, the old cluster cannot be safely > started once the new cluster has been started. > > Linking user relation files > /sars/apps/db/data/sar_data/PG_9.1_201105231/29304/34537 > error while creating link for relation "public.sars_mod_cluster" ("/sars/apps/ > db/data/sar_data/PG_9.1_201105231/29304/34537" to "/sars/apps/db/data/sar_data/ > PG_9.3_201306121/16427/34537"): No such file or directory > Failure, exiting Wow, that is in odd error. Can you see if "public.sars_mod_cluster" is accessible from the 9.1 cluster? My guess is you are going to get a similar error, and the only solution is to find the missing file or delete the table or index. Not sure how the file could have gotten lost, but it might be file system corruption. If my guess is wrong, please let us know. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs