473,503 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PostgreSQL on XFS experiences?

Dear list,

We are using PostgreSQL with the database and xlogs on (separate) XFS
volumes under Linux 2.4.25. We are simply curious to hear your
experiences with this combination, if you are using it. In only two
days of heavy activity, we've already been able to corrupt one
database. We've also seen XFS panic because of inconsistent in-memory
metadata. Frankly we don't have the highest confidence.

Anybody out there also using PostgreSQL over XFS with success or
otherwise?

-jwb
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 22 '05 #1
5 2884
On Thu, 26 Feb 2004, Jeffrey W. Baker wrote:
We are using PostgreSQL with the database and xlogs on (separate) XFS
volumes under Linux 2.4.25. We are simply curious to hear your
experiences with this combination, if you are using it. In only two
days of heavy activity, we've already been able to corrupt one
database. We've also seen XFS panic because of inconsistent in-memory
metadata. Frankly we don't have the highest confidence.


I am afraid that xfs in that kernel or your hardware is buggy (probably
RAM). A 24h run of memtest86 wouldn't be bad.

Since PostgreSQL uses the operating system's calls for file operations
as any other program does, it's most probably no PostgreSQL issue.

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 22 '05 #2
On Thu, 2004-02-26 at 11:46, Holger Marzen wrote:
On Thu, 26 Feb 2004, Jeffrey W. Baker wrote:
We are using PostgreSQL with the database and xlogs on (separate) XFS
volumes under Linux 2.4.25. We are simply curious to hear your
experiences with this combination, if you are using it. In only two
days of heavy activity, we've already been able to corrupt one
database. We've also seen XFS panic because of inconsistent in-memory
metadata. Frankly we don't have the highest confidence.


I am afraid that xfs in that kernel or your hardware is buggy (probably
RAM). A 24h run of memtest86 wouldn't be bad.

Since PostgreSQL uses the operating system's calls for file operations
as any other program does, it's most probably no PostgreSQL issue.


I don't see why not. PostgreSQL could easily have a bug that swaps a
buffer somewhere, resulting in a corrupt table. That we see this only
on the INSERT path and not the COMMIT path also seems to point towards
Pg.

Anyway, you didn't mention XFS. Do you have experience using it beneath
Postgres?
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 22 '05 #3
Jeffrey W. Baker wrote:
On Thu, 2004-02-26 at 11:46, Holger Marzen wrote:
On Thu, 26 Feb 2004, Jeffrey W. Baker wrote:
We are using PostgreSQL with the database and xlogs on (separate) XFS
volumes under Linux 2.4.25. We are simply curious to hear your
experiences with this combination, if you are using it. In only two
days of heavy activity, we've already been able to corrupt one
database. We've also seen XFS panic because of inconsistent in-memory
metadata. Frankly we don't have the highest confidence.
I am afraid that xfs in that kernel or your hardware is buggy (probably
RAM). A 24h run of memtest86 wouldn't be bad.

Since PostgreSQL uses the operating system's calls for file operations
as any other program does, it's most probably no PostgreSQL issue.


I don't see why not.


Because Postgres is in use on systems all over the place without problems.
PostgreSQL could easily have a bug that swaps a
buffer somewhere, resulting in a corrupt table.
Not easily. If such a bug existed, I would think that someone else
would have complained about it before now. I have 3 Postgres servers
under varying levels of usage - all are rock solid reliable, with uptimes
easily over 30 days without problems. These crashes you describe are
unlikely to be coming from Postgres.
That we see this only
on the INSERT path and not the COMMIT path also seems to point towards
Pg.
Not really.

Have you used something like bonnie++ to test XFS for reliability?
Have you run memtest86 as was suggested?

In my experience, faulty hardware is far more common than what you are
suggesting.
Anyway, you didn't mention XFS. Do you have experience using it beneath
Postgres?


Personally, I have tested it for its performance capabilities, but never
deployed it long-term. However, in my experience, it works reliably.

--
Bill Moran
Potential Technologies
http://www.potentialtech.com
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 22 '05 #4
"Jeffrey W. Baker" <jw*****@acm.org> writes:
We've also seen XFS panic because of inconsistent in-memory
metadata.


