On PostgreSQL v15 on RedHat 9 we would like to establish asynchronous read-only standby streaming replication.
Primary server has 10 TB of data and pretty much a lot of new transactions, because it is big data server.
I have seen several instructions how to establish standby replication, but all of the instructions have part to do it with "pg_basebackup" utility that requires to have empty directory on standby server. This solution does not fit our needs because we can't afford to copy data using backup utility, because it just takes way too long. We want to clone database disks with disk storage facility that is super fast.
What we would like to do is:
- From primary server clone the disks where postgres cluster is located using disk storage facility, which is super fast.
- Attach cloned disks to new Linux vmware virtual machine (standby server). Start standby server. I can confirm postgresql database is working fine on standby server, but it is currently not replicating any data from primary server.
- Setup replication, so server starts replicating data to standby server. --> This is the step I am struggling now.
How to establish streaming replication using cloned disks?