Re: Is it safe to stop postgres in between pg_start_backup and pg_stop_backup?
От | AI Rumman |
---|---|
Тема | Re: Is it safe to stop postgres in between pg_start_backup and pg_stop_backup? |
Дата | |
Msg-id | CAGoODpd93DBkFNVUU_x5VV-ES=BLEetDTj-j_eB09Ra7D1FHYA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Is it safe to stop postgres in between pg_start_backup and pg_stop_backup? (Alan Hodgson <ahodgson@simkin.ca>) |
Список | pgsql-general |
What we did in this kind of higher performance storage migration, setting up standby on that mounts and then executed a failover.
On Thu, Apr 3, 2014 at 3:58 PM, Alan Hodgson <ahodgson@simkin.ca> wrote:
On Thursday, April 03, 2014 02:48:03 PM Steven Schlansker wrote:
> On Apr 2, 2014, at 3:08 PM, Jacob Scott <jacob.scott@gmail.com> wrote:> • pg_start_backup... with a recovery.conf in place when starting the new instance.
> • Take a filesystem snapshot (of a volume containing postgres data but not
> pg_xlog) • pg_stop_backup
> • pg_ctl stop
> • Bring a new higher performing disk online from snapshot
> • switch disks (umount/remount at same mountpoint)
> • pg_ctl startAnd make sure they're archived to a different disk.
>
> Assuming you ensure that your archived xlogs are available same to the new
> instance as the oldThis would be simpler.
> Another option you could consider is rsync. I have often transferred
> databases by running rsync concurrently with the database to get a “dirty
> backup” of it. Then once the server is shutdown you run a cleanup rsync
> which is much faster than the initial run to ensure that the destination
> disk is consistent and up to date. This way your downtime is limited to
> how long it takes rsync to compare fs trees / fix the inconsistencies.
>
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: