On 12/4/20 12:27 AM, Yambu wrote: > Hi > > Im trying to add a second cluster on the same machine, but im getting > error below,what could be the problem? > > -bash-4.2$ /usr/pgsql-10/bin/postgresql-10-setup initdb -D > /var/lib/pgsql/10/data-log -p 5433 > systemctl: invalid option -- 'D' > failed to find PGDATA setting in -D.service
What distro (including version!) are you running? How did you install Postgres?