pg not starting after power failure
pg not starting after power failure
От:
Jason Nugent <ap958@chebucto.ns.ca>
Дата:
Hey folks,
Unfortunately, a lightning strike last evening caused a momentary
power flicker and my Redhat 4.2 Linux machine was bumped off line for a
minute or two. It was my "home" box that is only on about 10 minutes a
day and it didn't have a UPS, which is dumb. For some reason, postgres
no longer auto starts on boot anymore.
I had configured my /etc/inittab file to autostart it using
pg:2345:respawn:/bin/su - postgres -c "/usr/local/pgsql/bin/postmaster
-D/usr/local/pgsql/data >> /usr/local/pgsql/server.log 2>&1" /dev/null
One a single line. It does not start, and after about 10 tries
to respawn it stops because of a "respawn too fast" error. If I try to
start it using
nohup postmaster > server.log 2>&1 &
while logged into the postgres account, it also fails. Unfortunately, I
am not at home and don't have the actual error message, so I was
wondering if anyone else has had this problem with a forced shutdown. It
had been working beautifully for about two weeks now, with several
halt/restart sequences.
I would appreciate any insight.
Thanks to all,
Jason
---------------------
Jason Nugent, BSc(Hons)
ap958@chebucto.ns.ca "This is who we are."
jason@irt.org
Certified Webmaster
Visit IRT.org - Internet Related Technologies - http://www.irt.org
Articles on all aspects of internet development, including -
CGI/Perl, CSS, JavaScript, dHTML, Java, XML, HTML
********************************************************************
The Best Place for Sport on the net! - Sportscience www.sportsci.org
********************************************************************
Re: [ADMIN] pg not starting after power failure
От:
jcc2@juno.com (John C Cusick)
Дата:
On Thu, 4 Jun 1998 11:10:55 -0300 (ADT) Jason Nugent writes: > > >while logged into the postgres account, it also fails. Unfortunately, >I am not at home and don't have the actual error message, so I was >wondering if anyone else has had this problem with a forced shutdown. >It had been working beautifully for about two weeks now, with several >halt/restart sequences. > I would appreciate any insight. > > Thanks to all, > > Jason > > >--------------------- >Jason Nugent, BSc(Hons) >ap958@chebucto.ns.ca "This is who we are." >jason@irt.org >Certified Webmaster Jason, I had this happen on a RedHat5.0 system. I found a lock file in /var/lock or /var/run if I remember coreectly. This kept my system from starting the postmaster. Hope this helps. JC _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]