ERROR: cannot read block 15157 of hp_tran: Success

--_000_D78A8169F9436B4DB978300336168F3B3359AFDF1DSWBREXCH00u cs_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Please help

Please bear with us we are in process of upgrade but many servers are still=
using version 7.3.4 of PostgreSQL running on RedHat5


A certain table seems to be corrupt when trying to select everything from t=
his table, it throws out an error. See the error below

db0303=3D# SELECT count(*) from hp_tran;
ERROR: cannot read block 15157 of hp_tran: Success
db0303=3D#



There is no problem with the disc



Please assist, I am a Juniour DBA,




Confidentiality Notice:http://ucs.co.za/conf.html

________________________________
The contents of and attachments to this e-mail are intended for the address=
ee only, and may contain the confidential information of UCS Group and/or i=
ts subsidiaries. Any review, use or dissemination thereof by anyone other t=
han the intended addressee is prohibited. If you are not the intended addre=
ssee please notify the writer immediately and destroy the e-mail. UCS Group=
Limited and its subsidiaries distance themselves from and accept no liabil=
ity for unauthorised use of their e-mail facilities or e-mails sent other t=
han strictly for business purposes.

--_000_D78A8169F9436B4DB978300336168F3B3359AFDF1DSWBREXCH00u cs_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
..MsoChpDefault
{mso-style-type:export-only;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"Section1">
<p class=3D"MsoNormal">Please help<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Please bear with us we are in process of upgrade but=
many servers are still using version 7.3.4 of PostgreSQL running on RedHat=
5<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">A certain table seems to be corrupt when trying to s=
elect everything from this table, it throws out an error. See the error bel=
ow<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">db0303=3D# SELECT count(*) from hp_tran;<o:p></o:p><=
/p>
<p class=3D"MsoNormal"><b><span style=3D"color:red">ERROR:  cannot rea=
d block 15157 of hp_tran: Success</span></b><o:p></o:p></p>
<p class=3D"MsoNormal">db0303=3D#<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">There is no problem with the disc<o:p></o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New";
color:blue"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New";
color:blue"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New";
color:blue"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New";
color:blue">Please assist, I am a Juniour DBA,
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New";
color:blue"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New";
color:blue"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New";
color:blue"> </span><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;fon=
t-family:
"Courier New""><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA" style=3D"font-size:10.0pt;font-=
family:"Courier New""><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-ZA">Confidentiality Notice:<u><span=
style=3D"color:blue">http://ucs.co.za/conf.html</span></u></span><span lan=
g=3D"EN-ZA"><o:p></o:p></span></p>
</div>
<br>
<hr>
<font face=3D"Arial" color=3D"Gray" size=3D"1">The contents of and attachme=
nts to this e-mail are intended for the addressee only, and may contain the=
confidential information of UCS Group and/or its subsidiaries. Any review,=
use or dissemination thereof by anyone
other than the intended addressee is prohibited. If you are not the intend=
ed addressee please notify the writer immediately and destroy the e-mail. U=
CS Group Limited and its subsidiaries distance themselves from and accept n=
o liability for unauthorised use
of their e-mail facilities or e-mails sent other than strictly for busines=
s purposes.<br>
</font>
</body>
</html>

--_000_D78A8169F9436B4DB978300336168F3B3359AFDF1DSWBREXCH00u cs_--
Khangelani Gama [ Do, 15 April 2010 19:41 ] [ ID #2039037 ]

Re: ERROR: cannot read block 15157 of hp_tran: Success

Khangelani Gama <Khangelani.Gama [at] ucs-software.co.za> writes:
> Please bear with us we are in process of upgrade but many servers are still using version 7.3.4 of PostgreSQL running on RedHat5

Egad...

> A certain table seems to be corrupt when trying to select everything from this table, it throws out an error. See the error below

> db0303=# SELECT count(*) from hp_tran;
> ERROR: cannot read block 15157 of hp_tran: Success

This probably indicates that the table has been truncated in mid-block,
ie the file isn't a multiple of 8K long. Recent versions of PG would
give you a message that made that clearer, but I don't think 7.3 will.
You could try using dd to pad the file out to the next 8K boundary
(with zeroes), but I expect you'll find that the data on that page
is trashed and you'll have to truncate it away instead in order to not
get errors.

> There is no problem with the disc

If the underlying OS is as unmaintained as the database is, you might
well be encountering kernel bugs :-(

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Tom Lane [ Do, 15 April 2010 19:54 ] [ ID #2039038 ]

Re: ERROR: cannot read block 15157 of hp_tran: Success

Thanks Tom

...but could you please supply with an example on how I should pad the file =
using dd?


-----Original Message-----
From: pgsql-admin-owner [at] postgresql.org [mailto:pgsql-admin-owner [at] postgresql=
..org] On Behalf Of Tom Lane
Sent: Thursday, April 15, 2010 7:55 PM
To: Khangelani Gama
Cc: pgsql-admin [at] postgresql.org
Subject: Re: [ADMIN] ERROR: cannot read block 15157 of hp_tran: Success

Khangelani Gama <Khangelani.Gama [at] ucs-software.co.za> writes:
> Please bear with us we are in process of upgrade but many servers are sti=
ll using version 7.3.4 of PostgreSQL running on RedHat5

Egad...

> A certain table seems to be corrupt when trying to select everything from=
this table, it throws out an error. See the error below

> db0303=3D# SELECT count(*) from hp_tran;
> ERROR: cannot read block 15157 of hp_tran: Success

This probably indicates that the table has been truncated in mid-block,
ie the file isn't a multiple of 8K long. Recent versions of PG would
give you a message that made that clearer, but I don't think 7.3 will.
You could try using dd to pad the file out to the next 8K boundary
(with zeroes), but I expect you'll find that the data on that page
is trashed and you'll have to truncate it away instead in order to not
get errors.

> There is no problem with the disc

If the underlying OS is as unmaintained as the database is, you might
well be encountering kernel bugs :-(

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

The contents of and attachments to this e-mail are intended for the address=
ee only, and may contain the confidential information of UCS Group and/or i=
ts subsidiaries. Any review, use or dissemination thereof by anyone other =
than the intended addressee is prohibited. If you are not the intended add=
ressee please notify the writer immediately and destroy the e-mail. UCS Gr=
oup Limited and its subsidiaries distance themselves from and accept no lia=
bility for unauthorised use of their e-mail facilities or e-mails sent othe=
r than strictly for business purposes.

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Khangelani Gama [ Do, 15 April 2010 20:20 ] [ ID #2039039 ]
Datenbanken » gmane.comp.db.postgresql.admin » ERROR: cannot read block 15157 of hp_tran: Success

Vorheriges Thema: Wal Segment files Backup Strategy for archiving
Nächstes Thema: Query is stuck