[pgsql-jp: 38972] Re: 再起動エラー pg_ctl restart‏
富士通)小野
ono.1982.kenji @ jp.fujitsu.com
2007年 11月 22日 (木) 22:10:34 JST
小野と言います。
僕なら・・・。
/tmp/に当該ファイルがあるから削除。
恐らく、pg_ctl -D /home/postgres/data -o "-i" stop でも止まらないと
思うので、ぷそせすを kill 。
そして
pg_ctl -D /home/postgres/data -o "-i" start
します。
データベースがこれぐらいで壊れる事は無いと思いますが・・・。
> ■pg_ctl -D /home/postgres/data -o "-i" restart
> pg_ctl: cannot find /home/postgres/data/postmaster.pid
> Is postmaster running?
> starting postmaster anyway
> Lock file "/tmp/.s.PGSQL.5432.lock" already exists.
> Is another postmaster (pid 25115) using "/tmp/.s.PGSQL.5432"?
> /usr/bin/postmaster: cannot create UNIX stream port
> postmaster successfully started
>
> postmaster の起動を確認するため以下のコマンドを実行しました。
> ■ps aux | grep postmaster
> postgres 25115 0.0 0.0 10380 1544 ? S Sep28 19:47 /usr/bin/postmaster
> postgres 29291 0.0 0.0 4596 664 pts/0 S 07:33 0:00 grep postmaster
>
> ■pg_ctl -D /home/postgres/data status
> pg_ctl: postmaster or postgres is not running
--
富士通株式会社 自治体ソリューション事業本部 基盤システム部
小野 健二
TEL:045-224-1433 FAX:045-224-1466
(内)7152-4552
pgsql-jp メーリングリストの案内