pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL 9.3 - reindex problem
3+ messages / 3 participants
[nested] [flat]
* PostgreSQL 9.3 - reindex problem
@ 2018-08-02 09:54 For@ll <forall@stalowka.info>
2018-08-03 07:28 ` Re: PostgreSQL 9.3 - reindex problem Laurenz Albe <laurenz.albe@cybertec.at>
2018-08-03 15:46 ` Re: PostgreSQL 9.3 - reindex problem Ron <ronljohnsonjr@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: For@ll @ 2018-08-02 09:54 UTC (permalink / raw)
To: pgsql-admin
Hi,
I have problem with postgresql-9.3 in our clients. They suddenly lost
power connection and all servers halt.. I repiar xfs filesystem on
CentOS7 postgresql partition. Now when I want run reindex database I
receive error:
reindexdb -d ex200
NOTICE: table "pg_catalog.pg_class" was reindexed
reindexdb: reindexing of database "ex200" failed: ERROR: invalid page
in block 101 of relation base/157934/12685
I want to try run dump and save database on plaintext but when I start
pg_dump it's hang...
pg_dump -a -v -d ex200 > ex200.sql
pg_dump: last built-in OID is 16383
pg_dump: reading extensions
pg_dump: identifying extension members
pg_dump: reading schemas
pg_dump: reading user-defined tables
pg_dump: reading user-defined functions
Any ideas what can I do.. Client told me they have a backup from 2
montgs ago....
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PostgreSQL 9.3 - reindex problem
2018-08-02 09:54 PostgreSQL 9.3 - reindex problem For@ll <forall@stalowka.info>
@ 2018-08-03 07:28 ` Laurenz Albe <laurenz.albe@cybertec.at>
1 sibling, 0 replies; 3+ messages in thread
From: Laurenz Albe @ 2018-08-03 07:28 UTC (permalink / raw)
To: For@ll <forall@stalowka.info>; pgsql-admin
For@ll wrote:
> I have problem with postgresql-9.3 in our clients. They suddenly lost
> power connection and all servers halt.. I repiar xfs filesystem on
> CentOS7 postgresql partition. Now when I want run reindex database I
> receive error:
>
> reindexdb -d ex200
> NOTICE: table "pg_catalog.pg_class" was reindexed
> reindexdb: reindexing of database "ex200" failed: ERROR: invalid page
> in block 101 of relation base/157934/12685
>
> I want to try run dump and save database on plaintext but when I start
> pg_dump it's hang...
>
> pg_dump -a -v -d ex200 > ex200.sql
> pg_dump: last built-in OID is 16383
> pg_dump: reading extensions
> pg_dump: identifying extension members
> pg_dump: reading schemas
> pg_dump: reading user-defined tables
> pg_dump: reading user-defined functions
>
> Any ideas what can I do.. Client told me they have a backup from 2
> montgs ago....
That all looks like data corruption.
PostgreSQL should survive a crash just fine; it seems like your databases
are running with unsafe storage (that doesn't honor fsync).
If the backup from 2 months ago is a physical backup and you have WAL archives,
you can simply recover up to now.
If it is just a pg_dump, then you can either live with 2 months of data loss
or you hire professionaly that might be able to get some of your data back.
If you go for the second option, take a copy of the broken database
before doing anything else with it.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PostgreSQL 9.3 - reindex problem
2018-08-02 09:54 PostgreSQL 9.3 - reindex problem For@ll <forall@stalowka.info>
@ 2018-08-03 15:46 ` Ron <ronljohnsonjr@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Ron @ 2018-08-03 15:46 UTC (permalink / raw)
To: pgsql-admin@lists.postgresql.org
On 08/02/2018 04:54 AM, For@ll wrote:
> Hi,
>
> I have problem with postgresql-9.3 in our clients. They suddenly lost
> power connection and all servers halt.. I repiar xfs filesystem on CentOS7
> postgresql partition. Now when I want run reindex database I receive error:
>
> reindexdb -d ex200
> NOTICE: table "pg_catalog.pg_class" was reindexed
> reindexdb: reindexing of database "ex200" failed: ERROR: invalid page in
> block 101 of relation base/157934/12685
What object does 157934/12685 refer to? Maybe you can drop that one thing
and then recreate it.
>
> I want to try run dump and save database on plaintext but when I start
> pg_dump it's hang...
>
> pg_dump -a -v -d ex200 > ex200.sql
> pg_dump: last built-in OID is 16383
> pg_dump: reading extensions
> pg_dump: identifying extension members
> pg_dump: reading schemas
> pg_dump: reading user-defined tables
> pg_dump: reading user-defined functions
>
> Any ideas what can I do.. Client told me they have a backup from 2 montgs
> ago....
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-08-03 15:46 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-02 09:54 PostgreSQL 9.3 - reindex problem For@ll <forall@stalowka.info>
2018-08-03 07:28 ` Laurenz Albe <laurenz.albe@cybertec.at>
2018-08-03 15:46 ` Ron <ronljohnsonjr@gmail.com>
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