[pgcluster: 540] Re: リカバリーできない

kazunari takahashi kazunari.takahashi @ ctc-g.co.jp
2004年 9月 14日 (火) 20:00:53 JST


高橋です.

自己解決いたしました.

今までは、rootでログインした後に、
$ su -l postgres
でpostgresユーザに変更してpgclusterを起動していたのですが、
postgresユーザでサーバにログインすると正常に動きました.

お騒がせして申し訳ございません.
対応ありがとうございました.


On Tue, 14 Sep 2004 17:18:00 +0900
kazunari takahashi <kazunari.takahashi @ ctc-g.co.jp> wrote:

> 高橋です.
> 
> 早速の返事ありがとうございます.
> 
> > レプリケーションサーバの起動ユーザをClusterDBのユーザと同じユーザで立ち
> > 上げるか,-Uオプションを付けて起動してみてください.
> 
> 以前も同じユーザ(postgresユーザ)で立ち上げてましたが、
> -Uオプションを付けて立ち上げてみました.
> 結果は同じでした.
> 
> なぜrootで接続しにいくのでしょうか?
> 
> 
> -----------------
> clusterDB
> -----------------
> serverA% id
> uid=101(postgres) gid=101(postgres)
> 
> postgres 11386     1  0 17:12:07 pts/2    0:00 /usr/local/pgsql/bin/postmaster -
> i
> postgres   724   694  0   Sep 10 pts/2    0:00 -zsh
> postgres 11388 11387  0 17:12:07 pts/2    0:00 /usr/local/pgsql/bin/postmaster -
> i
> postgres 11387 11386  0 17:12:07 pts/2    0:00 /usr/local/pgsql/bin/postmaster -
> i
> postgres 11390 11386  0 17:12:07 pts/2    0:00 /usr/local/pgsql/bin/postmaster -
> i
> postgres 11023  1098  0 14:06:25 pts/2    0:00 -zsh
> 
> -----------------
> replication server
> -----------------
> % id
> uid=101(postgres) gid=101(postgres)
> 
> % ps -ef | grep post
> postgres 10478 10477  0 17:12:53 pts/2    0:00 pgreplicate -U postgres -D /usr/local/pgsql/etc -W /usr/local/pgsql/etc -nvl
> postgres 10418   756  0 15:23:12 pts/2    0:00 -zsh
> postgres 10477 10418  0 17:12:53 pts/2    0:00 pgreplicate -U postgres -D /usr/local/pgsql/etc -W /usr/local/pgsql/etc -nvl
> postgres 10479 10477  0 17:12:59 pts/2    0:00 pgreplicate -U postgres -D /usr/local/pgsql/etc -W /usr/local/pgsql/etc -nvl
> postgres   728   724  0   Sep 10 pts/1    0:00 -zsh
> 
> On Tue, 14 Sep 2004 16:59:42 +0900
> mitani <mitani @ sraw.co.jp> wrote:
> 
> > 三谷@広島です.
> > 
> > > DEBUG(pgr_createConn): PQsetdbLogin host[serverA] port[5432] db[template1] user[root]
> > > が怪しいかなと思い、再度postgresユーザで、コンパイルしてみました.
> > レプリケーションサーバの起動ユーザをClusterDBのユーザと同じユーザで立ち
> > 上げるか,-Uオプションを付けて起動してみてください.
> > 
> > =============================
> > 三谷 篤<mitani @ sraw.co.jp>
> > =============================
> 


高橋 一成 <kazunari.takahashi @ ctc-g.co.jp>




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