You can get the status of replication for both the postgres database and file system
synchronization from the command line. You can also view the replication status in a loop, so that
it continues to update every three seconds and exits only when the synchronization is
complete.
Procedure
-
Run the following command to view the current replication status:
sudo resDrStatus
This returns the replication status, for example:
Postgresql Replication Status: Running, Replication delay=120 bytes
File Replication Status: Running (Synced)
-
To run the replication status in a loop so that it updates every 30 seconds, and so that it
exits only when the receiver appliance is fully synchronized with the master appliance, run the
following command:
sudo bash /usr/bin/resDrStatus -w
To manually stop this process, press Ctrl + C.