Re: Reg: PostgreSQL Server "base/data" recovery

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Prajilal KP <prajilal(dot)kp(at)gmail(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Reg: PostgreSQL Server "base/data" recovery
Date: 2015-03-19 08:46:15
Message-ID: CAB7nPqQooOf48ozO-Z6ucit-0s2vDkEVejgwX8LF5yOowXxvbA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Mar 19, 2015 at 5:19 PM, Prajilal KP <prajilal(dot)kp(at)gmail(dot)com> wrote:
> Recently i have noticed that my PostgreSQL server is returning the error
> messages like "Could not read block 6160722 in file
> "base/data/16384/11033028.47".

Don't you have more details to share? There should be some hint here
as well, and usually you may be facing such things because of OS or
hardware problems.

> When i have checked the "base/data/16384" directory, some of the file's data
> size is zero and exactly from that time i have started receiving the said
> error messages.
>
> Could you please advise the way to recover the Database without loosing any
> data?

If you are facing hardware problems, this may be a time to deploy a
backup and replay WAL up to where you wish to on clean disks.

> PostgreSQL version : 9.0.4

9.0.4 has been released in 2011, so you are missing 4 years worth of
bug fixes, the latest minor version of the 9.0.X release being 9.0.19.
Note as well that 9.0 will be EOL at the end of the year, hence you
could do even better: an upgrade to a newer major version.

Regards,
--
Michael

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Prajilal KP 2015-03-19 10:02:28 Re: Reg: PostgreSQL Server "base/data" recovery
Previous Message Prajilal KP 2015-03-19 08:19:43 Reg: PostgreSQL Server "base/data" recovery