473,473 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PostgreSQL Invalid Page Header in Block XXXXX

Our Database is having errors. We are currently using PostgreSQL to
store 2.5 Million records per day. The average addition to our primary
table is 4.5 Gigs of data.

We are doing this on a dual Opteron 244 system with 1 TeraByte of HDD
space. The drives are 250 Gig Western Digital. The Raid Controller is
LSI Logic MegaRaid 150-6.

We are getting an error after about 4-5 days worth of data being put
into the system.

************************************************** *****
ERROR: invalid page header in block 59305 of relation
"item_info_2004_04_leaf_category_1"
************************************************** *****

Our Base Server Configuration is as follows.
PostgreSQL Version= 7.4.2
x86_64-PC-Linux-GNU
Compiled with GCC 3.3.3
XFS File System
Running on Gentoo Linux 3.3.3 Propolice-3.3-7

Any help on how to solve this probelm would be extremely appreciated.

Even the potential that Tom Lane might respond to this is worth it.

Thank you in advance.

Sincerely,

Anthony
Nov 23 '05 #1
2 11550
ma***************@canada.com (Anthony) writes:
Our Database is having errors. We are currently using PostgreSQL to
store 2.5 Million records per day. The average addition to our primary
table is 4.5 Gigs of data.

We are doing this on a dual Opteron 244 system with 1 TeraByte of HDD
space. The drives are 250 Gig Western Digital. The Raid Controller is
LSI Logic MegaRaid 150-6.

We are getting an error after about 4-5 days worth of data being put
into the system.

************************************************** *****
ERROR: invalid page header in block 59305 of relation
"item_info_2004_04_leaf_category_1"
************************************************** *****

Our Base Server Configuration is as follows.
PostgreSQL Version= 7.4.2
x86_64-PC-Linux-GNU
Compiled with GCC 3.3.3
XFS File System
Running on Gentoo Linux 3.3.3 Propolice-3.3-7

Any help on how to solve this probelm would be extremely appreciated.

Even the potential that Tom Lane might respond to this is worth it.


May I point you to the pg_filedump utility?

<http://sources.redhat.com/rhdb/utilities.html>

It can give you a fair idea of just where the system is blowing up.

I experienced what sounds like the same problem with a system that was
fairly similarly appointed with hardware, albeit with a few
conspicuous differences...

