pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rikardo Tinauer <rikardo.tinauer@eba.si>
To: pgsql-admin@postgresql.org
Subject: Recovery of corrupted database
Date: Wed, 19 Jul 2017 15:27:48 +0200
Message-ID: <155A6581-E109-4FAC-B59B-ECDC09BD92AB@eba.si> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Our client got virus on database server encrypting the database. They paid and got files decrypted but database wasn’t able to start.

We got the following error:
2017-07-19 10:31:11 CEST LOG:  database system was shut down in recovery at 2017-07-19 10:29:00 CEST
2017-07-19 10:31:11 CEST LOG:  invalid magic number B549 in log segment 000000010000002E00000015, offset 0
2017-07-19 10:31:11 CEST LOG:  invalid primary checkpoint record
2017-07-19 10:31:11 CEST LOG:  invalid magic number B549 in log segment 000000010000002E00000015, offset 0
2017-07-19 10:31:11 CEST LOG:  invalid secondary checkpoint record
2017-07-19 10:31:11 CEST PANIC:  could not locate a valid checkpoint record
2017-07-19 10:31:11 CEST LOG:  shutdown at recovery target
2017-07-19 10:31:11 CEST LOG:  shutting down
2017-07-19 10:31:11 CEST LOG:  database system is shut down


We got past that with executing the “pg_resetxlog -f DATADIR” command.

Now database starts but we cannot connect to it, we get the following error: 
2017-07-19 14:11:05 CEST ERROR:  invalid page in block 0 of relation global/12369

Can anyone help?

Lp, 
Rikardo Tinauer
----------------------------------------------------------
EBA, d.o.o., Ljubljana
Litostrojska 40, SI-1000 Ljubljana
Tel: +386 (0)590 98 890
Email: rikardo.tinauer@eba.si
Web: http://www.ebadms.com
-----------------------------------------------------------

view thread (3+ messages)  latest in thread

Message-ID: <155A6581-E109-4FAC-B59B-ECDC09BD92AB@eba.si>
Permalink:  ../155A6581-E109-4FAC-B59B-ECDC09BD92AB@eba.si/
Also on:    postgresql.org/message-id/155A6581-E109-4FAC-B59B-ECDC09BD92AB@eba.si

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: rikardo.tinauer@eba.si
  Subject: Re: Recovery of corrupted database
  In-Reply-To: <155A6581-E109-4FAC-B59B-ECDC09BD92AB@eba.si>

* 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