Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 49AC4682EAC for ; Sat, 3 Dec 2011 10:03:28 -0400 (AST) Received: from mail-vx0-f174.google.com ([209.85.220.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWqBa-0005yn-9H for pgsql-performance@postgresql.org; Sat, 03 Dec 2011 14:03:28 +0000 Received: by vcbfk14 with SMTP id fk14so2999537vcb.19 for ; Sat, 03 Dec 2011 06:03:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.154.76 with SMTP id n12mr258441vcw.32.1322920992979; Sat, 03 Dec 2011 06:03:12 -0800 (PST) Received: by 10.52.33.173 with HTTP; Sat, 3 Dec 2011 06:03:12 -0800 (PST) Received: by 10.52.33.173 with HTTP; Sat, 3 Dec 2011 06:03:12 -0800 (PST) In-Reply-To: References: Date: Sat, 3 Dec 2011 15:03:12 +0100 X-Google-Sender-Auth: 2BkMSQQ_jZAoZDLolN46ChvFmwY Message-ID: Subject: Re: pg_upgrade From: Klaus Ita To: Tory M Blue Cc: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=f46d043bdff0da392704b3308bcd X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201112/15 X-Sequence-Number: 45815 --f46d043bdff0da392704b3308bcd Content-Type: text/plain; charset=UTF-8 ever tried symlinking? On Dec 3, 2011 5:09 AM, "Tory M Blue" wrote: > So we are making progress on our performance issues, we are splitting > the data, changing the index value etc. So far having some success, > but we also want to test out some of the options and changes in the 9 > branch, but trying to dump and restore 750gb of data is not all that > fun, so I'm trying to avoid that. > > So upgraded from 8.4.4 64 bit to 9.1.1 64bit. > > If we upgrade a database that just uses the public table space there > are no issues, works fine. However when we try to upgrade a db that > has tablespaces defined it errors out trying to load the data from the > then now new db. > > The tablespaces are hardcoded with a path, so that seems to cause issues. > > Steps I'm taking > > Standard location of data /data/db > Standard binary location /pgsql/bin > > I'm moving the standard location to /data1/db and moving the binaries > to /pgsql8/bin > > WHY: because my build scripts put my binaries and data in these > locations, so without recreating my build process, I have to move the > current data and binary locations before I install 9.11 > > So I move olddata to /data1/db > oldbinary to /pgsql8/bin > > new 9.1.1 db goes to /data/db > newbinary installs at /pgsql/ > > So when I run pg_upgrade (check validates the config), however trying > to the upgrade nets; > Restoring user relation files > /data/queue/16384/16406 > error while copying queue.adm_version (/data/queue/16384/16406 to > /data/queue/PG_9.1_201105231/16407/16406): No such file or directory > Failure, exiting > > As you can see, it's sticking with it's original path and not > realizing that I'm trying now to install into /data from /data1 > > What is the flaw here? Do I have to rebuild my build process to > install in a different location?, not sure what my choices are here. I > mean I'm telling the upgrade process where new and old are located, I > believe it should be overriding something and not allowing the > included error. > > Slaps and or pointers are welcome > > Tory > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance > --f46d043bdff0da392704b3308bcd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

ever tried symlinking?

On Dec 3, 2011 5:09 AM, "Tory M Blue" = <tmblue@gmail.com> wrote:
So we are making progress on our performance issues, we are splitting
the data, changing the index value etc. So far having some success,
but we also want to test out some of the options =C2=A0and changes in the 9=
branch, but trying to dump and restore 750gb of data is not all that
fun, so I'm trying to avoid that.

So upgraded from 8.4.4 64 bit to 9.1.1 64bit.

If we upgrade a database that just uses the public table space there
are no issues, works fine. However when we try to upgrade a db that
has tablespaces defined it errors out trying to load the data from the
then now new db.

The tablespaces are hardcoded with a path, so that seems to cause issues.
Steps I'm taking

Standard location of data /data/db
Standard binary location /pgsql/bin

I'm moving the standard location to /data1/db and moving the binaries to /pgsql8/bin

WHY: because my build scripts put my binaries and data in these
locations, so without recreating my build process, I have to move the
current data and binary locations before I install 9.11

So I move olddata to /data1/db
oldbinary to /pgsql8/bin

new 9.1.1 db goes to /data/db
newbinary installs at /pgsql/

So when I run pg_upgrade (check validates the config), however trying
to the upgrade nets;
Restoring user relation files
=C2=A0/data/queue/16384/16406
error while copying queue.adm_version (/data/queue/16384/16406 to
/data/queue/PG_9.1_201105231/16407/16406): No such file or directory
Failure, exiting

As you can see, it's sticking with it's original path and not
realizing that I'm trying now to install into /data from /data1

What is the flaw here? Do I have to rebuild my build process to
install in a different location?, not sure what my choices are here. I
mean I'm telling the upgrade process where new and old are located, I believe it should be overriding something and not allowing the
included error.

Slaps and or pointers are welcome

Tory

--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
--f46d043bdff0da392704b3308bcd--