Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X7V8p-0002Pr-IG for pgsql-admin@arkaria.postgresql.org; Wed, 16 Jul 2014 19:45:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X7V8o-0007yU-W8 for pgsql-admin@arkaria.postgresql.org; Wed, 16 Jul 2014 19:45:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X7V8o-0007y0-2S for pgsql-admin@postgresql.org; Wed, 16 Jul 2014 19:45:26 +0000 Received: from mail.journyx.com ([209.163.206.41] helo=mail.int.journyx.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X7V8k-0001rf-94 for pgsql-admin@postgresql.org; Wed, 16 Jul 2014 19:45:24 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id A85C830004D; Wed, 16 Jul 2014 14:45:19 -0500 (CDT) Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id wnRF_OqNsJpk; Wed, 16 Jul 2014 14:45:14 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id E3E5B3000BE; Wed, 16 Jul 2014 14:45:14 -0500 (CDT) X-Virus-Scanned: amavisd-new at mail.int.journyx.com Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VwaZQxOvkrPT; Wed, 16 Jul 2014 14:45:14 -0500 (CDT) Received: from mail.int.journyx.com (zimbra.int.journyx.com [192.168.100.5]) by mail.int.journyx.com (Postfix) with ESMTP id B81E13000A5; Wed, 16 Jul 2014 14:45:14 -0500 (CDT) Date: Wed, 16 Jul 2014 14:45:14 -0500 (CDT) From: Scott Whitney Reply-To: Scott Whitney To: John Scalia Cc: pgsql-admin@postgresql.org Message-ID: <1756032979.492840.1405539914689.JavaMail.zimbra@mail.int.journyx.com> In-Reply-To: <53C6D524.90305@gmail.com> References: <53C6D524.90305@gmail.com> Subject: Re: setting -i and -N 100 when starting postmaster MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_492839_601916107.1405539914688" X-Originating-IP: [192.168.100.1] X-Mailer: Zimbra 8.0.7_GA_6021 (ZimbraWebClient - GC35 (Win)/8.0.7_GA_6021) Thread-Topic: setting -i and -N 100 when starting postmaster Thread-Index: T286A3dkca4E+I15vUo3BYvhpqp3Sg== X-Pg-Spam-Score: -0.5 (/) 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 ------=_Part_492839_601916107.1405539914688 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit -i is "interactive," as in "listen on TCP/IP" -N 384 is max connections 384 ----- Original Message ----- > Hi all, > My wonderful colleagues in charge of our production database have screwed up > royally. They managed to corrupt the production database by having two > instances of postgresql talking > to the same database/same filesystem/same time. Now, they'd like me to fix > it. Sigh... > BTW, this is a V9.2.2 system, and the database will still start, but the logs > are full of reports pf invalid page header errors. One thing I'm looking at > is doing a "ps -ef | grep > postmaster", I see "service postgresql-9.2 start" uses: > postmaster -D /opt/datacenter -i -N 384 -p 5431 > Now, I know what the -D and -p are doing, but I'm not sure what -i and -N are > for, and my internet search hasn't turned up much. Anybody know? > -- > Jay > PS. Any suggestions beyond setting zero_damaged_pages=true and then running a > vacuum would also be appreciated. > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin ------=_Part_492839_601916107.1405539914688 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
-i is "interactive," as in "list= en on TCP/IP"
-N 384 is max connections 384

<= div>

Hi all,

My wonderful colleagues in charge = of our production database have screwed up royally. They managed to corrupt= the production database by having two instances of postgresql talking
= to the same database/same filesystem/same time. Now, they'd like me to fix = it. Sigh...

BTW, this is a V9.2.2 system, and the databas= e will still start, but the logs are full of reports pf invalid page header= errors. One thing I'm looking at is doing a "ps -ef | grep
postmaster"= , I see "service postgresql-9.2 start" uses:

postmaster -= D /opt/datacenter -i -N 384 -p 5431

Now, I know what the = -D and -p are doing, but I'm not sure what -i and -N are for, and my intern= et search hasn't turned up much. Anybody know?
--
Jay

PS. Any suggestions beyond setting zero_damaged_pages=3Dtrue and then ru= nning a vacuum would also be appreciated.


--
Sent= via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make chang= es to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin<= br>

------=_Part_492839_601916107.1405539914688--