Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D470C1DACBC3 for ; Wed, 4 Jan 2012 14:48:19 -0400 (AST) Received: from [64.207.29.137] (helo=mail.illumen.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RiVsn-00005P-PO for pgsql-admin@postgresql.org; Wed, 04 Jan 2012 18:48:19 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Problem with pgstat timeouts Date: Wed, 4 Jan 2012 11:48:02 -0700 Message-ID: In-Reply-To: <4F04498F020000250004438B@gw.wicourts.gov> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Problem with pgstat timeouts Thread-Index: AczLENlr2Akm5JegQX23ttyIBrXXlwAAEH5A References: <4F04498F020000250004438B@gw.wicourts.gov> From: "Benjamin Krajmalnik" To: "Kevin Grittner" , "pgsql-admin" X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.207.29.137 (failed) X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201201/17 X-Sequence-Number: 38929 Batteries are installed and healthy. I wonder if it did it during one = of the charge/discharge cycles and just did not revert (interestingly, I = have one more server that did just that). I am trying to get the info = from LSI as to what may have caused it, if it is safe to revert the = cache mode while it is running, and, of course, the exact command so I = don't foobar things up. > -----Original Message----- > From: Kevin Grittner [mailto:Kevin.Grittner@wicourts.gov] > Sent: Wednesday, January 04, 2012 11:44 AM > To: pgsql-admin; Benjamin Krajmalnik > Subject: Re: [ADMIN] Problem with pgstat timeouts >=20 > "Benjamin Krajmalnik" wrote: >=20 > > Default Cache Policy: WriteBack, ReadAhead, Direct, No Write Cache > > if Bad BBU > > Current Cache Policy: WriteThrough, ReadAhead, Direct, No Write > > Cache if Bad BBU >=20 > > Is it possible that the WriteThrough is what is causing the high > > io (and maybe the pgstat wait timeouts as well)? >=20 > Yes. >=20 > > If this is the case, would it be safe to change the cache to Write > > back? >=20 > Maybe. How did it get into this (non-default) state? Are batteries > installed and healthy? >=20 > > Additionally, and somewhat unrelated, is there anything special > > which I need to do when restarting the primary server vis-=E0-vis > > the streaming replication server? In other words, if I were to > > restart the main server, will the streaming replication server > > reconnect and pick up once the primary comes online? >=20 > I think that should be pretty automatic as long as you haven't > promoted the standby to be the new master. >=20 > -Kevin