[pgcluster: 287] Re: pglbがpid ファイルを消さない
KIKAWADA Mitsukuni/黄川田光国
mitsukuni @ unixmagic.net
2004年 5月 23日 (日) 21:57:11 JST
黄川田です。追伸します。
通常通りにkillしてもpidファイルは残るようですね。
stopしないといけないんでしょうか?
bash-2.05$ pglb -D ./data_cv14/
bash-2.05$ ps -afe | grep pglb
postgres 2435 2434 0 21:55:59 pts/2 0:00 pglb -D ./data_cv14/
postgres 2434 1 0 21:55:59 pts/2 0:00 pglb -D ./data_cv14/
bash-2.05$ kill 2434
bash-2.05$ ls data_cv14/
PG_VERSION cluster.conf pg_clog pg_ident.conf pglb.conf postgresql.conf
base global pg_hba.conf pg_xlog pglb.pid postmaster.opts
On Sun, 23 May 2004 21:33:19 +0900
"KIKAWADA Mitsukuni/黄川田光国" <mitsukuni @ unixmagic.net> wrote:
> 黄川田です。
>
> On Thu, 20 May 2004 09:15:34 +0900
> mitani <mitani @ sraw.co.jp> wrote:
>
> > > 初めて投稿するきかわだと申します。
> > このMLは登録されたメールアドレスでのみ投稿が可能です.
> > きかわださんの投稿されたメールは登録されていないアドレスからのメールとし
> > てMLツールではじかれていましたので,次回の投稿からは登録済みのアドレスか
> > らお願いします.
>
> MUAの設定がおかしかったようです。
> 失礼しました。
>
>
> > > solaris 9上でpgclusterのテストをしているのですが、
> > > pglbを再起動する際、pglb.pidが削除されません。
> > > これはバグでしょうか?
> > 「再起動」とは「停止」してから「起動」されていることでしょうか.
> >
> > 「停止」時にはpglb.pidに書かれているprocess idにSIGTERMを送ってから,
> > pglb.pidファイルを削除しています.
> > もし消えていないというのであれば,停止自体が失敗している可能性があります.
> >
> > 起動時につけたパラメータと,停止の仕方(パラメータ等)を教えてください.
> > あと,起動時のユーザと停止時のユーザが異なる場合,ファイルのパーミッショ
> > ンの問題でpglb.pidファイルが削除できないということはあります.
> > (この場合はエラーメッセージが出ると思いますが)
>
> pglbをデバッグモードで起動後、CTRL+Cで終了した場合にpidファイルが
> 残っています。シェルコマンドのログをお送りしますのでご参考にしてください。
>
>
> bash-2.05$ pglb -D ./data_cv14/ -nv
> DEBUG(PGRset_status_on_cluster_tbl): host:wt001112 port:5432 max:32 status:0->2
> DEBUG(PGRset_status_on_cluster_tbl): host:wt001113 port:5432 max:32 status:0->2
> DEBUG(PGRset_status_on_cluster_tbl): host:wt001114 port:5432 max:32 status:0->2
> DEBUG(PGRset_status_on_cluster_tbl): Child_Tbl size is[49536]
> DEBUG(PGRset_status_on_cluster_tbl): msgget id:10
> DEBUG(PGRcreate_recv_socket): recovery wait
> DEBUG(PGRcheck_recovery): load balance wait
> ^C
> bash-2.05$ ls -al data_cv14/
> total 26
> drwx------ 6 postgres postgres 512 May 23 21:05 .
> 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 4 May 23 21:05 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>
>
--
黄川田光国 / KIKAWADA Mitsukuni <mitsukuni @ unixmagic.net>
pgcluster メーリングリストの案内