[postgresforest-users 60] RE:./ForestRecovery.sh(phase1)実行時のエラーについて

Zurück zum Archiv-Index

なが 2 nagat****@hotma*****
2007年 7月 23日 (月) 11:57:28 JST


永津です。
 
ご教授ありがとうございます。
ご指摘の通り、稼動インスタンス上でリカバリのコマンドを実行していました。
 
障害インスタンス上でコマンドを打ち直したところ、
リカバリー完了までスムーズに進みました。
 
重ねてありがとうございました。> Date: Mon, 23 Jul 2007 09:01:20 +0900> From: nagay****@nttda*****> To: postg****@lists*****> Subject: [postgresforest-users 59] Re: ./ForestRecovery.sh(phase1)実行時のエラーについて> > 永安です。> > エラーメッセージを拝見していると、ローカルに作成している> スナップショットのファイルが見えないように見えますね。> > このリカバリのコマンドは、稼動インスタンス上で実行していますか?> それとも障害インスタンス上で実行していますか?> > このエラーが出ている場合は、前者であるケースがあるのですが、> リカバリコマンドは障害インスタンス上で実行しなければなりません。> > 上記、一点確認していただけますでしょうか。> > よろしくお願いします。> > なが 2 wrote:> > 初めまして、永津と申します。> > > > http://lists.sourceforge.jp/mailman/archives/postgresforest-users/2007-June/000045.html> > の文章を読んだ上で質問させて頂きます。> > > > 現在、PostgresForest-4.0.1+Postgres8-1.5を用いて、> > テストを行っているのですが、オンラインリカバリ中にエラーが発生します。> > 具体的には、稼働インスタンスから障害インスタンスへのデータベースコピー中 > > (Phase1)の> > REBUILD FROM SNAPSHOTがstartした後で以下のようなエラーメッセージが出て終 > > 了してしまいます。> > リンク先の文章は既に拝見しました。> > > > それで、吉森様の方法に習って、postgresをビルドする際、以下のようにしてみ > > ましたが、> > 結果は変わりませんでした。> > {> > # su  postgres > > $ cd /usr/local/src/postgresql-8.1.5 > > $ ./configure --prefix=/usr/local/postgresql-8.1.5 > > --enable-multibyte=Unicode> > $ make > > $ make install > > 〜(略)〜> > PostgreSQL installation complete.> > }> > 他に解決策などあれば、教えて頂けないでしょうか。> > 宜しくお願い致します。> > > > [forest @ fnxq7bx bin]$ ./ForestRecovery.sh -user forest -pass forest > > -remptetmpdir /tmp/rtm> > p -localtmpdir /local/tmp/ltmp -gsc_url > > jdbc:postgresql://192.168.0.165:5432/gsc -timeout> > 300 -phase1 0 1 forest_db> > 2007-07-20 17:11:08.021 NOTICE: RECOVERING:> > 2007-07-20 17:11:08.022 NOTICE: FROM > > [0]jdbc:postgresql://192.168.0.165:5432/forest_db> > 2007-07-20 17:11:08.022 NOTICE: TO > > [1]jdbc:postgresql://192.168.0.142:5432/forest_db> > 2007-07-20 17:11:08.028 NOTICE: SERVER STATUS:> > 2007-07-20 17:11:08.028 NOTICE: Src: Server 0, Status 1> > 2007-07-20 17:11:08.029 NOTICE: Dst: Server 1, Status -1> > 2007-07-20 17:11:08.029 NOTICE: RECOVERY_MODE = 1> > 2007-07-20 17:11:08.029 NOTICE: RECOVERY / INITIALIZATION> > 2007-07-20 17:11:08.03 NOTICE: TABLE(S) TO COPY:> > 2007-07-20 17:11:08.03 NOTICE: forest_test1> > 2007-07-20 17:11:08.031 NOTICE: forest_test2> > 2007-07-20 17:11:08.031 NOTICE:&nb! sp; forest_test3> > 2007-07-20 17:11:08.031 NOTICE: forest_test4> > 2007-07-20 17:11:08.031 NOTICE: RECOVERY / PHASE 1: start.> > 2007-07-20 17:11:08.031 NOTICE: GSC CHECK:> > 2007-07-20 17:11:08.032 NOTICE: forest_servdb, forest_db: OK> > 2007-07-20 17:11:08.033 NOTICE: forest_tablepartdtl, forest_test1: OK> > 2007-07-20 17:11:08.033 NOTICE: forest_tablepartdtl, forest_test2: OK> > 2007-07-20 17:11:08.034 NOTICE: forest_tablepartdtl, forest_test3: OK> > 2007-07-20 17:11:08.034 NOTICE: forest_tablepartdtl, forest_test4: OK> > 2007-07-20 17:11:08.045 NOTICE: Log table already exists.> > 2007-07-20 17:11:08.046 NOTICE: Log table already exists.> > 2007-07-20 17:11:08.047 NOTICE: Log table already exists.> > 2007-07-20 17:11:08.051 NOTICE: COPYING ALL TABLES: start.> > 2007-07-20 17:11:08.051 NOTICE: CREATE SNAPSHOT: start.> > NOTICE: log trigger on forest_test1 already exists.> > N! OTICE: ProcArray=0xb7becba4, numProcs=4> > NOTICE: ids[0]: xid=0> > NOTICE: ids[1]: xid=722845> > NOTICE: ids[2]: xid=0> > NOTICE: ids[3]: xid=0> > 2007-07-20 17:11:08.093 NOTICE: COPYING forest_test1> > 2007-07-20 17:11:10.183 NOTICE: done.> > 2007-07-20 17:11:10.183 NOTICE: COPYING forest_test2> > 2007-07-20 17:11:12.233 NOTICE: done.> > 2007-07-20 17:11:12.233 NOTICE: COPYING forest_test3> > 2007-07-20 17:11:14.293 NOTICE: done.> > 2007-07-20 17:11:14.293 NOTICE: COPYING forest_test4> > 2007-07-20 17:11:16.372 NOTICE: done.> > 2007-07-20 17:11:16.372 NOTICE: CREATE SNAPSHOT: done.> > 2007-07-20 17:11:16.372 NOTICE: REBUILD FROM SNAPSHOT: start.> > java.io.FileNotFoundException: /local/tmp/ltmp/forest_test1.db (No such > > file or directory)> > at java.io.FileOutputStream.open(Native Method)> > &n! bsp; at java.io.FileOutputStream.<init>(FileOutputStream.java:179)> > at java.io.FileOutputStream.<init>(FileOutputStream.java:131)> > at > > org.postgresforest.tool.recovery.RecoveryManager.copyFileToLocal(Unknown > > Source)> > at > > org.postgresforest.tool.recovery.ForestRecovery.RecoveryPhase1(Unknown > > Source)> > at org.postgresforest.tool.recovery.ForestRecovery.main(Unknown > > Source)> > 2007-07-20 17:11:16.394 ERROR: org.postgresql.util.PSQLException: ERROR: > > could not open file "/local/tmp/ltmp/forest_test1.db" for reading: No > > such file or directory> > LOG: unexpected EOF on client connection> > > > また、> > ./psql -l -h 192.168.0.165 -U forest> > というコマンドを打った際は、> > データベースは下記のように表示されます> > List of databases> > Name | Owner | Encoding> > -----------------+--------+-----------> > forest_db | forest | UTF8> > forest_template | forest | UTF8> > gsc | forest | SQL_ASCII> > postgres | forest | SQL_ASCII> > template0 | forest | SQL_ASCII> > template1 | forest | SQL_ASCII> > (6 rows)> > > > _______________________________________________> > postgresforest-users mailing list> > postg****@lists*****> > http://lists.sourceforge.jp/mailman/listinfo/postgresforest-users> > > -- > NAGAYASU Satoshi <nagay****@nttda*****>> Phone: +81-50-5546-2496> > _______________________________________________> postgresforest-users mailing list> postg****@lists*****> http://lists.sourceforge.jp/mailman/listinfo/postgresforest-users
_________________________________________________________________
世界中のLIVE EARTHのライブはMSNで楽しもう!
http://liveearth.jp.msn.com/
-------------- next part --------------
HTMLの添付ファイルを保管しました...
Download 


postgresforest-users メーリングリストの案内
Zurück zum Archiv-Index