Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC3Os-0003gk-NM for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2019 14:31:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hC3Or-0007gW-CL for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2019 14:31:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC3Oq-0007e9-Uk for pgsql-general@lists.postgresql.org; Thu, 04 Apr 2019 14:31:29 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC3On-0003bC-Uu for pgsql-general@postgresql.org; Thu, 04 Apr 2019 14:31:28 +0000 Received: by mail-io1-xd44.google.com with SMTP id d201so2141426iof.7 for ; Thu, 04 Apr 2019 07:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=WkpcM3mEobo7N4bo17IBugcvaBmbo+J7xbHT6ND1Ask=; b=qOWizfMXZc9R4HMlDkcgFJRMw9qGQqkTmutttoMdbzJzyxwbdRpvwoAK1hlTpFd1mE b6O0LYF+7lwWXN/rCb7T+aii52ZFO2F8JPTUildVnb0vqdxEqrtAWqfjzqrT1KLc9EMg OWu9NLOEOtAy26BWXoJOfCnGSey+UAdnIjlx7oMoO3/xnfER7KH5HUlBhHklPYEwISty RXkUt0ergXrzwlVczBgVwKPIUjntJdbv44/YbcltS7sUShfmE41NLZHwAYFBqczeJo/s 9T2bbREfyfOK2Rdjnzo0wHL0pwzzthsK5qTNEx6vgJOmr9swO7NqyFcPFKEYWYSqWssW ZjFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=WkpcM3mEobo7N4bo17IBugcvaBmbo+J7xbHT6ND1Ask=; b=OKrNpCCwzo/qhV8TAWyrxqdNXbForklhszi62VmY29Ik+DKW3HfKmH3ge7AdoyJCd7 5IhFWJdg+TqO+8b1HLiJHNndBnw7BrCh6Lt3Zi9VM2jgb6APYYrpzmV79fryRAgDizeK 7R1SC1Z46mnUWpirsiwasQYu4p8XKJ8qPtM2gFaibUEf7HzeytfrXhFW8MuG3lK1unsA FDXhew+JvPbpiZrK+/VVZQug+0AcGLEU6Btq6X6+4EJscV3dfYjAT0QWndU7S9T2a9l+ Z8D7PhktY/jGPV0pY0OvwM8vQwvyzpie2u161QQepMddyVV596oT0YLGNxYP2Ib/1sb7 zF4Q== X-Gm-Message-State: APjAAAUDg7a9e9hdW2w3hNOZTAGZs8EDdh/w90goRTxFJaK8ax42mbD7 WMaougHGAg+hcQ/utp+kkgE= X-Google-Smtp-Source: APXvYqzZvh8jvdvIVsW139Pzar5siNUs0zdl1fTAunSGEV4etVD/+VLUK2y96QxXm4+Iw3AmI+x5Ng== X-Received: by 2002:a5e:9806:: with SMTP id s6mr4747180ioj.86.1554388284392; Thu, 04 Apr 2019 07:31:24 -0700 (PDT) Received: from [192.168.1.108] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id t23sm7730303ioj.19.2019.04.04.07.31.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2019 07:31:21 -0700 (PDT) From: Rob Sargent Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_950C34B2-6B69-4BC0-8147-693070FA6A99" Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: stale WAL files? Date: Thu, 4 Apr 2019 08:31:19 -0600 In-Reply-To: Cc: Michael Paquier , Adrian Klaver , "pgsql-general@postgresql.org" To: Rene Romero Benavides References: <10FF70E2-9F70-4469-A4F4-4081988F0204@gmail.com> <3dccbbe4-e115-11ab-2d78-74c3cc9e2e43@aklaver.com> <599C6022-1DA1-477D-895C-7E217D350B85@gmail.com> <20190328133005.GB2558@paquier.xyz> <973f0fdf-e20f-a8a1-86c8-7f145eb31b70@gmail.com> <20190329125811.GF1954@paquier.xyz> <989E476E-D798-4F80-ADDE-3DA4EB9CAA3C@gmail.com> <6F2111AD-1CD9-4077-AA8B-F6E1F7AD809D@gmail.com> X-Mailer: Apple Mail (2.3445.102.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_950C34B2-6B69-4BC0-8147-693070FA6A99 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 3, 2019, at 5:23 PM, Rene Romero Benavides = wrote: >=20 >=20 >=20 > On Wed, Apr 3, 2019 at 1:05 PM Rob Sargent > wrote: >=20 >=20 >> On Apr 1, 2019, at 9:20 PM, Rene Romero Benavides = > wrote: >>=20 >>=20 >> On Mon, Apr 1, 2019 at 6:30 PM Rene Romero Benavides = > wrote: >>=20 >> On Sat, Mar 30, 2019 at 5:03 PM Gmail > wrote: >>=20 >>=20 >> > On Mar 30, 2019, at 10:54 AM, Gmail > wrote: >> >=20 >> >=20 >> >>>> On Mar 29, 2019, at 6:58 AM, Michael Paquier = > wrote: >> >>>=20 >> >>> On Thu, Mar 28, 2019 at 09:53:16AM -0600, Rob Sargent wrote: >> >>> This is pg10 so it's pg_wal. ls -ltr >> >>>=20 >> >>>=20 >> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33 >> >>> 0000000100000CEA000000B1 >> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33 >> >>> 0000000100000CEA000000B2 >> >>>=20 >> >>> ... 217 more on through to ... >> >>>=20 >> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01 >> >>> 0000000100000CEA000000E8 >> >>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01 >> >>> 0000000100000CEA000000E9 >> >>> -rw-------. 1 postgres postgres 16777216 Mar 28 09:46 >> >>> 0000000100000CEA0000000E >> > I=E2=80=99m now down to 208 Mar 16 WAL files so they are being = processed (at least deleted). I=E2=80=99ve taken a snapshot of the = pg_wal dir such that I can see which files get processed. It=E2=80=99s = none of the files I=E2=80=99ve listed previously >>=20 >> Two more have been cleaned up. 001C and 001D generated at 16:38 Mar = 16 >>=20 >>=20 >>=20 >> Please share your complete postgresql.conf file and the results from = this query:=20 >> SELECT * FROM pg_settings; >> has someone in the past configured wal archiving? >> You've ran out of disk space as this log message you shared states: >> No space left on device >> what's the output of df -h >>=20 >> --=20 >> El genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n. >> Thomas Alva Edison >> http://pglearn.blogspot.mx/ >>=20 >>=20 >> BTW , how spread apart are checkpoints happening? do you have stats = on that? maybe they're too spread apart and that's why WAL files cannot = be recycled rapidly enough? =20 >> --=20 >> El genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n. >> Thomas Alva Edison >> http://pglearn.blogspot.mx/ >>=20 > two attempts (one in-line, one with attachement) at sending = postgresql.conf and pg_settings report have been sent to a moderator. >=20 >=20 >=20 > As per your configuration : > max_wal_size =3D 50GB > this seems to be the cause for the WAL files piling up. >=20 > this has been declared twice, the last one is taking effect. That=E2=80=99s an interesting catch. Thank you. I=E2=80=99ll have that = reverted that to default. Note that the WAL files are all the default 16M however. Currently we=E2=80=99re down to 88 Mar 16 WAL files. My inclination is = to wait this out, to see if all of Mar 16 goes away quietly then reset = our backups. =20 > --=20 > El genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n. > Thomas Alva Edison > http://pglearn.blogspot.mx/ >=20 --Apple-Mail=_950C34B2-6B69-4BC0-8147-693070FA6A99 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Apr 3, 2019, at 5:23 PM, Rene Romero Benavides <rene.romero.b@gmail.com> wrote:



