From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Chris Hoover <revoohc(at)gmail(dot)com> |
Cc: | Andrzej Zawadzki <zawadaa(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Moving database install to new SAN |
Date: | 2007-09-20 18:16:06 |
Message-ID: | 46F2B8E6.4010108@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chris Hoover wrote:
>>> 2. copy whole data directory over to new SAN
>> If database is big, then I think that is much faster to copy running
>> database
>> to new SAN.
>> Then stop postgres and rsync what was changed - but this will be probably
>> only a few files.
>
>
>
> I believe if you do this, you will not get a function database in the end.
> There is a lot of data that is held in memory/buffers that may not be
> flushed to the disks. You have no guarantee you will get this data with
> this method.
The method would work if they are willing to have an outage. Basically
you do an initial rsync of the large db...
Then you shut down the db.
And rsync again, which will be faster than doing a complete move with
shutdown.
The key here is, if you use this method... there is *zero* way around
shutting down the database before the second rsync.
Sincerely,
Joshua D. Drake
- --
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997 http://www.commandprompt.com/
UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFG8rjmATb/zqfZUUQRAs5bAJ9Avhtd0KgQfta1YqN5IX75M3I0awCdHuna
suRxLPewL/v2t4w1t7K3eyM=
=0rQC
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | xmuinn | 2007-09-21 01:20:05 | How to repair if file pg_clog/0000 is deleted |
Previous Message | Chris Hoover | 2007-09-20 18:10:11 | Re: Moving database install to new SAN |