Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WdknA-0008LG-PD for pgsql-admin@arkaria.postgresql.org; Fri, 25 Apr 2014 18:24:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WdknA-0007b6-8z for pgsql-admin@arkaria.postgresql.org; Fri, 25 Apr 2014 18:24:08 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wdkn9-0007b0-Ae for pgsql-admin@postgresql.org; Fri, 25 Apr 2014 18:24:07 +0000 Received: from qmta14.emeryville.ca.mail.comcast.net ([2001:558:fe2d:44:76:96:27:212]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wdkn5-0001jL-UO for pgsql-admin@postgresql.org; Fri, 25 Apr 2014 18:24:06 +0000 Received: from omta15.emeryville.ca.mail.comcast.net ([76.96.30.71]) by qmta14.emeryville.ca.mail.comcast.net with comcast id uH1u1n0061Y3wxoAEJQ27f; Fri, 25 Apr 2014 18:24:02 +0000 Received: from jerry.enova.com ([38.98.177.132]) by omta15.emeryville.ca.mail.comcast.net with comcast id uJPX1n0042rmZlA8bJPcbi; Fri, 25 Apr 2014 18:23:56 +0000 Received: by jerry.enova.com (Postfix, from userid 1001) id B61707401E7; Fri, 25 Apr 2014 13:23:30 -0500 (CDT) From: Jerry Sievers To: Henry Korszun Cc: Scott Whitney , "pgsql-admin\@postgresql.org" Subject: Re: References: <1398447433.8578.YahooMailNeo@web162701.mail.bf1.yahoo.com> <712112871.331097.1398447813672.JavaMail.zimbra@mail.int.journyx.com> <1398448636.25048.YahooMailNeo@web162704.mail.bf1.yahoo.com> <2131729726.331419.1398448843621.JavaMail.zimbra@mail.int.journyx.com> <1398449399.70260.YahooMailNeo@web162701.mail.bf1.yahoo.com> Date: Fri, 25 Apr 2014 13:23:30 -0500 In-Reply-To: <1398449399.70260.YahooMailNeo@web162701.mail.bf1.yahoo.com> (Henry Korszun's message of "Fri, 25 Apr 2014 11:09:59 -0700 (PDT)") Message-ID: <86k3adw9nh.fsf@jerry.enova.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1398450242; bh=Uoda5+LP6G6LKYI9/ZtFR87uesmYeLnZ6i+juls7gts=; h=Received:Received:Received:From:To:Subject:Date:Message-ID: MIME-Version:Content-Type; b=BBiP4E6oXHnhHI7RpTIyppJxeQWJwNC61jU9PlaPmeR4bwSxhz6cHPdAJqhMLLsli 4sFLMfBJ4Jd2I5UIJykN2NWCFPii7KU36BfAFclt7TEO5OtXmEW++/0hpz0w/mPfGy ZPL7ISzVJ/tuI8OHejSrx4S2wAjwAjLOfr5Bixf4PFBQ8d9lnMAGIJT1TqxRC2z9yq FDQXZ1OsT4geYI0ylrjrjIPnXfow3AjgQwKotseyCzhO+ZXcig2/W7L6WZunyTdT9L OcMSgyms/DtnH8YfwQPesg1CHJ4k2Is6XA/GS5Mi/96BtRsKvnqdHMYVfuFGoMTtW2 p6GUbWK7rscPQ== X-Pg-Spam-Score: -1.4 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Henry Korszun writes: > I understand what you're saying, but I don't know what's causing the "touch" in the first place. I guess I need to further examine/debug. Thanks for your help. > On Friday, April 25, 2014 2:00 PM, Scott Whitney wrote: > The slave doesn't "turn off" the master. The trigger file is intended to be touched _when the master is down_. Nor do we. Possibly your system is running some HA software and it's onlining your standby due to false-positive. > > Since the master never WENT down (or came back up) and the trigger file was touched, the slave got promoted. > > You'll need to stop the slave, run your select pg_startbackup(), rsync, etc to get your slave back to slave mode. > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > There IS a trigger file, which does appear to have been "touch"ed. But the problem is that a fail-over hasn't really occurred since the original read/write primary > continues to be a fully functioning read/write machine. But it's no longer replicating to the erstwhile standby, which has become read/write. Bottom line, I now > have 2 read/write machines, but with no replication between them. > On Friday, April 25, 2014 1:43 PM, Scott Whitney wrote: > Sounds like you might have a "trigger_file" set in your recovery.conf. Do you? That or someone is issuing a pg_ctl promote command. > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > I'm using PostgreSQL 9.2.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20070115 (SUSE Linux), 64-bit. > > I set up streaming replication for a read/write primary and a read/only standby. The replication works fine for a while, and then out of the blue BOTH machines > become read/write, but with no replication from the original primary to the newly read/write standby. > > The only log entry that seems relevant is as follows: FATAL,57P01,"terminating walreceiver process due to administrator > command",,,,,,,,"ProcessWalRcvInterrupts, walreceiver.c:150","" > > Any help/guidance would be appreciated. Thanks in advance. > -- Jerry Sievers Postgres DBA/Development Consulting e: postgres.consulting@comcast.net p: 312.241.7800 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin