[pgsql-jp: 34480] postmaster.pidが存在する場合での起動時のエラーメッセージ

kenichi @ ga2.so-net.ne.jp kenichi @ ga2.so-net.ne.jp
2004年 12月 13日 (月) 10:54:50 JST


皆様。はじめまして。
西田と申します。

先日 OS起動時にPostgreSQLのログに以下のメッセージが出力されておりました。
メッセージの内容を見る限り、共有メモリの問題のようですが、
メッセージに pid ファイルを消してくださいとあります。
pidファイルを削除したのち、PostgreSQLを起動したらメッセージは
出力されなくなりました。

その後、postmastre.pidファイルが存在する状況で
PostgreSQLの起動を何度か行いましたが、同様のメッセージは
出力されませんでした。

そこで質問なのですが、
1.このメッセージは今後出力されなければ気にしなくてよいのでしょうか。
2.pidファイルの削除と共有メモリの開放は関係があるのでしょうか。
    それとも、関係はないのでしょうか。
3.このメッセージが出力されていたとき、OSも不安定だったのですが、
    なにか関係があるのでしょうか。

どなたか、お分かりになる方がいらっしゃったらご教授願います。

[メッセージ]

  2004-12-06 21:37:14 [2173] FATAL:  F0001: pre-existing shared memory 
block (key 5432001, ID 32768) is still in use
  HINT:  If you're sure there are no old server processes still running, 
remove the shared memory block with the command "ipcrm", or just delete the 
file "/usr/local/pgsql/data/postmaster.pid".
  LOCATION:  CreateLockFile, miscinit.c:578
  2004-12-06 21:55:12 [2192] FATAL:  F0001: pre-existing shared memory 
block (key 5432001, ID 32768) is still in use
  HINT:  If you're sure there are no old server processes still running, 
remove the shared memory block with the command "ipcrm", or just delete the 
file "/usr/local/pgsql/data/postmaster.pid".
  LOCATION:  CreateLockFile, miscinit.c:578
  2004-12-06 22:12:34 [2130] FATAL:  F0001: pre-existing shared memory 
block (key 5432001, ID 32768) is still in use
  HINT:  If you're sure there are no old server processes still running, 
remove the shared memory block with the command "ipcrm", or just delete the 
file "/usr/local/pgsql/data/postmaster.pid".
  LOCATION:  CreateLockFile, miscinit.c:578
  2004-12-06 22:13:29 [2390] FATAL:  F0001: pre-existing shared memory 
block (key 5432001, ID 32768) is still in use
  HINT:  If you're sure there are no old server processes still running, 
remove the shared memory block with the command "ipcrm", or just delete the 
file "/usr/local/pgsql/data/postmaster.pid".
  LOCATION:  CreateLockFile, miscinit.c:578

[環境]
OS:RedHat 7.3
DB:PostgreSQL 7.4.6
です。

以上、お手数ですが、よろしくお願い致します。

---------------------------------------------
西田 憲一郎
Kenichiro Nishida  <kenichi @ ga2.so-net.ne.jp> 




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