pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom K <tomkcpr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: psql: FATAL: the database system is starting up
Date: Sat, 1 Jun 2019 16:12:52 -0700
Message-ID: <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com> (raw)
In-Reply-To: <CAE3EmBA8fPtRVNYDd9nt_7Yo1rSoCEw82FGCSEfbMmoJ7ZU+tQ@mail.gmail.com>
References: <CAE3EmBDX+TRLot5Ar6fJwV_QazSrbQ8JmWb9ZhGtj9wgtu7c_g@mail.gmail.com>
	<CAE3EmBC5biD+xPEHfGWg0iuTojhWvJrREnSh-3AViQmOsOx9ZQ@mail.gmail.com>
	<76851993-4826-f300-85ac-42d8b705a56f@aklaver.com>
	<CAE3EmBAfMa=eA1LqBB0zf-kZwBPTbRhzY5wUxcPYNQ8hathDQA@mail.gmail.com>
	<43b5c459-6ee4-c8ec-c402-47ea92738c86@aklaver.com>
	<CAE3EmBD+LN3Mx2W2MbqANt=oaZ6dBDDn-o3a=01naM6at8PZ9w@mail.gmail.com>
	<CAE3EmBC0MAz7JetpL=JzCL9unBSUko6Q0HKKwFArLb6gXMfEhw@mail.gmail.com>
	<be3dec87-807c-f066-cad9-9c3d29f36a76@aklaver.com>
	<CAE3EmBDq7aQ5kXdfZ0uXgoYScMHSntrVLSnNnUVM08_U=18aCQ@mail.gmail.com>
	<CAE3EmBAiB6w6Zg3QOxzd=f6C7TGWH+5bSaW++Vn=v1cbCqmULg@mail.gmail.com>
	<d2dc9b50-af1f-8b0e-0e3f-264d72a62eab@aklaver.com>
	<CAE3EmBDE2=0dPJhTpcdyieKjHMs1-M6E+Da23vYQkH+FVyUJyQ@mail.gmail.com>
	<CAE3EmBDncwAX-i0z3w4_Q-k5svi8kSFxauwFD19k-bXVe5JoLw@mail.gmail.com>
	<aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com>
	<CAE3EmBA8fPtRVNYDd9nt_7Yo1rSoCEw82FGCSEfbMmoJ7ZU+tQ@mail.gmail.com>

On 6/1/19 3:56 PM, Tom K wrote:
> 
> 

> 
> postgres=# select oid, datname from pg_database ;
>    oid  |  datname
> -------+-----------
>   13806 | postgres
>       1 | template1
>   13805 | template0
> (3 rows)
> 

So there are only the system databases available

> -bash-4.2$ cd /data/patroni/
> -bash-4.2$ ls -altri
> total 144
>   69085037 drwxr-xr-x.  3 root     root        20 Oct 23  2018 ..
> 135316997 -rw-------.  1 postgres postgres   206 Oct 29  2018 
> backup_label.old
> 201708781 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_commit_ts
>    1502746 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_dynshmem
>   68994449 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_twophase
>    1502749 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_snapshots
> 201708785 drwx------.  2 postgres postgres     6 Oct 29  2018 pg_serial
>    1502747 drwx------.  4 postgres postgres    34 Oct 29  2018 pg_multixact
>   67677559 drwx------.  5 postgres postgres    38 Oct 29  2018 base

base/ is the directory you need to look in. I'm guessing it is only 
going to show the oid/ for the three db's above and  pgsql_tmp/

For more info on this see:
https://www.postgresql.org/docs/10/storage-file-layout.html

The below looks like the RH package installed data directory. Also looks 
like it either has never had initdb run against or the files where removed.

I thought you said you had copied in data directories from the other 
nodes, did I remember correctly?

> -bash-4.2$ cd
> -bash-4.2$ cd 10
> -bash-4.2$ ls
> backups  data
> -bash-4.2$ pwd
> /var/lib/pgsql/10
> -bash-4.2$ cd data/
> -bash-4.2$ ls -altri
> total 0
> 134734937 drwx------. 4 postgres postgres 31 May  8 06:25 ..
>     245519 drwx------. 2 postgres postgres  6 May  8 06:25 .
> -bash-4.2$ cd ..
> -bash-4.2$ pwd
> /var/lib/pgsql/10
> -bash-4.2$ cd ..
> -bash-4.2$


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (40+ messages)  latest in thread

Message-ID: <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com>
Permalink:  ../1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com/
Also on:    postgresql.org/message-id/1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tomkcpr@gmail.com
  Subject: Re: psql: FATAL: the database system is starting up
  In-Reply-To: <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com>
  References: <CAE3EmBDX+TRLot5Ar6fJwV_QazSrbQ8JmWb9ZhGtj9wgtu7c_g@mail.gmail.com> <76851993-4826-f300-85ac-42d8b705a56f@aklaver.com> <CAE3EmBAfMa=eA1LqBB0zf-kZwBPTbRhzY5wUxcPYNQ8hathDQA@mail.gmail.com> <43b5c459-6ee4-c8ec-c402-47ea92738c86@aklaver.com> <CAE3EmBD+LN3Mx2W2MbqANt=oaZ6dBDDn-o3a=01naM6at8PZ9w@mail.gmail.com> <CAE3EmBC0MAz7JetpL=JzCL9unBSUko6Q0HKKwFArLb6gXMfEhw@mail.gmail.com> <be3dec87-807c-f066-cad9-9c3d29f36a76@aklaver.com> <CAE3EmBDq7aQ5kXdfZ0uXgoYScMHSntrVLSnNnUVM08_U=18aCQ@mail.gmail.com> <CAE3EmBAiB6w6Zg3QOxzd=f6C7TGWH+5bSaW++Vn=v1cbCqmULg@mail.gmail.com> <d2dc9b50-af1f-8b0e-0e3f-264d72a62eab@aklaver.com> <CAE3EmBDE2=0dPJhTpcdyieKjHMs1-M6E+Da23vYQkH+FVyUJyQ@mail.gmail.com> <CAE3EmBDncwAX-i0z3w4_Q-k5svi8kSFxauwFD19k-bXVe5JoLw@mail.gmail.com> <aca93e88-e293-a03e-f29e-089eac69c111@aklaver.com> <CAE3EmBA8fPtRVNYDd9nt_7Yo1rSoCEw82FGCSEfbMmoJ7ZU+tQ@mail.gmail.com> <1bf8035e-006e-d026-e213-04f5b87cb686@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox