/etc/init.d/vpostgres status /etc/init.d/vpostgres restart
pg_ctl: directory "/db/data" is not a database cluster directory
VMware Identity Manager 3.3.7
There can be numerous causes. This article provides two possible issues and we can search for both:
These two issues can be checked for in either order:
If the password for psql users 'repl' or 'postgres' do not match these files, then it will need to be updated:
grep 'password=' /db/data/recovery_1st_stagePGPASSWORD=<Password from the above command> psql -U repl -h master -d postgresgrep 'recovery_password =' /usr/local/etc/pgpool.confPGPASSWORD=<Password from the above command> psql -U postgres -h master -d postgresIf either login is not successful then that password needs to be updated in the PSQL prompt on the master DB, with this query:
Connect Postgres DB using the command psql -U postgres saas
ALTER USER repl PASSWORD '<new password>'
or
ALTER USER postgres PASSWORD '<new password>'
The /db/data directory is not a place to leave files manually. It is for the postreSQL DB data only.
ls -Al /db/datals -Al /db/data there and compare the listingsls -Al /db/data/pg_xlogroot somegroup should have their owner changed:
chown postgres:users pg_standard_filemv /db/data/strangefile.txt /root/