Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8389063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:37:15+00:00 2026-06-09T18:37:15+00:00

Got system with Postgres broken (a RAID is the reason) , without any backups.

  • 0

Got system with Postgres broken (a RAID is the reason) , without any backups.

Trying to put data to another comptuter with Postgres (and make however backup).

But always when I set up data directory and run postgres I’ve got message

GET FATAL:  database files are incompatible with server
2012-08-15 19:58:38 GET DETAIL:  The database cluster was initialized with BLCKSZ 16777216, but the server was compiled with BLCKSZ 8192.
2012-08-15 19:58:38 GET HINT:  It looks like you need to recompile or initdb.

It’s very strange number 16777216(2 to power 24 – to big).

However I can’t reset default value 8192 when compiling (playing with –with-blocksize= take no effect; BLCKSZ – I can’t find it in headers files)

).

Any way to extract data ?

This is environment and circumstances:

harddrive: RAID 1 with 3 SAS disks in array

OS: ubuntu 10.04.04 amd64

Postgres: 9.1 (by apt-get (we change repository links to higher version of Ubuntu))

the system become broken – after some time got

AAC: Host Adapter BLINK LED 0x56
AACO: Adapter kernel panic’d 56

(filesystem or hardware error)

Somehow we got data directory. pg_conroldata shown:

pg_control version number:                903
Catalog version number:                    201105231
Database system identifier:                5714530593695276911
Database cluster state:                      shut down
pg_control last modified:                    Tue 15 Aug 2012 11:50:50
Latest checkpoint location:                1B595668/2000020
Prior checkpoint location:                   0/0
Latest checkpoint’s REDO location:   1B595668/2000020
Latest checkpoint’s TimeLineID:         1
Latest checkpoint’s NextXID:               0/4057946
Latest checkpoint’s NextOID:              40960
Latest checkpoint’s NextMultiXactId:   1
Latest checkpoint’s NextMultiOffset:   0
Latest checkpoint’s oldestXID:            670
Latest checkpoint’s oldestXID’s DB:   1344846103
Latest checkpoint’s oldestActiveXID:  0
Time of latest checkpoint:                  Tue 15 Aug 2012 11:50:50
Minimum recovery ending location:    0/0
Backup start location:                         0/0
Current wal_level setting:                   minimal
Current max_connections setting:     100
Current max_prepared_xacts setting:0
Current max_locks_per_xact setting: 64
Maximum data alignment:                  8
Database block size:                         16777216
Blocks per segment of large relation:131072
WAL block size:                                 8192
Bytes per WAL segment:                  16777216
Maximum length of identifiers:           64
Maximum columns in an index:          2387576020
Maximum size of a TOAST chunk:     0
Date/time type storage:                     floating-point numbers
Float4 argument passing:                 by reference
Float8 argument passing:                 by reference

First I effort to up DB in Ubuntu servers (harddisk – simple serial 2, Ubuntu 10.04 i386, Postgres 9.1) and got the same exception above (with BLCKSZ).

That’s why I deployed Ubuntu 10.04 amd64 with english Postgres 9.1 (because got ‘?‘ instead of russian symbols in error logs in previous step) in virtual machine
Got the same exception (with BLCKSZ).

Ather that have removed apt-get postgres version and compiled it as described at docs http://www.postgresql.org/docs/9.1/static/installation.html.
Playing withconfigure --with-blocksize=BLOCKSIZE had take no effect – got the same error

Sorry, for the post.

The pg_contol was broken by some manipulations with.

Sow, the cluster was succeful restored by pg_resetxlog with initial data.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:37:16+00:00Added an answer on June 9, 2026 at 6:37 pm

    A blocksize of 16Mb would be really weird, and since these two values also look completely bogus:

    Maximum columns in an index:       2387576020
    Maximum size of a TOAST chunk:     0
    

    …you might want to question the integrity of this data before spending time on compiling postgres with a non-standard block size.

    If you look at the sizes of files corresponding to relations, are they multiple of 16Mb or 8Kb?
    If the database have some gigabytes tables, what appears to be the cut-off size on disk (the size above which postgres split the data into several files)? This should be equal to data block size*Blocks per segment of large relation. On a default install, it’s 1Gb.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is a challenge question I've got from Linux system programming lecture. Any of
I got a view that inherits : System.Web.Mvc.ViewPage<IEnumerable<MyProjects.Models.MyAccountWrapper>> In this view I list data
I've got a system that processes some large CSV files. The scenario has now
I've got a system where all changes to business objects have to be audited.
We've got a CMS system written in .NET C#. This system has editing facilities
So I've got my particle system up and running and it looks great as
I'm new to nodejs and maybe don't got an event system how it should
i got a got a little embedded system that can be controlled via a
I got to thinking that maybe my login system isn't as secure as I
I´ve got a nomral user called Teacher in my Ubuntu system and it has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.