1. PostgreSQL 7.4.1
2. FreeBSD 4.9
3. Berkeley FFS with soft updates
4. Quad-Xeon, 8GB RAM (only using 4GB of it :-()
5. AMI MegaRaid controller...
6. Slightly less disk; 12x74GB SCSI drives

[root@hathi scsi]# cat /proc/scsi/megaraid/1
LSI Logic MegaRAID 1.74 254 commands 16 targs 7 chans 7 luns

What I found in looking at the page with the "invalid page header" was
that it was full of ASCII NUL values.

We had previously had quite a bit of trouble with a different box with
the same hardware configuration running RHAT 7.3, although when I
replaced a 2.4.18 Linux kernel with 2.6.2, those problems evaporated.

The only thing that we have been able to point to on the box in
question is a hardware problem. In view of the disk being RAIDed, the
causes seem to fall to three things being most likely sorts of
culprits:

1. Perhaps the controller is "glitched;"
2. Perhaps the controller driver is "glitched;"
3. Perhaps there is a RAM problem.

Notice that the list of suspects doesn't include any that actually
relate to database software.

Your best bet is to look for hardware problems.
--
(reverse (concatenate 'string "gro.gultn" "@" "enworbbc"))
http://cbbrowne.com/info/linuxxian.html
Never take life seriously. Nobody gets out alive anyway.
Nov 23 '05 #2
Chris Browne <cb******@acm.org> wrote in message news:<60************@dev6.int.libertyrms.info>...
ma***************@canada.com (Anthony) writes:
Our Database is having errors. We are currently using PostgreSQL to
store 2.5 Million records per day. The average addition to our primary
table is 4.5 Gigs of data.

We are doing this on a dual Opteron 244 system with 1 TeraByte of HDD
space. The drives are 250 Gig Western Digital. The Raid Controller is
LSI Logic MegaRaid 150-6.

We are getting an error after about 4-5 days worth of data being put
into the system.

************************************************** *****
ERROR: invalid page header in block 59305 of relation
"item_info_2004_04_leaf_category_1"
************************************************** *****

Our Base Server Configuration is as follows.
PostgreSQL Version= 7.4.2
x86_64-PC-Linux-GNU
Compiled with GCC 3.3.3
XFS File System
Running on Gentoo Linux 3.3.3 Propolice-3.3-7

Any help on how to solve this probelm would be extremely appreciated.

Even the potential that Tom Lane might respond to this is worth it.


May I point you to the pg_filedump utility?

<http://sources.redhat.com/rhdb/utilities.html>

It can give you a fair idea of just where the system is blowing up.

I experienced what sounds like the same problem with a system that was
fairly similarly appointed with hardware, albeit with a few
conspicuous differences...

1. PostgreSQL 7.4.1
2. FreeBSD 4.9
3. Berkeley FFS with soft updates
4. Quad-Xeon, 8GB RAM (only using 4GB of it :-()
5. AMI MegaRaid controller...
6. Slightly less disk; 12x74GB SCSI drives

[root@hathi scsi]# cat /proc/scsi/megaraid/1
LSI Logic MegaRAID 1.74 254 commands 16 targs 7 chans 7 luns

What I found in looking at the page with the "invalid page header" was
that it was full of ASCII NUL values.

We had previously had quite a bit of trouble with a different box with
the same hardware configuration running RHAT 7.3, although when I
replaced a 2.4.18 Linux kernel with 2.6.2, those problems evaporated.

The only thing that we have been able to point to on the box in
question is a hardware problem. In view of the disk being RAIDed, the
causes seem to fall to three things being most likely sorts of
culprits:

1. Perhaps the controller is "glitched;"
2. Perhaps the controller driver is "glitched;"
3. Perhaps there is a RAM problem.

Notice that the list of suspects doesn't include any that actually
relate to database software.

Your best bet is to look for hardware problems.


We ran a full RAM test for 15 hours... it came up with NO problems. We
are running a more current version of the Kernel than you list above
so shouldn't the driver and or controller issues that you think were
fixed in the 2.6.2 Kernal be rolled up in the 2.6.3.

1) We are going to setup multiple partitions for differnt file
systems... and try the PostgreSQL database on each of those systems
and see if the errors persist.

Thank you for your response or thoughts on this plan of attacking the
problem.

Sincerely,

Anthony
Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
I had a problem today where I had an editor page (edit2.php) that posted data to PostgreSQL, and then a view page (view.php) that read it in and displayed it. At first I thought this was an MVCC...
6
by: John | last post by:
Hi. I am having a few header problems at the moment with a login page. I don't have my headers at the top of the page where I've learned I need to have them. However, I also know I'm supposed...
1
by: Ed L. | last post by:
I have a server with 20 pgsql clusters on it. I am seeing a slew of errors like the following across 5 of these clusters, all running 7.3.4 on Linux with kernel 2.4.18-4bigmem: ERROR: Invalid...
1
by: vb6dev2003 | last post by:
Hi, I have some XML doc loaded in a C# Web Service. XmlDocument doc = new XmlDocument(); doc.LoadXml(myDoc); Code Missing to manipulate header (I would like to replace or manupulate all...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
0
by: Konstantinos Agouros | last post by:
Hi, I have a machine that is currently a bit unstable. No I got a: sysad=# select * from attacks where start < '1.1.2000'; ERROR: Invalid page header in block 3618 of attacks From googeling...
16
by: matt | last post by:
hello, ive been trying to figure something out, largely thru trial & error. thought perhaps someone else may have knowledge. i have an html table that consists of blocks of related data --...
68
by: DaveJ | last post by:
Recently I was working on a project where I came across an issue where the program cored and reported "free(): invalid pointer". I found a resolution for this, but don't fully understand why the...
5
ddtpmyra
by: ddtpmyra | last post by:
I need some help to review my code add more security on in. Scenario: Login Page enter username enter password Display Page if log-in success display all the records from mysql server
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.