6.2

Table Of Contents
4 Promote the replicate database to master as the postgres user with
the /opt/vmware/vpostgre/current/share/promote_replica_to_primary command.
# su - postgres
/opt/vmware/vpostgres/current/share/promote_replica_to_primary
server promoting
5 Log in to the replica appliance machine as root using SSH.
6 Configure database replication as the postgres user with a command of the
form ./run_as_replica-h Primary Appliance -b -W -U replicate
# su - postgres
/opt/vmware/vpostgres/current/share/run_as_replica -h appl.domain.local
-b -W -U replicate
7 Enter the replicate user password when prompted.
8 Enter yes in response to the following message.
Warning: the base
backup operation will replace the current contents of the data directory.
Please confirm by typing yes.
What to do next
Validate that the replication was successful. See Validate Appliance Database Replication.
Validate Appliance Database Replication
When testing failover or failback of the Appliance Database, validate that the database was replicated
correctly.
After configuring the Appliance Database on designated master and replica appliance host machines, test
that the database on either machine can function with your system.
Prerequisites
Procedure
1 Log in to the appliance that contains the primary or master database.
2 Run the ps -ef |grep wal command to validate that the WAL process is running.
# ps -ef |grep wal
postgres 4784 4779 0 21:42 ? 00:00:00 postgres: wal writer
process
postgres 20901 4779 0 22:49 ? 00:00:00 postgres: wal sender process replicate
10.26.36.64(55887) streaming 0/70000B8
Installation and Configuration
VMware, Inc. 83