Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6lL4-00FMDI-9o for pgsql-general@arkaria.postgresql.org; Fri, 01 Nov 2024 06:40:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t6lL2-00AFY5-DZ for pgsql-general@arkaria.postgresql.org; Fri, 01 Nov 2024 06:40:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t6lL1-00AFXd-SO for pgsql-general@lists.postgresql.org; Fri, 01 Nov 2024 06:40:52 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t6lKy-003uYP-A8 for pgsql-general@postgresql.org; Fri, 01 Nov 2024 06:40:50 +0000 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2e2b9480617so1316716a91.1 for ; Thu, 31 Oct 2024 23:40:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bitnine-net.20230601.gappssmtp.com; s=20230601; t=1730443247; x=1731048047; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fiSda+7p39l1troiRNeeYbXgJbGlA+W2kAH/WSvMzgs=; b=t6H8c6QpNV42AwRgv3C09Cj+nTZ7IuWNdrMWAoVQN55s7bb52+S/S0jcxpxbzYWms/ 9Z+8i2AZ48pT5llwYWk7sMjbOiwOFNLEE8hplBdeBzcFOhyrokyxOmGHwZge4Wu6YAnG Igt+DH4rPcAewHnc1WLPPFOgAitjhYUvrG7QMScN7e9xPdCOAbVw1hioKeKcioJXfSAo ZII32Vv52nfvwUvCjk2+5mApk8d15AwRj+QTph/GsQGJxLF3B5EYoNMBb3bsm3Ev05Mc aRkQYzbIM5rs5gjyN1XkP9aW+Z1UxfPH7244+NugXvzesRa3V0XhEU/B0/32W+jFRpf1 jpNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730443247; x=1731048047; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fiSda+7p39l1troiRNeeYbXgJbGlA+W2kAH/WSvMzgs=; b=Ez+egi2rrMdAEPRLzF2XBduQqeMoTY+oHEvZ2+JjWkmHFCt+4MrPG6mrWbVo69nCTG iAuCDl94LaFuUM6M/DxgxEA2zDZCVpGCDaUrcnO44G/2hjThg36OPpEEiDJca3sC6e6n sdkiFouHvS2bMGJDveS3dJ2HA34DR3SOFtNS6ZWGBDdx+rIA/41oapS/dRVUlv+uQhAF 04eCxDn29tFPKvZKxSNfvDZI1meowe4yl1po/ZcyUFROOrenp4r5uoI8HgHczkBXJqHB 0H8K9Vn1PRbYC+gjY4WkxTv/g0yH8UMVfaC9KoFukr1vp3AmtBtsGvFdvi8SXzj0z67P RDhA== X-Gm-Message-State: AOJu0YyF/2Bj1YbvihSBCmHu88POtJjfEV8elgx1DsOUpz6UJyS8pIqv QCdMZsE79ImjX+Sph0twlcuzHftNOD03f2++kQ6AgnQ+9MtTRXDccwMK7WzeFGhHI/hzNUCd7IY rFDI/7rnQUdzAHutJ4qowiebC/DN5z8hxl9DrgA== X-Google-Smtp-Source: AGHT+IHsTBeBsz1BPVyOB4czq6KcjQ/AICg0vrW17Dzz/kuII/QoJzycpOk/1T87YsEVzZMmQ5KBdVs1XV3zBrwwipI= X-Received: by 2002:a17:90b:1c0b:b0:2e0:b65b:6b4d with SMTP id 98e67ed59e1d1-2e93c3057e7mr6460732a91.41.1730443246914; Thu, 31 Oct 2024 23:40:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muhammad Usman Khan Date: Fri, 1 Nov 2024 11:40:36 +0500 Message-ID: Subject: Re: pg_wal folder high disk usage To: Paul Brindusa Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000096ec70625d437e5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000096ec70625d437e5 Content-Type: text/plain; charset="UTF-8" First of all check if postgres cannot archive or delete old WAL files. For immediate space, move older files from pg_Wal to another storage but don't delete them. Restart postgres in recovery mode and if archiving is not working then try disabling it temporarily to let PostgreSQL automatically clear older WAL files archive_mode = off On Thu, 31 Oct 2024 at 15:36, Paul Brindusa wrote: > Good morning, > > On one of our postgres instances we have the pg_wal/data folder up to > 196GB, out of 200GB disk filled up. > This has stopped the posgresql.service this morning causing two > applications to crash. > Unfortunately our database admin is on leave today, and we are trying to > figure out how to get the disk down? > Any ideas or suggestions are more than welcome. > > Thank you in advance. > > -- > Kind Regards, > Paul Brindusa > paulbrindusa88@gmail.com > > --000000000000096ec70625d437e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
First of all check if postgres cannot archive or delete ol= d WAL files. For immediate space, move older files from pg_Wal to another s= torage but don't delete them.
Restart postgres in recovery=C2=A0mode= and if archiving is not working then try disabling it temporarily to let P= ostgreSQL automatically clear older WAL files
archive_mode =3D off

On= Thu, 31 Oct 2024 at 15:36, Paul Brindusa <paulbrindusa88@gmail.com> wrote:
Good morning,<= /div>

On one of our postgres instances we have the pg_wa= l/data folder up to 196GB, out of 200GB disk filled up.
This has = stopped the posgresql.service this morning causing two applications to cras= h.
Unfortunately our database admin is on leave today, and we are= trying to figure out how to get the disk down?
Any ideas or sugg= estions are more than welcome.
=C2=A0
Thank yo= u in advance.

--
Kind Regards,
Paul Brindusa

--000000000000096ec70625d437e5--