Re: Moving the master to a new server

2022-02-15 Thread Glen Eustace
On 16/02/22 1:58 am, Marc Millas wrote: another way would be to, while everything running, you create a second slave on the new machine on rocky8 with a pg_basebackup Thanks, I did consider this as well.  Last night I did the move using the rsync approach and it worked very well. -- =-=-=-

Re: Moving the master to a new server

2022-02-15 Thread Marc Millas
Hi, another way would be to, while everything running, you create a second slave on the new machine on rocky8 with a pg_basebackup. and start the new slave. when low activity, you just stop the master, then promote the slave => new master up then modify the connection line in your recovery.conf

Re: Moving the master to a new server

2022-02-14 Thread Alan Hodgson
On Tue, 2022-02-15 at 08:58 +1300, Glen Eustace wrote: > > But upgrading that way takes too long for the master so I build a > new > server instead. So, if I shutdown both postgresql instances old and > new, > rsync the data directory and restart on the new. I should be OK ? > Should be, yeah.

Re: Moving the master to a new server

2022-02-14 Thread Glen Eustace
On 15/02/22 8:39 am, Alan Hodgson wrote: pg_dump -> restore will break your streaming replication. You'll need to set it up again. That's what I thought might be the case. If the PG version isn't changing and you're still on the same version of Linux, rsync would be easier. I did an ELeva

Re: Moving the master to a new server

2022-02-14 Thread Alan Hodgson
On Tue, 2022-02-15 at 08:29 +1300, Glen Eustace wrote: > I need to move my master postgresql deployment to a new server. > > I am comfortable with stopping all connections then doing a > pg_dumpall > > psql to move the databases, they are not huge so this completes in > an > acceptable time and

Moving the master to a new server

2022-02-14 Thread Glen Eustace
I need to move my master postgresql deployment to a new server. I am comfortable with stopping all connections then doing a pg_dumpall > psql to move the databases, they are not huge so this completes in an acceptable time and I am not expecting any data loss but I am unsure of what impact thi