[pgsql-jp: 31970] Re: postgresql が起動できない

shushu2 shushu2 @ yahoo.co.jp
2004年 1月 13日 (火) 10:38:58 JST


外川です。pg_ctl を試してみました。

$ pg_ctl start
pg_ctl: Another postmaster may be running.  Trying to
start postmaster anyway.
Found a pre-existing shared memory block (ID 0) still in
use.
If you're sure there are no old backends still running,
remove the shared memory block with ipcrm(1), or just
delete "/var/lib/pgsql/data/postmaster.pid".
pg_ctl: cannot start postmaster
Examine the log output.

と出たので、一度pidを消してやってみようと
postmaster.pidをコピーして、本物は消して
再度実行。

$ pg_ctl start
postmaster successfully started
bash-2.05a$ DEBUG:  database system was interrupted at
2004-01-09 13:31:52 JST
DEBUG:  checkpoint record is at 0/C1C3BE4
DEBUG:  redo record is at 0/C1C3BE4; undo record is at
0/0; shutdown FALSE
DEBUG:  next transaction id: 229144; next oid: 50301
DEBUG:  database system was not properly shut down;
automatic recovery in progress
DEBUG:  ReadRecord: record with zero length at 0/C1C3C24
DEBUG:  redo is not required
DEBUG:  database system is ready

で無事立ち上がりました。ひょっとすると
RESTARTで行けたのかもしれません。

立ち上がったはいいのですが、自分自身まだ理屈が
わかっていませんので、勉強しようと思います。
あと質問するときは、ちゃんと詳細を書くようにします。

ありがとうございました。



--- eto @ tiu.ac.jp からのメッセージ:
> etoと申します
> 
> >standard in must be a tty
> これはsuコマンドが吐いているエラーメッセージっぽいです
ね
> 
> 例)
> [test @ hoge.hoge test]$ echo USOpass | su -
> standard in must be a tty
> 
> 
> /etc/rc.d/init.d/postgresqlを試される前に、pg_ctlで起
動できるか確かめま
> しょう。
> あと、Redhatをお使いなのでしたら、バージョンに合ったRPM
入れないと色々と
> 不具合ありますよ。
> 
> 以上
> 
> On Tue, 13 Jan 2004 09:43:00 +0900 (JST)
> shushu2 <shushu2 @ yahoo.co.jp> wrote:
> 
> > 外川と申します。
> > 
> > 環境は
> > apache1.3
> > REDHAT7.3
> > です。
> > 
> > 症状はpostgresを起動しようとすると
> > /etc/rc.d/init.d/postgresql start
> > 下記メッセージが出て起動できません。
> > いろいろ調べましたが原因がわかりません。
> > Starting postgresql service: standard in must be a
> tty
> > 
> > インストールしたときは立ち上がったのですが、
> > 一度リスタートしてからおかしくなりました。
> > 実行時は su postgres
> でログインして実行しております。
> > 
> > すみませんご教授ください。
> 
>



pgsql-jp メーリングリストの案内