Hi All,
vCAC(vCLoud Automation Center ) is having the Internal DB i.e postgres but if you want the configure the vCAC that will work as Postgres DB cluster then you can use below steps
vRealize Automation center(vCAC) postgres DB cluster Steps by Step Configuration :
1. | Deploy 2 vCAC appliance Download ovf10 and deploy ovf through vCenter Server. |
2. | Manually stop the service (service vco-server stop and Service vcac-server stop). Since we are going to use this Node as Db not as vCAC appliance. |
3. | Run this command from both the vCAC Applaince (usermod –A wheel postgres) that will add the user postgres to wheel. |
4. | GO to vi /etc/ssh/sshd_config file add line (AllowGroups wheel users) and save the file and restart the ssh service. |
5. Go to the file vim /storage/db/pgdata/postgresql.conf and uncomment "listen_address" and * in front of this line and save the file.
6. Restart the postgres database (service vpostgres restart).
7. GO to the Node 1 & 2 and run "su - postgres" .
8 Add user replicate(/opt/vmware/vpostgres/current/share/create_replication_user replicate) and give some password which doesn't have special Character like *&().
9. Go to file vim /storage/db/pgdata/pg_hba.conf and add the line (host vcac replicate 0.0.0.0/0 md5) and save the file using :wq
10. Now create one Directory inside (cd /var/vmware/vpostgres) using (mkdir 9.2-archive).
11. Give permission to postgres user to write in this directory(chown postgres:users 9.2-archive).
12. Login to Node 1 and run(su – postgres).
13. Go to directory (/opt/vmware/vpostgres/current/share/) and run ./run_as_replica –h myhostname -b -W -U replicate
Caution About:
1. Password should not have any special character for replication user.
2. listen_address should be listen for all the Node i.e *.
3. Replicate user should have permission to write into directory.