Re: pg_upgrade help

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Akshay Ballarpure <akshay(dot)ballarpure(at)tcs(dot)com>, Fabio Pardi <f(dot)pardi(at)portavita(dot)eu>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: pg_upgrade help
Date: 2018-04-18 14:02:32
Message-ID: e6384fa1-0cb0-18fa-77b9-025885befbb7@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-performance

On 04/18/2018 05:02 AM, Akshay Ballarpure wrote:
> Hi Fabio,
> sorry to bother you again, its still failing with stopping both server
> (8.4 and 9.4)

Actually according to the command show at bottom of post it is failing
trying to start the 8.4 server. In your previous post that was because
it was already running:

-bash-4.2$ ps -eaf | grep postgres
postgres 9778 1 0 09:17 ? 00:00:00 /usr/bin/postgres -p
50432 -D /var/ericsson/esm-data/postgresql-data/

FATAL: lock file "postmaster.pid" already exists
HINT: Is another postmaster (PID 9778) running in data directory
"/var/ericsson/esm-data/postgresql-data"?
pg_ctl: could not start server

Make sure both servers are stopped before running pg_upgrade. Per a
previous suggestion follow the check list here:

https://www.postgresql.org/docs/10/static/pgupgrade.html
"
Usage

These are the steps to perform an upgrade with pg_upgrade:

...

"

>
> -bash-4.2$ /opt/rh/rh-postgresql94/root/usr/bin/pg_upgrade
> --old-bindir=/usr/bin --new-bindir=/opt/rh/rh-postgresql94/root/usr/bin
> --old-datadir=$OLDCLUSTER --new-datadir=$NEWCLUSTER
>
> connection to database failed: could not connect to server: No such file
> or directory
>         Is the server running locally and accepting
>         connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.50432"?
>
>
> could not connect to old postmaster started with the command:
> "/usr/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D
> "/var/ericsson/esm-data/postgresql-data" -o "-p 50432 -c autovacuum=off
> -c autovacuum_freeze_max_age=2000000000  -c listen_addresses='' -c
> unix_socket_permissions=0700" start
> Failure, exiting
>
>
> With Best Regards
> Akshay

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Wells Oliver 2018-04-18 18:14:41 Re: Dropping constraints on a table locks referenced table... why?
Previous Message Lazaro Garcia 2018-04-18 13:48:03 Possible bug on code autocomplete pgadmin V 3.0

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Raiskup 2018-04-18 14:07:50 pg_upgrade: when the --old-bindir requires "additional" $libdir/ plugins?
Previous Message Melvin Davidson 2018-04-18 13:55:17 Re: How to fetch data from tables in PostgreSQL

Browse pgsql-performance by date

  From Date Subject
Next Message Vitaliy Garnashevich 2018-04-18 22:14:48 SeqScan vs. IndexScan
Previous Message Fabio Pardi 2018-04-18 12:47:17 Re: pg_upgrade help