pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: LVM snapshots [Follow-up]
2+ messages / 2 participants
[nested] [flat]

* Re: LVM snapshots [Follow-up]
@ 2003-04-04 15:18 Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
  2003-04-04 15:51 ` Re: LVM snapshots [Follow-up] Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Murthy Kambhampaty @ 2003-04-04 15:18 UTC (permalink / raw)
  To: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>; Tom Lane <tgl@sss.pgh.pa.us>; Matt Clark <matt@ymogen.net>; +Cc: Peter Eisentraut <peter_e@gmx.net>; pgsql-admin

A checkpoint process may have to be ongoing when the snapshot creation
(filesystem freeze) occurs, for this situation to arise. (Reduce the
checkpoint segments and interval to test.)

-----Original Message-----
From: Murthy Kambhampaty 
Sent: Friday, April 04, 2003 10:09
To: 'Tom Lane'; Matt Clark
Cc: Murthy Kambhampaty; 'Peter Eisentraut'; pgsql-admin@postgresql.org
Subject: RE: [ADMIN] LVM snapshots 


Tom Lane [mailto:tgl@sss.pgh.pa.us] writes:

>>> NOTICE:  Rel <table name>: Uninitialized page 54300 - fixing
>
>There is a known mechanism for this to occur on certain key system
catalogs,
>see http://fts.postgresql.org/db/mw/msg.html?mid=1357214
>
>We've seen some reports suggesting it can happen on user tables too, but
>I don't know what the mechanism is or whether there's any risk of data
>loss.  If you can make this happen reproducibly (or at least with decent
>probability) on tables other than pg_class, pg_type, pg_attribute, pg_proc,
>then I'd be real interested to see a test case.
>
>

The tables on which this happened were the ones called tbl2 and tbl3 in my
example: i.e., tables into which data were being added with "insert into
tbl[1,2] from select * from tbl1 where ..." running in parallel subshells.
If somebody wants to try to replicate this:
1. Create a table with several hundred thousand records
2. Start an "insert into tbl2 from select ..." (multiple ones in parallel
maximize your chance of hitting this)
3. Freeze the filesystem, create a snapshot, unfreeze the filesystem, mount
the snapshot and copy $PGDATA somewhere else
4. Start a postmaster on the copy of the database cluster; run VACUUM
ANALYZE on tlb2
	you should see a series of 
	NOTICE:  Rel tbl2: Uninitialized page 'nnnnn' - fixing
	messages

I might have a chance to play with this late next but right now I'm swamped.

Cheers,
	Murthy




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: LVM snapshots [Follow-up]
  2003-04-04 15:18 Re: LVM snapshots [Follow-up] Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
@ 2003-04-04 15:51 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-04-04 15:51 UTC (permalink / raw)
  To: Murthy Kambhampaty <murthy.kambhampaty@goeci.com>; +Cc: 'Matt Clark' <matt@ymogen.net>; 'Peter Eisentraut' <peter_e@gmx.net>; pgsql-admin

Murthy Kambhampaty <murthy.kambhampaty@goeci.com> writes:
> A checkpoint process may have to be ongoing when the snapshot creation
> (filesystem freeze) occurs, for this situation to arise. (Reduce the
> checkpoint segments and interval to test.)

If LVM manipulations are needed to cause it, I would think it's LVM's
bug not Postgres'.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-04-04 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04 15:18 Re: LVM snapshots [Follow-up] Murthy Kambhampaty <murthy.kambhampaty@goeci.com>
2003-04-04 15:51 ` Tom Lane <tgl@sss.pgh.pa.us>

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