Symptoms:
journalctl -xe | less MMM DD HH:MM:SS #########.#########.#### pg_ctl[527944]: MMM DD HH:MM:SS [527944] LOG: starting PostgreSQL 15.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 10.5.0, 64-bitMMM DD HH:MM:SS #########.#########.#### pg_ctl[527944]: MMM DD HH:MM:SS [527944] LOG: listening on IPv4 address "127.0.0.1", port 5432MMM DD HH:MM:SS #########.#########.#### pg_ctl[527944]: MMM DD HH:MM:SS [527944] FATAL: could not open lock file "/home/postgresql/.s.PGSQL.####.lock": Permission deniedMMM DD HH:MM:SS #########.#########.#### pg_ctl[527944]: MMM DD HH:MM:SS [527944] LOG: database system is shut downMMM DD HH:MM:SS #########.#########.#### pg_ctl[527942]: pg_ctl: could not start serverMMM DD HH:MM:SS #########.#########.#### pg_ctl[527942]: Examine the log output.MMM DD HH:MM:SS #########.#########.#### systemd[1]: postgres.service: Control process exited, code=exited, status=1/FAILURESDDC Manager 5.2.1
The /home/postgresql directory was owned by the vcf user instead of the postgres user, which prevented the PostgreSQL service from starting.
: ls -ltrah chown postgres -R postgresql/systemctl start postgresopt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh