Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: server cras...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 4950 of 5408
Post > Topic >>

Re: server crash, need to restore DB functionality

by albunix@[EMAIL PROTECTED] ("e t") Apr 30, 2008 at 08:15 AM

------=_Part_7567_20569217.1209557736170
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

All,

thanks for your kind reply.

We are indeed running rhel 2 es, as our application requires such.

I was able to correct this, including permission error, by

1)getting a right after the crash dump of the DB
2)dropping the DB
3)re-installing the RPM's via force option
4)re-im****ting the DB

I am not aware of how one re-indexes the table(s)

Is there any options or what's the syntax to do so,
in case we ever will need such in the future.

Thank you.

On Tue, Apr 29, 2008 at 2:52 PM, Scott Marlowe <scott.marlowe@[EMAIL PROTECTED]
>
wrote:

> On Tue, Apr 29, 2008 at 11:18 AM, e t <albunix@[EMAIL PROTECTED]
> wrote:
> > Hello,
> >
> > we run
> >
> > 7.4.7
> >
> > on a Redhat RHEL server.
>
> Two points.
> 1: The 7.4.x series is pretty old.  You should consider upgrading to a
> newer version when you have time.  8.3.1 is stable but a little new.
> 8.2.7 is very stable and much faster than 7.4.
> 2: 7.4 series is up to 7.4.19.  You may be missing 3 years of updates,
> unless you are using RedHat's version and they are back ****ting fixes
> to 7.4.7.  I didn't think they did that, but Tom Lane would be a good
> person to ask about that.
>
> > Today that was a severe server crash and NOC seems to have repeatedly
> > attempted a reboot without properly unmounting  the file systems.
>
> The machine that gives them a banana when they push a button probably
> wasn't working quite right :)
>
> >  I am getting errors such as the following
> >
> > Apr 29 13:15:34 cp postgres[4961]: [106-1] ERROR:  could not open
> relation
> > "users_pkey": Permission denied
> > Apr 29 13:15:34 cp postgres[4961]: [107-1] ERROR:  could not open
> relation
> > "users_pkey": Permission denied
> >  Apr 29 13:15:34 cp postgres[4957]: [113-1] ERROR:  could not open
> relation
> > "users_pkey": Permission denied
> >
> > when attempting to have my application connect to the DB
> >
> > Please let me know what sort of procedure are available to us
> >  to have such functionality restored.
>
> you should restore from backup if possible.
>
> > We do have backups.
>
> pg_dump backups (good thing) or file system backups (maybe good,
> likely not coherent)
>
> > Being it is one day old, are we going to loose information when
> attempting
> > to do a restore?
>
> Well, if you can't connect, then no.  OTOH, if you can still connect
> and you've been updating data, then yes.  you'll lost everything you
> had since your last backup.
>
> You may be able to fix things.  Trying reindexing the failing table /
> indexes.
>

------=_Part_7567_20569217.1209557736170
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

All,<br><br>thanks for your kind reply.<br><br>We are indeed running rhel
2 es, as our application requires such.<br><br>I was able to correct this,
including permission error, by <br><br>1)getting a right after the crash
dump of the DB<br>
2)dropping the DB<br>3)re-installing the RPM&#39;s via force
option<br>4)re-im****ting the DB<br><br>I am not aware of how one
re-indexes the table(s)<br><br>Is there any options or what&#39;s the
syntax to do so, <br>in case we ever will need such in the future.<br>
<br>Thank you.<br><br><div class="gmail_quote">On Tue, Apr 29, 2008 at
2:52 PM, Scott Marlowe &lt;<a
href="mailto:scott.marlowe@[EMAIL PROTECTED]
">scott.marlowe@[EMAIL PROTECTED]
>&gt;
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Apr 29, 2008 at 11:18 AM, e t &lt;<a
href="mailto:albunix@[EMAIL PROTECTED]
">albunix@[EMAIL PROTECTED]
>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; we run<br>
&gt;<br>
&gt; 7.4.7<br>
&gt;<br>
&gt; on a Redhat RHEL server.<br>
<br>
</div>Two points.<br>
1: The 7.4.x series is pretty old. &nbsp;You should consider upgrading to
a<br>
newer version when you have time. &nbsp;8.3.1 is stable but a little
new.<br>
8.2.7 is very stable and much faster than 7.4.<br>
2: 7.4 series is up to <a href="http://7.4.19."
target="_blank">7.4.19.</a> &nbsp;You may be missing 3 years of
updates,<br>
unless you are using RedHat&#39;s version and they are back ****ting
fixes<br>
to <a href="http://7.4.7."
target="_blank">7.4.7.</a> &nbsp;I didn&#39;t
think they did that, but Tom Lane would be a good<br>
person to ask about that.<br>
<div class="Ih2E3d"><br>
&gt; Today that was a severe server crash and NOC seems to have
repeatedly<br>
&gt; attempted a reboot without properly unmounting &nbsp;the file
systems.<br>
<br>
</div>The machine that gives them a banana when they push a button
probably<br>
wasn&#39;t working quite right :)<br>
<div class="Ih2E3d"><br>
&gt; &nbsp;I am getting errors such as the following<br>
&gt;<br>
&gt; Apr 29 13:15:34 cp postgres[4961]: [106-1] ERROR: &nbsp;could not
open relation<br>
&gt; &quot;users_pkey&quot;: Permission denied<br>
&gt; Apr 29 13:15:34 cp postgres[4961]: [107-1] ERROR: &nbsp;could not
open relation<br>
&gt; &quot;users_pkey&quot;: Permission denied<br>
&gt; &nbsp;Apr 29 13:15:34 cp postgres[4957]: [113-1] ERROR: &nbsp;could
not open relation<br>
&gt; &quot;users_pkey&quot;: Permission denied<br>
&gt;<br>
&gt; when attempting to have my application connect to the DB<br>
&gt;<br>
&gt; Please let me know what sort of procedure are available to us<br>
&gt; &nbsp;to have such functionality restored.<br>
<br>
</div>you should restore from backup if possible.<br>
<br>
&gt; We do have backups.<br>
<br>
pg_dump backups (good thing) or file system backups (maybe good,<br>
likely not coherent)<br>
<div class="Ih2E3d"><br>
&gt; Being it is one day old, are we going to loose information when
attempting<br>
&gt; to do a restore?<br>
<br>
</div>Well, if you can&#39;t connect, then no. &nbsp;OTOH, if you can
still connect<br>
and you&#39;ve been updating data, then yes. &nbsp;you&#39;ll lost
everything you<br>
had since your last backup.<br>
<br>
You may be able to fix things. &nbsp;Trying reindexing the failing table /
indexes.<br>
</blockquote></div><br>

------=_Part_7567_20569217.1209557736170--
 




 6 Posts in Topic:
server crash, need to restore DB functionality
albunix@[EMAIL PROTECTED]  2008-04-29 13:18:22 
Re: server crash, need to restore DB functionality
scott.marlowe@[EMAIL PROT  2008-04-29 12:52:41 
Re: server crash, need to restore DB functionality
tgl@[EMAIL PROTECTED] (T  2008-04-29 15:43:34 
Re: server crash, need to restore DB functionality
scott.marlowe@[EMAIL PROT  2008-04-29 12:53:49 
Re: server crash, need to restore DB functionality
albunix@[EMAIL PROTECTED]  2008-04-30 08:15:36 
Re: server crash, need to restore DB functionality
chander@[EMAIL PROTECTED]  2008-05-05 18:18:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 21:24:47 CDT 2008.