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 1tCTFh-003Apw-Vo for pgsql-admin@arkaria.postgresql.org; Sun, 17 Nov 2024 00:34:57 +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 1tCTEf-00G7yw-85 for pgsql-admin@arkaria.postgresql.org; Sun, 17 Nov 2024 00:33:53 +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 1tCTEe-00G7yo-OK for pgsql-admin@lists.postgresql.org; Sun, 17 Nov 2024 00:33:53 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tCTEc-002HF1-M8 for pgsql-admin@postgresql.org; Sun, 17 Nov 2024 00:33:51 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-539f2b95775so785205e87.1 for ; Sat, 16 Nov 2024 16:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731803627; x=1732408427; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=dVQacWICQk0roDm5f0oQE1PC8hFha91ib/bkj66QhKw=; b=kEnht8pqHFjwAe1L9ZqC0CRq76JoVkfS2BASd/YDlW7pE4d6kbTeo0L/5c3O15jq/c aroVXrcPXD+pEL8wiLmyvLLcvWhIU9L8MZoC6by0Ga/90H1RwW1BUS0xFcplnpHAfRC0 hJV3qjkkTblD59TxWS6vMb5T351InplPWJbaYYNdWT7UBYTQbyuRv3ULMxs2v3weNyWL bM8+XGoGCLq9s7TdQGM8TRY+Sz0LQQxmhedU72OWs69SA8R9LcdGv4dyNylqIjmfcFhL 8BHiekeaoQlTF8r05L7hPEQYvKyJjibss0V6ns8PrI+mPFuStoDteDeq9Lj3xJUIbDFT vUmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731803627; x=1732408427; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dVQacWICQk0roDm5f0oQE1PC8hFha91ib/bkj66QhKw=; b=Dd3fe4uT4TNCKQ8ZkoNl0GwLVKdG8gZSerMGDlUBVVVvTnI46joEiz3L9Pzb46iQqR OENwfO7ZL/koAA3xhCSKjLXE9nu261K3eAYwW34EGkQawRoFilydeS/zSndP6/yIX1uS w8f6f6kI1mkdK3KpY1j9J7vVwbU88aH4Feidm6R0YL1gcC08mC2Bn9jIacTsc8DE8Kc/ OzabR+oHy+2GAOLszqPWmm8qowODvEyLqBAY/SDfL+u1WpEW5a8obIX8jT5vedBv/JPN HwBzS+f3Iph3wtncfgQu2UmMuDgzL5ZCW3okUqwfMsbhhErp++5QbHUq907PASoQtgf3 v0/A== X-Gm-Message-State: AOJu0YwCCM9fQOM+VEawn6O0iF5U71yh4NpAcNNGrpPmxpxHUNCvv4cv Chfj/2ukW/Rt3yLl6+A14SNTBIcFVl10hpcNKd2GYwbt0/MGD2cUE+xqj+QM5eyNgWg02hnVnZN O4ta0XXW/qRs+nlB3dJtPM74veZDqyJpH X-Google-Smtp-Source: AGHT+IH80vKwwWzNq5NKa6DI/9aiDxGqr1mpkicVVBtpjNEEiEAaXdwYTt4z1EuIVAGimebVVRfbzHwYplh/fsmle14= X-Received: by 2002:a05:6512:baa:b0:52c:9ae0:beed with SMTP id 2adb3069b0e04-53dab3bbfb6mr4572551e87.52.1731803626957; Sat, 16 Nov 2024 16:33:46 -0800 (PST) MIME-Version: 1.0 From: Wells Oliver Date: Sat, 16 Nov 2024 16:33:10 -0800 Message-ID: Subject: RDS restore failed due to WAL log and disk space-- any tidy fixes? To: pgsql-admin Content-Type: multipart/alternative; boundary="000000000000017a10062710f446" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000017a10062710f446 Content-Type: text/plain; charset="UTF-8" I provisioned an RDS instance with 2500GB space and began the restore of a database I know to be about 1750 GB using 16 jobs. Unfortunately, it died very near the end when it ran out of disk space due to WAL log usage. Lots of: 2024-11-17 00:07:09 UTC::@:[19861]:PANIC: could not write to file "pg_wal/xlogtemp.19861": No space left on device And then kaboom. I'm wondering what my course of action should be. Can I disable/reduce WAL during a restore? wal_level is set to replica, can this temporarily be set to minimal? Should I just eat the extra costs to add headroom for the WAL? Would using fewer jobs during a restore reduce the amount of WAL created? I appreciate it. -- Wells Oliver wells.oliver@gmail.com --000000000000017a10062710f446 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I provisioned an RDS instance with 2500GB space and began the restore of = a database I know to be about 1750 GB using 16 jobs.

Unfortunately, it died very near the end when i= t ran out of disk space due to WAL log usage. Lots of:

2024-11-17 00:07:09 UTC::@:[19861]:PANIC:  could not =
write to file "pg_wal/xlogtemp.19861": No space left on device

And then kaboom.

I'm= wondering what my course of action should be. Can I disable/reduce WAL dur= ing a restore? wal_level is set to replica, can this temporarily be set to = minimal? Should I just eat the extra costs to add headroom for the WAL? Wou= ld using fewer jobs during a restore reduce the amount of WAL created?

I appreciate it.


-- <= /span>
--000000000000017a10062710f446--