[pgcluster: 289] Re: pglbがpid ファイルを消さない

KIKAWADA Mitsukuni/黄川田光国 mitsukuni @ unixmagic.net
2004年 5月 24日 (月) 12:48:42 JST


きかわだです。


On Mon, 24 May 2004 09:28:09 +0900
mitani <mitani @ sraw.co.jp> wrote:

> 三谷@広島です.
> > 通常通りにkillしてもpidファイルは残るようですね。
> > stopしないといけないんでしょうか?
> 手元の環境はRedHat7.3なのですが,Ctl+Cで殺してもSTOPで止めてもpidファイ
> ルは削除されました.
> (時刻が無茶苦茶なのは,試験用にタイムゾーンを変えているからなので,
> 無視してください)

linuxとsolarisでsignalを受け取った後の
動作が違うということになるんでしょうか?


(snip)
> 確認ですが,黄川田さんの環境でpglbを停止させた時,pglbの停止は完了してい
> ますでしょうか.(psコマンドで確認してください)

確実に停止しているようです。後述のログをご参照ください。


> あと,頂いたログを見るとpglb.pidファイルの格納ディレクトリが,
> $PG_DATA下になっているように見えるのですが,親ディレクトリの
> パーミッション等はどのようになっていますでしょうか.

次のようになっています。

bash-2.05$ pglb -D ./data_cv14/
bash-2.05$ ps -afe | grep pglb
postgres 12377     1  0 12:45:43 pts/3    0:00 pglb -D ./data_cv14/
postgres 12378 12377  0 12:45:43 pts/3    0:00 pglb -D ./data_cv14/
bash-2.05$ pglb -D ./data_cv14/ stop
bash-2.05$ ps -afe | grep pglb
bash-2.05$ ls -la data_cv14/
total 26
drwx------    6 postgres postgres      512 May 24 12:45 .
drwxr-xr-x    6 postgres postgres      512 May 18 21:37 ..
-rw-------    1 postgres postgres        4 Apr 27 21:15 PG_VERSION
drwx------    4 postgres postgres      512 Apr 27 21:19 base
-rw-------    1 postgres postgres     2328 May  7 17:27 cluster.conf
drwx------    2 postgres postgres      512 May  7 20:37 global
drwx------    2 postgres postgres      512 Apr 27 21:15 pg_clog
-rw-------    1 postgres postgres     2420 May 10 18:53 pg_hba.conf
-rw-------    1 postgres postgres     1441 Apr 27 21:17 pg_ident.conf
drwx------    2 postgres postgres      512 Apr 27 21:15 pg_xlog
-rw-r--r--    1 postgres postgres     2052 May 10 21:04 pglb.conf
-rw-r--r--    1 postgres postgres        5 May 24 12:45 pglb.pid
-rw-------    1 postgres postgres     5177 Apr 27 23:26 postgresql.conf
-rw-------    1 postgres postgres       37 Apr 27 23:26 postmaster.opts


よろしく御願いします。

-- 
黄川田光国 / KIKAWADA Mitsukuni <mitsukuni @ unixmagic.net>





pgcluster メーリングリストの案内