From this fact alone we may deduce with absolute confidence that
either your hardware or your filesystem implementation are faulty.
There is no combination of operations which any application, buggy or
not, that can cause a properly written XFS driver on error-free
hardware to become corrupted.

--
Brandon Craig Rhodes http://www.rhodesmill.org/brandon
Georgia Tech br*****@oit.gatech.edu
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #5
On Thursday 26 February 2004 12:09 pm, Jeffrey W. Baker wrote:
On Thu, 2004-02-26 at 11:46, Holger Marzen wrote:
On Thu, 26 Feb 2004, Jeffrey W. Baker wrote:
We are using PostgreSQL with the database and xlogs on
(separate) XFS volumes under Linux 2.4.25. We are simply
curious to hear your experiences with this combination, if you
are using it. In only two days of heavy activity, we've
already been able to corrupt one database. We've also seen XFS
panic because of inconsistent in-memory metadata. Frankly we
don't have the highest confidence.


I am afraid that xfs in that kernel or your hardware is buggy
(probably RAM). A 24h run of memtest86 wouldn't be bad.

Since PostgreSQL uses the operating system's calls for file
operations as any other program does, it's most probably no
PostgreSQL issue.


I don't see why not. PostgreSQL could easily have a bug that swaps
a buffer somewhere, resulting in a corrupt table. That we see this
only on the INSERT path and not the COMMIT path also seems to point
towards Pg.

Anyway, you didn't mention XFS. Do you have experience using it
beneath Postgres?


I do. It's great.

One of my PostgreSQL machines uses XFS with everything (data, xlogs,
etc.) on the same XFS partition. Machine uptime: 247 days. PostgreSQL
uptime 74 days (restarted while testing reconfiguration options).
PostgreSQL crashes: 0.

As the good doc says, "when you hear hoofbeats think horses, not
zebras." Don't chase some hypothetical theoretical possible problem
when it's known that bad RAM causes problems, especially when your
error message seems to point toward RAM trouble.

I give all my new machines a good test with memtest86 or the newer
memtest86+ before installation. Just two weeks ago I got a machine
that looked good after the first couple of passes but when I went to
do a final check and install it a week and 1000 passes later it
reported 6 errors in one memory location - a frustrating random crash
just waiting to happen.

Cheers,
Steve
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 22 '05 #6

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

Similar topics

1
1679
by: miguelk | last post by:
Excuse my ignorance of this subject since I don't know Python well enough. I would like to know if it's possible to access PostgreSQL (running on Lunux) from Python scripts using TDB (or TBD?). I...
1
2812
by: Mateusz [PEYN] Adamus | last post by:
Hi I'm a developer currently wondering which DB choose for my next project. I looked on the net found ofcourse Oracle but also came up with PostgreSQL. I heard quite few things about it, all...
125
14539
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
29
3134
by: Mainlander | last post by:
An ISP I belong to uses Majordomo for their mailing list system. I'd like to encourage them to move to a system that uses a database, preferably psql which they already run on their server....
4
4007
by: Holger Marzen | last post by:
Hi all, AFAIK it is possible for columns to be very large, up to about 2 GB. Are there any hints or experiences about storing binary data (jpg-images, pdf-documents) in PostgrreSQL with or...
2
1693
by: Klaus Harbo | last post by:
Does anyone have experiences using PostgreSQL for storing Microsoft Project data? MS Access, SQL Server and Oracle are supported according to the manual. A simple test with PostgreSQL results in...
0
966
by: Ying Lu | last post by:
Hello, Does someone have some experiences of using the C-JDBC (database cluster middleware ) for large & middles-sized DB based on postgreSQL under i686.linux? You think it is a good idea for...
17
3396
by: Jim Strickland | last post by:
We currently are running a data intensive web service on a Mac using 4D. The developers of our site are looking at converting this web service to PostgreSQL. We will have a backup of our three...
0
1253
by: PSiegmann | last post by:
Hello newsgroup, We are hosting (and developing) an asp.net application on a dedicated server, as database MS SQL Server Express 2005 is used. We are currently happy with Express 2005, but,...
0
7278
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
7328
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...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
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
3166
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
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
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 ...
1
734
muto222
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.