Re: Hard drive failure leads to corrupt db

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Brusser, Michael" <Michael(dot)Brusser(at)matrixone(dot)com>
Cc: Pgsql-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Hard drive failure leads to corrupt db
Date: 2005-09-13 13:47:54
Message-ID: 20050913134753.GA3113@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Your problem is that your database was initialised with locale
'en_US.ISO8859-1' but your system no longer recognises it. You need to
create the locale somehow. On Linux it's /etc/locale.gen but you should
probably search the locale manpage for how to do it on Solaris.

Changing the locale requires a pg_dump and restore...

Hope this helps,

On Tue, Sep 13, 2005 at 08:49:23AM -0400, Brusser, Michael wrote:
> Just occurred to me: perhaps we don't have a database corruption,
> instead after replacement of the boot drive the locale on the host
> changed from
> en_US.ISO8859-1 to 'C'
>
> Still I am not sure what to do. Is changing the locale back to
> en_US.ISO8859-1
> the right thing to do now?
>
> Mike.
>
> -----Original Message-----
>
> Our customer reported a problem resulting from the hard drive failure.
> Database server would not start, generating this message:
> PANIC: The database cluster was initialized with LC_COLLATE
> 'en_US.ISO8859-1',
> which is not recognized by setlocale().
> It looks like you need to initdb.
>
> They are running v.7.3.2 on Solaris, where all locale parameters are set
> to "C".
> Is there anything we can do to restore the database without data loss?
>
> Thank you,
> Michael.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2005-09-13 13:54:24 Re: Hard drive failure leads to corrupt db
Previous Message Greg Stark 2005-09-13 13:47:46 Re: Spinlocks, yet again: analysis and proposed patches