On Wed, Apr 3, 2019 at 1:05 PM Rob Sargent <robjsargent@gmail.com> wrote:


On Apr = 1, 2019, at 9:20 PM, Rene Romero Benavides <rene.romero.b@gmail.com> wrote:


On Mon, Apr 1, 2019 at 6:30 PM Rene Romero = Benavides <rene.romero.b@gmail.com> wrote:

On Sat, Mar = 30, 2019 at 5:03 PM Gmail <robjsargent@gmail.com> wrote:


> On Mar 30, 2019, at 10:54 AM, Gmail <robjsargent@gmail.com> wrote:
>
>
>>>> On Mar 29, 2019, at 6:58 AM, Michael Paquier <michael@paquier.xyz> wrote:
>>>
>>> On Thu, Mar 28, 2019 at 09:53:16AM -0600, Rob Sargent = wrote:
>>> This is pg10 so it's pg_wal.  ls -ltr
>>>
>>>
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33
>>> 0000000100000CEA000000B1
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 16:33
>>> 0000000100000CEA000000B2
>>>
>>> ... 217 more on through to ...
>>>
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01
>>> 0000000100000CEA000000E8
>>> -rw-------. 1 postgres postgres 16777216 Mar 16 17:01
>>> 0000000100000CEA000000E9
>>> -rw-------. 1 postgres postgres 16777216 Mar 28 09:46
>>> 0000000100000CEA0000000E
> I=E2=80=99m now down to 208 Mar 16 WAL files so they are being = processed (at least deleted).  I=E2=80=99ve taken a snapshot of the = pg_wal dir such that I can see which files get processed. It=E2=80=99s = none of the files I=E2=80=99ve listed previously

Two more have been cleaned up.  001C and 001D generated at 16:38 = Mar 16



Please share your complete postgresql.conf file and = the results from this query: 
SELECT * FROM = pg_settings;
has someone in the past configured wal = archiving?
You've ran out of disk space as this log = message you shared states:
No space left on device
what's the output of df -h

--
El genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n.
Thomas Alva Edison
http://pglearn.blogspot.mx/


BTW , = how spread apart are checkpoints happening? do you have stats on that? = maybe they're too spread apart and that's why WAL files cannot be = recycled rapidly enough?  
--
El = genio es 1% inspiraci=C3=B3n y 99% transpiraci=C3=B3n.
Thomas Alva Edison
http://pglearn.blogspot.mx/

two attempts (one in-line, one with attachement) at = sending postgresql.conf and pg_settings report have been sent to a = moderator.



As per your configuration :
max_wal_size =3D = 50GB
this seems to be the cause for = the WAL files piling up.

this has been declared twice, the last = one is taking effect.

That=E2=80=99s an interesting catch.  Thank you. =  I=E2=80=99ll have that reverted that to default.
Note = that the WAL files are all the default 16M however.
Currently = we=E2=80=99re down to 88 Mar 16 WAL files.  My inclination is to = wait this out, to see if all of Mar 16 goes away quietly then reset our = backups.


 
--
El genio es 1% = inspiraci=C3=B3n y 99% transpiraci=C3=B3n.
Thomas Alva = Edison
http://pglearn.blogspot.mx/


= --Apple-Mail=_950C34B2-6B69-4BC0-8147-693070FA6A99--