stopped state. Manual attempts to start the service (systemctl start postgres) result in an immediate failure.journal -xe will report the following errors. MM DD HH:MM:SS [email protected] kernel: audit: type=1006 audit(1769503658.930:77): pid=10313 uid=0 subj=unconfined old-auid=4294967295 auid=985 tty=(none) old-ses=4294967295 ses=12 res=1MM DD HH:MM:SS [email protected] sh[10314]: Performing Consistency ChecksMM DD HH:MM:SS [email protected] sh[10314]: -----------------------------MM DD HH:MM:SS [email protected] sh[10314]: Checking cluster versions okMM DD HH:MM:SS [email protected] sh[10314]: connection to server on socket "/tmp/.s.PGSQL.50432" failed: FATAL: database "template1" does not existMM DD HH:MM:SS [email protected] sh[10314]: DETAIL: The database subdirectory "base/16400" is missing.MM DD HH:MM:SS [email protected] sh[10314]: could not connect to source postmaster started with the command:MM DD HH:MM:SS [email protected] sh[10314]: "/usr/pgsql/13/bin/pg_ctl" -w -l "/data/pgdata15/pg_upgrade_output.d/20260127T084738.940/log/pg_upgrade_server.log" -D "/data/pgdata" -o "-p 50432 -b -c listen_addresses='' ->MM DD HH:MM:SS [email protected] sh[10314]: Failure, exitingMM DD HH:MM:SS [email protected] su[10313]: pam_unix(su:session): session closed for user postgresMM DD HH:MM:SS [email protected] sh[10275]: + '[' 1 -ne 0 ']'MM DD HH:MM:SS [email protected] sh[10275]: + echo 'Postgres upgrade has failed, Please contact Engineering for further support'MM DD HH:MM:SS [email protected] sh[10275]: + echo 'Postgres Upgrade Failed'MM DD HH:MM:SS [email protected] sh[10275]: Postgres Upgrade FailedMM DD HH:MM:SS [email protected] sh[10275]: + exit 1MM DD HH:MM:SS [email protected] systemd-logind[938]: Session c9 logged out. Waiting for processes to exit.MM DD HH:MM:SS [email protected] systemd[1]: postgres.service: Control process exited, code=exited, status=1/FAILURE
VCF 5.x
This issue is typically caused by missing or corrupted directory structures within the /data/pgdata/ path. In this specific scenario, the directory 16400 is missing from the /data/pgdata/base path because files have been manually modified, moved, or deleted. This results in the pg_upgrade utility reporting a database inconsistency which prevents the SDDC Manager upgrade from completing successfully.
To resolve the issue:
Find the missing directory or files across the SDDC manager.,
su root
find command. find / -iname 16400
Scenario 1: Missing directory found to be present at a different path.
systemctl stop postgres
/data/pgdata/base'
/nfs/vmware/vcf/nfs-mount/16400, then mv /nfs/vmware/vcf/nfs-mount/16400 /data/pgdata/base/
systemctl start postgres
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
Scenario: 2: The directory or file is missing and not found using the find command.