[pgcluster: 5] Re: クラスタサーバ障害発生時のリカバリー方法について。
Tsuru Eiichi
tsuru @ hht.co.jp
2003年 12月 25日 (木) 16:13:06 JST
お世話になります。
つるつる@大分です。
oguro様、三谷様 アドバイス有難う御座います。
環境は、
R1:RedHat9(192.168.30.3)
C1:Turbo8(192.168.30.1)
C2:RedHat9(192.168.30.2)
です。
>> ERROR(send_packet): PGR_Create_Socket_Connect failed
>> DEBUG(send_packet): set RECOVERY_PGDATA_REQ packet data
>> DEBUG(PGRget_master): name C1 flg 1 port 5432 recoveryPort 7779
>> DEBUG(PGRget_master): name C2 flg 1 port 5432 recoveryPort 7779
>> ERROR(PGRget_master): get master info error , master may be down
>と出ていますので,レプリケーションサーバがマスタDBとの接続に失敗している
>ようです.
>マスタDBが起動しているか,ネットワークは繋がっているか等をチェックしてみ
>てください.
・R1からのC1へのpingを確認しましたが、問題なくpingが通っている様でした。
・マスタDBが起動していなかった為、以下の手順でマスタDBを起動させテストしまし
た。
1.R1の起動
#/usr/local/pgsql/bin/pgreplicate start -D /usr/local/pgsql/etc -nv
2.C1の起動
$/usr/local/pgsql/bin/pg_ctl start -D /usr/local/pgsql/data -o "-i"
3.C2のリカバリー
$/usr/local/pgsql/bin/pg_ctl start -o "-i -R"
先ほどとは異なったメッセージが、C2に表示されました。
[postgres @ C2 bin]$ pg_ctl start -o "-i -R" -D /usr/local/pgsql/data
postmaster successfully started
[postgres @ C2 bin]$ Enter passphrase for RSA key
'/home/postgres/.ssh/identity':
Bad passphrase.
postgres @ c1's password:
Permission denied, please try again.
postgres @ c1's password:
Permission denied, please try again.
postgres @ c1's password:
Permission denied.
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
/usr/local/pgsql/bin/postmaster: recovery failed
どうも、authorized_keysにC1C2双方のカギをcatコマンドで移したのですが、
カギが正しくない為に失敗しているようなエラーが出てる様です。。。
パスワード入力無しでssh接続出来ることが出来ればクリア出来そうなので
もう少し頑張ってみます。。。
アドバイス有難う御座いました。
pgcluster メーリングリストの案内