@kalinux Unfortunately, there are two different features in ManageIQ that can be described as database replication.
- Multiple regions can replicate data to a central region, which can be used as a single pane of glass for reporting and also some admin tasks. This type of replication is configured using the ManageIQ web interface and is usually what people are talking about when they say “Replication”. This type of replication is implemented using logical replication (pglogical) of particular tables and is not suitable for highly available environments.
- HA replication is implemented using PG physical streaming replication and is configured using the appliance console.
Generally I would suggest not co-locating a running instance of the application with a database in an HA scenario. ManageIQ appliances automatically configure the database on first boot, so there are a few steps to go through before you will be able to configure the database separately.
The following will stop the application and the database, remove the database that was configured on first boot and get you into a situation where you should be able to follow the documentation here.
systemctl stop evmserverd
systemctl disable evmserverd
systemctl stop $APPLIANCE_PG_SERVICE
systemctl disable $APPLIANCE_PG_SERVICE
rm -f REGION config/database.yml
rm -rf $APPLIANCE_PG_DATA/*
At this point you will probably want to create a template from this machine and use it to deploy the rest of the environment. The documentation I linked should get you through setting up the database cluster.
My suggested deployment would be at least two database appliances (preferably 3) and then however many application appliances you need. Also, if you think you need more storage for the database, feel free to resize the existing volume on the appliance. We ship with a logical volume configured for the database so you should be able to add more physical volumes to that to extend the size.
Hope this helps,