Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C42B51337B2F for ; Wed, 10 Nov 2010 15:52:53 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 54160-03 for ; Wed, 10 Nov 2010 19:52:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from nrccenhts1.nrc.ca (nrccenhts2.nrc.ca [132.246.15.89]) by mail.postgresql.org (Postfix) with ESMTP id E24F3133616B for ; Wed, 10 Nov 2010 15:52:45 -0400 (AST) Received: from NRCWSTHCM1.NRC.CA (132.246.216.66) by nrccenhts2.nrc.ca (132.246.15.89) with Microsoft SMTP Server (TLS) id 8.1.436.0; Wed, 10 Nov 2010 14:52:44 -0500 Received: from [132.246.194.17] (132.246.216.202) by WSTMAIL.NRC.CA (132.246.216.66) with Microsoft SMTP Server (TLS) id 8.1.436.0; Wed, 10 Nov 2010 11:52:43 -0800 Message-ID: <4CDAF80A.8060804@nrc-cnrc.gc.ca> Date: Wed, 10 Nov 2010 11:52:42 -0800 From: Isabella Ghiurea Reply-To: isabella.ghiurea@nrc-cnrc.gc.ca Organization: CADC -NRC User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: "tsoupl@gmail.com" , "pgsql-admin@postgresql.org" Subject: Re: PG HA solution using DBRD References: <0015174c3e94e55f760494aee7d9@google.com> In-Reply-To: <0015174c3e94e55f760494aee7d9@google.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.19 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_FRT_BELOW2=0.01 X-Spam-Level: X-Archive-Number: 201011/82 X-Sequence-Number: 36048 Thanks for reply. DBRD cfg we have :primary/primary both of the servers can be used for writes/active while only one will be active always and other one is passive ( PG is offline) the user data directories and pg_xlog is using DBRD, the PG software directory and $PG_DATA is local on each server. Isabella tsoupl@gmail.com wrote: > Hi, > > What king of configuration do you have on DRBD? is it Primary/primary > or Primary secondary? > > > > On Nov 10, 2010 12:12am, Isabella Ghiurea > wrote: > > Hi All, > > > > I 'm testing a HA solution for a PG version 9.01 database configured > using DBRD for pg_xlog directory and user data /table space > partitions.( block disk changes are copied from master to slave ) > > > > the archive mode option is off for both master and slaver node, > when I power off master without a clean PG shutdown the slave > database server will not start. Bellow is the errror, what are my > option to increase the checkpoint frequency ? > > > > archive_mode is off for both server > > > > > > > > database system was interrupted; last known up at 2010-11-09 > 08:27:02 PST > > > > 2010-11-09 13:20:03 PST [8505]: [2-1] LOG: could not open file > "pg_xlog/00000001000000BC00000006" (log file 188, segment 6): No such > file or directory > > > > 2010-11-09 13:20:03 PST [8505]: [3-1] LOG: invalid primary > checkpoint record > > > > 2010-11-09 13:20:03 PST [8505]: [4-1] LOG: could not open file > "pg_xlog/00000001000000BC00000006" (log file 188, segment 6): No such > file or directory > > > > 2010-11-09 13:20:03 PST [8505]: [5-1] LOG: invalid secondary > checkpoint record > > > > 2010-11-09 13:20:03 PST [8505]: [6-1] PANIC: could not locate a > valid checkpoint record > > > > 2010-11-09 13:20:03 PST [8499]: [2-1] LOG: startup process (PID > 8505) was terminated by signal 6: Aborted > > > > 2010-11-09 13:20:03 PST [8499]: [3-1] LOG: aborting startup due to > startup process failure > > > > postgres@proc5-15:errorlog$ > > > > Thank you > > > > Isabella > > > > > > > > -- > > > > ----------------------------------------------------------- > > > > Isabella A. Ghiurea > > > > Isabella.Ghiurea@nrc-cnrc.gc.ca > > > > Canadian Astronomy Data Centre > |http://www.nrc-cnrc.gc.ca/eng/services/hia/data-centre.html National > Research Council of Canada, Herzberg Institute of Astrophysics 5071 > West Saanich Road, Victoria BC V9E 2E7, Canada > > > > Phone: 250 363-3446 fax: 250 363-0045 > > > > > > > > > > > > -- > > > > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > > > > To make changes to your subscription: > > > > http://www.postgresql.org/mailpref/pgsql-admin > > -- ----------------------------------------------------------- Isabella A. Ghiurea Isabella.Ghiurea@nrc-cnrc.gc.ca Canadian Astronomy Data Centre |http://www.nrc-cnrc.gc.ca/eng/services/hia/data-centre.html National Research Council of Canada, Herzberg Institute of Astrophysics 5071 West Saanich Road, Victoria BC V9E 2E7, Canada Phone: 250 363-3446 fax: 250 363-0045