Re: Problem pg_upgradecluster from 9.1 to 9.3

From: Jan Harasym <jan(dot)harasym(at)massive(dot)se>
To: Matthieu Lejeune <matthieu(dot)lejeune(at)exxoss(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Problem pg_upgradecluster from 9.1 to 9.3
Date: 2014-12-05 10:18:37
Message-ID: a6d5fa80ff6d4b619d20a33403ba3346@pdc-mail-exch05.ubisoft.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Matthieu,

Are you following the steps from here: http://nixmash.com/postgresql/upgrading-postgresql-9-1-to-9-3-in-ubuntu/

What's the current output of `pg_lscluster`?

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Matthieu Lejeune
Sent: December 05, 2014 11:06 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Problem pg_upgradecluster from 9.1 to 9.3

Hi all,

I have a problem when I try to upgrade my pgsql 9.1 cluster to 9.3

This is my output :

root(at)p2tstl2mondbm:/var/lib/postgresql# pg_upgradecluster 9.1 main
Disabling connections to the old cluster during upgrade...
Restarting old cluster with restricted connections...
Removed stale pid file.
Creating new cluster 9.3/main ...
config /etc/postgresql/9.3/main
data /var/lib/postgresql/9.3/main
locale C
port 5433
Disabling connections to the new cluster during upgrade...
Error: automatic upgrade of tablespaces is not supported
Re-enabling connections to the old cluster...
Re-enabling connections to the new cluster...
Error during cluster dumping, removing new cluster

On my db I have 2 tablespaces :

postgres=# \db+
List of tablespaces
Name | Owner | Location |
Access privileges | Description
--------------+----------+-----------------------------------------+-------------------+-------------
envers | postgres | /var/lib/postgresql/tablespaces/envers
| |
indexes_fast | postgres | /var/lib/postgresql/tablespaces/indexes
| |
pg_default | postgres | | |
pg_global | postgres | | |
(4 rows)

postgres=#

This is my path config :

postgres(at)p2tstl2mondbm:~$ cd /var/lib/postgresql/
postgres(at)p2tstl2mondbm:/var/lib/postgresql$ ls -all
total 36
drwxr-xr-x 6 postgres postgres 4096 Dec 4 12:22 .
drwxr-xr-x 27 root root 4096 Dec 4 08:17 ..
drwxr-xr-x 4 postgres postgres 4096 Oct 7 07:42 9.1
drwxr-xr-x 2 postgres postgres 4096 Dec 5 10:58 9.3
drwx------ 2 postgres postgres 16384 Mar 4 2013 lost+found
drwx------ 4 postgres postgres 4096 Mar 8 2013 tablespaces
postgres(at)p2tstl2mondbm:/var/lib/postgresql$

My pgsql versions :

i postgresql 9.1+134wheezy4
all object-relational SQL database (supported version)
ii postgresql-9.1 9.1.14-0+deb7u1
amd64 object-relational SQL database, version 9.1 server
ii postgresql-9.3 9.3.5-1.pgdg70+1
amd64 object-relational SQL database, version 9.3 server

I don't find any tips on the web to help me

Thank you for your advice.

Matthieu Lejeune

--
Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message reiner peterke 2014-12-05 10:22:33 Re: How to enable SSL on client
Previous Message Matthieu Lejeune 2014-12-05 10:06:06 Problem pg_upgradecluster from 9.1 to 9.3