Migration of PGDATA
am 29.03.2010 11:31:34 von mmuenst
Hi,
is it safe to move the PGDATA directory from one system to another when m=
igrating from one operating system to another?
For example: migrating from Debian to RHEL, or from RHEL4 to RHEL5?
The database is of course shutdown properly, and the PG major versions ma=
tch.
Or is a dump/restore necessary in these cases?
Thanks,
Martin
--=20
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Migration of PGDATA
am 29.03.2010 12:07:10 von Guillaume Lelarge
Le 29/03/2010 11:31, "Martin Münstermann" a =E9crit :
> [...]
> is it safe to move the PGDATA directory from one system to another when=
migrating from one operating system to another?
> For example: migrating from Debian to RHEL, or from RHEL4 to RHEL5?
> The database is of course shutdown properly, and the PG major versions =
match.
>=20
> Or is a dump/restore necessary in these cases?
>=20
As long as you have the same hardware platform (for example no
32bit/64bit changes) and no difference in compiling options (for example
--disable-integer-datetimes), it should work great.
--=20
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Migration of PGDATA
am 29.03.2010 12:18:58 von Robert Joosten
Hi,
> is it safe to move the PGDATA directory from one system to another when migrating from one operating system to another?
> For example: migrating from Debian to RHEL, or from RHEL4 to RHEL5?
> The database is of course shutdown properly, and the PG major versions match.
> Or is a dump/restore necessary in these cases?
Besides the other reply, take into account little- versus bigendian
changes if you switch hardware.
But just out of curiosity: why propose against a dump/restore ? I mean:
when I upgrade between major releases I dump as well, as it is
recommended. I never ran into trouble, you know.
Regards,
Robert
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Migration of PGDATA
am 29.03.2010 12:49:55 von mmuenst
Hi,
> > is it safe to move the PGDATA directory from one system to another wh=
en
> migrating from one operating system to another?
> > For example: migrating from Debian to RHEL, or from RHEL4 to RHEL5?
> > The database is of course shutdown properly, and the PG major version=
s
> match.
> > Or is a dump/restore necessary in these cases?
>=20
> Besides the other reply, take into account little- versus bigendian=20
> changes if you switch hardware.
Good point. But as we stick to Linux on Intel, we expect no problems ther=
e.
> But just out of curiosity: why propose against a dump/restore ? I mean:=
=20
> when I upgrade between major releases I dump as well, as it is=20
> recommended. I never ran into trouble, you know.=20
It's a question of migration duration aka downtime.
Our PGDATA resides on a SAN, so moving/migrating the directory takes a co=
uple of seconds. A dump/restore cycle would take much longer.
Thanks,
Martin
--=20
GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern
E-Mail, SMS & mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Migration of PGDATA
am 29.03.2010 12:53:30 von Renato Oliveira
Only out of curiosity, is your current server 32 bit or 64?
Are you migrating 32 to 32 or 64 to 64?
Thank you
Renato
Renato Oliveira
Systems Administrator
e-mail: renato.oliveira@grant.co.uk
Tel: +44 (0)1763 260811
Fax: +44 (0)1763 262410
http://www.grant.co.uk/
Grant Instruments (Cambridge) Ltd
Company registered in England, registration number 658133
Registered office address:
29 Station Road,
Shepreth,
CAMBS SG8 6GB
UK
-----Original Message-----
From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql=
..org] On Behalf Of "Martin Münstermann"
Sent: 29 March 2010 11:50
To: Robert Joosten; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Migration of PGDATA
Hi,
> > is it safe to move the PGDATA directory from one system to another when
> migrating from one operating system to another?
> > For example: migrating from Debian to RHEL, or from RHEL4 to RHEL5?
> > The database is of course shutdown properly, and the PG major versions
> match.
> > Or is a dump/restore necessary in these cases?
>
> Besides the other reply, take into account little- versus bigendian
> changes if you switch hardware.
Good point. But as we stick to Linux on Intel, we expect no problems there.
> But just out of curiosity: why propose against a dump/restore ? I mean:
> when I upgrade between major releases I dump as well, as it is
> recommended. I never ran into trouble, you know.
It's a question of migration duration aka downtime.
Our PGDATA resides on a SAN, so moving/migrating the directory takes a coup=
le of seconds. A dump/restore cycle would take much longer.
Thanks,
Martin
--
GMX.at - Österreichs FreeMail-Dienst mit über 2 Mio Mitgliedern
E-Mail, SMS & mehr! Kostenlos: http://portal.gmx.net/de/go/atfreemail
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
-----Original Message-----
P Please consider the environment before printing this email
CONFIDENTIALITY: The information in this e-mail and any attachments is conf=
idential. It is intended only for the named recipients(s). If you are not t=
he named recipient please notify the sender immediately and do not disclose=
the contents to another person or take copies.
VIRUSES: The contents of this e-mail or attachment(s) may contain viruses w=
hich could damage your own computer system. Whilst Grant Instruments (Cambr=
idge) Ltd has taken every reasonable precaution to minimise this risk, we c=
annot accept liability for any damage which you sustain as a result of soft=
ware viruses. You should therefore carry out your own virus checks before o=
pening the attachment(s).
OpenXML: For information about the OpenXML file format in use within Grant =
Instruments please visit our http://www.grant.co.uk/Support/openxml.html
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Migration of PGDATA
am 29.03.2010 13:50:04 von mmuenst
Hi,
> > is it safe to move the PGDATA directory from one system to another when
> migrating from one operating system to another?
> > For example: migrating from Debian to RHEL, or from RHEL4 to RHEL5?
> > The database is of course shutdown properly, and the PG major versions
> match.
> >
> > Or is a dump/restore necessary in these cases?
> >
>
> As long as you have the same hardware platform (for example no
> 32bit/64bit changes) and no difference in compiling options (for example
> --disable-integer-datetimes), it should work great.
There is no difference in the platform or the compiler options.
In case it does not work great, what kind of problems would we experience?
Would PG not startup at all? Or would we experience SQL errors later on or even casual crashes?
Thanks,
Martin
--
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Migration of PGDATA
am 29.03.2010 16:47:45 von Tom Lane
=?iso-8859-1?Q?=22Martin_Münstermann=22?= writes:
> In case it does not work great, what kind of problems would we experience?
In theory pg_control contains enough information to detect such
compatibility problems, so that you'd get a refusal to start.
In practice, maybe not, and the consequences could be arbitrarily
unpleasant. Better keep a pg_dump backup just in case.
One thing I'd particularly caution you to check is that the locale
settings on the new platform are equivalent to those on the old.
We have seen cases where the same locale name produces different
sort orderings on different platforms. That will result in corrupt
(malfunctioning) indexes on text columns.
regards, tom lane
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Unknown winsock error 10061
am 13.04.2010 14:31:40 von Yuval_Sofer
Hi,
Postgres server crashed on windows vista.=20
=46rom the log:
2010-04-07 07:00:35.694 LOG: could not receive data from client: Unknown w=
insock error 10061
2010-04-07 07:00:35.694 LOG: could not receive data from client: Unknown w=
insock error 10061
2010-04-07 07:00:35.694 LOG: unexpected EOF on client connection
2010-04-07 07:00:35.694 LOG: unexpected EOF on client connection
2010-04-07 08:27:53.934 LOG: received fast shutdown request
2010-04-07 08:27:53.934 LOG: aborting any active transactions
Why did the postgres server crashed?
Is it operating system problem or postgres?
Is there any work around ?=20
Thanks,=20
Yuval
--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Re: Unknown winsock error 10061
am 13.04.2010 15:33:37 von Kevin Grittner
"Sofer, Yuval" wrote:
> Postgres server crashed on windows vista.
What causes you to say that the server crashed?
> 2010-04-07 07:00:35.694 LOG: could not receive data from client:
> Unknown winsock error 10061
> 2010-04-07 07:00:35.694 LOG: could not receive data from client:
> Unknown winsock error 10061
> 2010-04-07 07:00:35.694 LOG: unexpected EOF on client connection
> 2010-04-07 07:00:35.694 LOG: unexpected EOF on client connection
This looks like a network disruption or a client machine being
turned off. Sort of. The odd thing is the error code of 10061,
which is supposed to be for "connection refused" -- are you using
anything which might be trying to connect out from the PostgreSQL
server (e.g., dblink)?
> 2010-04-07 08:27:53.934 LOG: received fast shutdown request
> 2010-04-07 08:27:53.934 LOG: aborting any active transactions
This looks like the server was shut down an hour and half after the
broken client connections. Did you shut it down at 8:27?
> Why did the postgres server crashed?
What did you see that makes you think it did?
> Is it operating system problem or postgres?
I don't see any indication of a PostgreSQL problem. By the way,
what version of PostgreSQL is this?
> Is there any work around ?
Without knowing what happened, it's hard to say. Any idea what
might have happened with the network or client machine(s) at 7:00?
If you review this page and follow the suggestions there, you'll
give us more to work with when trying to help:
http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
-Kevin
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin