|
Home > Archive > PostgreSQL Administration > January 2006 > Transferring DATA directory
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Transferring DATA directory
|
|
| Alfred Lau - FORMotion Systems 2006-01-18, 11:24 am |
| Hi,
I'm trying to transfer large amounts of data between two PostgreSQL 8.1.2
database Windows XP platforms using the physical filesystem backup method. I
used the same PostgreSQL installer on both machines and the same PostgreSQL
configuration. I also used default options with PostGIS options. I did the
following:
1. shut down the database on each of machine A and machine B,
2. zipped up the <postgre-home>\DATA directory on machine A and unzipped it
onto machine B.
3. when I started up PostgreSQL on machine B with machine A's data directory,
the following message is returned:
"The PostgreSQL Database Server 8.1 service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534"
I'm trying not to transfer data using pg_dump as it's quite a lot of data and
highly time consuming. Does anyone know if this is possible. I've verified
that there is no .pid file in the DATA directory. Are there other files I am
missing? Anything else I might try?
Thanks,
Alfred Lau
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
| |
| Jason Minion 2006-01-18, 1:24 pm |
| Does the local postgresql user account on machine B have the correct
permissions for the files you copied over? Also make sure to try
starting postgresql from the command line using pg_ctl, and check your
service properties to get an idea of the command being used there to
attempt to start postgresql. Things like the "-D <path" parameter will
be *very* important.
Jason Minion
-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Alfred Lau -
FORMotion Systems
Sent: Wednesday, January 18, 2006 10:47 AM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Transferring DATA directory
Hi,
I'm trying to transfer large amounts of data between two PostgreSQL
8.1.2 database Windows XP platforms using the physical filesystem backup
method. I used the same PostgreSQL installer on both machines and the
same PostgreSQL configuration. I also used default options with PostGIS
options. I did the
following:
1. shut down the database on each of machine A and machine B, 2.
zipped up the <postgre-home>\DATA directory on machine A and unzipped it
onto machine B.
3. when I started up PostgreSQL on machine B with machine A's data
directory, the following message is returned:
"The PostgreSQL Database Server 8.1 service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534"
I'm trying not to transfer data using pg_dump as it's quite a lot of
data and highly time consuming. Does anyone know if this is possible.
I've verified that there is no .pid file in the DATA directory. Are
there other files I am missing? Anything else I might try?
Thanks,
Alfred Lau
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
| |
| Alfred Lau - FORMotion Systems 2006-01-20, 9:23 am |
| Hi Jason,
Permssions was the exact problem. After disabling the simple file sharing
option in Folder Options (under Windows XP Professional), I was able to see
the permissions of the DATA folder and change them appropriately.
Gracias,
Alfred.
On Wed, 18 Jan 2006 11:26:26 -0600, Jason Minion wrote
> Does the local postgresql user account on machine B have the correct
> permissions for the files you copied over? Also make sure to try
> starting postgresql from the command line using pg_ctl, and check
> your service properties to get an idea of the command being used
> there to attempt to start postgresql. Things like the "-D <path"
> parameter will be *very* important.
>
> Jason Minion
>
> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Alfred Lau -
> FORMotion Systems
> Sent: Wednesday, January 18, 2006 10:47 AM
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Transferring DATA directory
>
> Hi,
>
> I'm trying to transfer large amounts of data between two PostgreSQL
>
> 8.1.2 database Windows XP platforms using the physical filesystem backup
> method. I used the same PostgreSQL installer on both machines and the
> same PostgreSQL configuration. I also used default options with PostGIS
> options. I did the
> following:
>
> 1. shut down the database on each of machine A and machine B, 2.
> zipped up the <postgre-home>\DATA directory on machine A and
> unzipped it onto machine B.
> 3. when I started up PostgreSQL on machine B with machine A's data
> directory, the following message is returned:
>
> "The PostgreSQL Database Server 8.1 service could not be started.
>
> The service did not report an error.
>
> More help is available by typing NET HELPMSG 3534"
>
> I'm trying not to transfer data using pg_dump as it's quite a lot of
> data and highly time consuming. Does anyone know if this is possible.
> I've verified that there is no .pid file in the DATA directory. Are
> there other files I am missing? Anything else I might try?
>
> Thanks,
>
> Alfred Lau
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
Alfred Lau
Software Developer
FORMotion Systems Inc.
alfred. lau@formotionsystems
.com
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq
| |
| Jaime Casanova 2006-01-21, 11:23 am |
| On 1/17/06, Alfred <alfred.lau@gmail.com> wrote:
> Hi,
>
> I'm trying to transfer large amounts of data between two PostgreSQL 8.1.2
> database Windows XP platforms using the physical filesystem backup method. I
> used the same PostgreSQL installer on both machines and the same PostgreSQL
> configuration. I also used default options with PostGIS options. I did the
> following:
>
> 1. shut down the database on each of machine A and machine B,
> 2. zipped up the <postgre-home>\DATA directory on machine A and unzipped it
> onto machine B.
> 3. when I started up PostgreSQL on machine B with machine A's data
> directory, the following message is returned:
>
> "The PostgreSQL Database Server 8.1 service could not be started.
>
> The service did not report an error.
>
> More help is available by typing NET HELPMSG 3534"
>
> I'm trying not to transfer data using pg_dump as it's quite a lot of data
> and highly time consuming. Does anyone know if this is possible. I've
> verified that there is no .pid file in the DATA directory. Are there other
> files I am missing? Anything else I might try?
>
> Thanks,
>
> Alfred Lau
>
i have already done that...
- just install the server in machine B and run postgresql on machine B
(this is important to be sure everything is correctly installed)
- stop both servers (the one in machine A and in machine B)
- Copy the data directory from machine A and paste it in machine B
(previously you must be deleted the machines B's data directory or at
least its contents)
- start service in machine B
--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
|
|
|
|
|