pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedPossible data corruption
2+ messages / 2 participants
[nested] [flat]
* Possible data corruption
@ 2015-08-28 11:14 Martijn Meijer <martijn.meijer@fuga.com>
0 siblings, 1 reply; 2+ messages in thread
From: Martijn Meijer @ 2015-08-28 11:14 UTC (permalink / raw)
To: pgsql-bugs
Hi all,
I'm having weird issues with my Postgres installation, possibly a
corruption. The last backup I have if from a day and a half before, so
ideally I'd like to restore the data as-is.
I have made a full file system-level copy of the related data, as
instructed at https://wiki.postgresql.org/wiki/Corruption .
I was told I should provide the following:
A description of what you are trying to achieve and what results you
expect.:
Any query on some tables fail, including simple ones like: select count(*)
from contracts;
Gives:
ERROR: could not access status of transaction 552079857
DETAIL: Could not open file "pg_multixact/members/60D4": No such file or
directory.
PostgreSQL version number you are running:
9.3.4
. This was the initial version installed on this machine, but the data was
previously on a different machine. A normal export (i.e., no -Fc or similar
was passed to pg_dump) was imported.
How you installed PostgreSQL:
Added postgres servers to apt sources, apt-get install
Changes made to the settings in the postgresql.conf file:
max_connections = 500
superuser_reserved_connections = 3
shared_buffers = 512MB
temp_buffers = 8MB
work_mem = 5MB
maintenance_work_mem = 16MB
wal_buffers = 8MB
checkpoint_segments = 32
checkpoint_completion_target = 0.9
seq_page_cost = 1.0
random_page_cost = 1.2
effective_cache_size = 1536MB
log_min_messages = info
log_min_duration_statement = 5000
log_checkpoints = on
autovacuum_naptime = 5min
Operating system and version:
Ubuntu Lucid (10.04) 64 bit
What program you're using to connect to PostgreSQL:
psql on the command line
Is there anything relevant or unusual in the PostgreSQL server logs?:
The messages about "Could not open file" started appearing last night at
19:00. I don't see any other relevant messages.
The EXACT TEXT of the error message you're getting, if there is one:
ERROR: could not access status of transaction 552079857
DETAIL: Could not open file "pg_multixact/members/60D4": No such file or
directory.
Hardware details:
CPU: 2x Intel(R) Xeon(R) CPU E5-2603
RAM: 16 GB
Storage: 2x INTEL SSDSC2BW48 in mdraid 1 (2 other Intel SSD's present)
$ modinfo raid1
filename: /lib/modules/3.0.0-26-server/kernel/drivers/md/raid1.ko
alias: md-level-1
alias: md-raid1
alias: md-personality-3
description: RAID1 (mirroring) personality for MD
license: GPL
srcversion: 2AAEFFAAADEDE0EDEE8D523
depends:
vermagic: 3.0.0-26-server SMP mod_unload modversions
fsync=off was never used.
We did do a partition resize 2 weeks back (followed
https://raid.wiki.kernel.org/index.php/Growing ) of the parition containing
the postgres files.
What I already
tried
:
- Restarted PostgreSQL
- fsck.ext4 -fr (returned no results)
- vacuum analyze; (returns with the same error)
- From the 9.3.5 release notes:
postgres=# WITH list(file) AS (SELECT * FROM
pg_ls_dir('pg_multixact/offsets'))
postgres-# SELECT EXISTS (SELECT * FROM list WHERE file = '0000') AND
postgres-# NOT EXISTS (SELECT * FROM list WHERE file = '0001') AND
postgres-# NOT EXISTS (SELECT * FROM list WHERE file = 'FFFF') AND
postgres-# EXISTS (SELECT * FROM list WHERE file != '0000')
postgres-# AS file_0000_removal_required;
file_0000_removal_required
----------------------------
f
(1 row)
Thanks so much in advance for helping out!
Martijn Meijer
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Possible data corruption
@ 2015-08-28 18:27 Kevin Grittner <kgrittn@ymail.com>
parent: Martijn Meijer <martijn.meijer@fuga.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Grittner @ 2015-08-28 18:27 UTC (permalink / raw)
To: Martijn Meijer <martijn.meijer@fuga.com>; pgsql-bugs
Martijn Meijer <martijn.meijer@fuga.com> wrote:
> ERROR: could not access status of transaction 552079857
> DETAIL: Could not open file "pg_multixact/members/60D4": No such file or directory.
> PostgreSQL version number you are running:
>
> 9.3.4.
There are known bugs in that version which can cause corruption
resulting in the error you are seeing. If you had stayed
up-to-date with bug-fixes as they were issued, you probably would
have been running with the fix before the IDs wrapped around and
caused corruption.
http://www.postgresql.org/support/versioning/
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-08-28 18:27 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-08-28 11:14 Possible data corruption Martijn Meijer <martijn.meijer@fuga.com>
2015-08-28 18:27 ` Kevin Grittner <kgrittn@ymail.com>
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