Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5lyn-0000QM-Op for pgsql-general@arkaria.postgresql.org; Mon, 27 Jun 2022 10:28:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o5lym-0002mj-C0 for pgsql-general@arkaria.postgresql.org; Mon, 27 Jun 2022 10:28:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o5lym-0002kp-1E for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 10:28:28 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o5lyf-0003GI-8L for pgsql-general@lists.postgresql.org; Mon, 27 Jun 2022 10:28:26 +0000 Received: by mail-ed1-x530.google.com with SMTP id z19so12260337edb.11 for ; Mon, 27 Jun 2022 03:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=+pfWRQ5qDekv2Y4z2i2yVH1yixYHx2H4N51pLItpdiQ=; b=c90+u9UjE7gMvR8QKHvj4vZFHXjH5qvVAzjrBNCAxVgYvUmFYeOkJQH9Ym89UyXwTU FRmU8JUUwqBCXX+VBsOAMRxGI9Fm43otTgtsWT8AwVXNpzhXf50ofRsSeyyDNihpKDWV 0sMMJc1gX8jV4fwNhAl+1XUhaGta+a3CHSPy+EKWNRCx6YW/7+L5TNJJWRY7vjaO2/T2 GI2i7UMbdJm8xQ0jhehXyF4c7l9GxSs+cvjNSJ394w1xqRqs7yGeX0uVX/VToPuDDNU2 EUa9UMk3qhg37G2fNWs2TRLjfLA++D2qdo7DJ3Y8ptXHEJN9h2h3FIkovIy5nTWof7AY /REA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=+pfWRQ5qDekv2Y4z2i2yVH1yixYHx2H4N51pLItpdiQ=; b=g/Hb/Bt0A86F/923m/ZYJiyXvNLxa2k7LJwknxFHbOoA7zemsh+bBWfBTP0UUfePkn 2hg4AHvw88xYtCYQjCK4YmwaH/jV5ao9LZTzKP9VlB4ioRuC4wujwhDdJn0EeDh6h2R7 kdR7hISMLXDMpi/w9cGsxrkyrkGFHu+/SIj1iFg+CJYEBp/qLL4P841/ciQXAOY+iA9N bE7kBHWGKITUXYHEhKaslwP6WRFtRRYjFzspv34/+v2Fl9amgzt8G+iK6qpMyTnqdHN0 CPahZjEPHu+xY7PGAbY9x0Mf55rCC8xkrsw5cxXXXBvGpocxLkatoEVOCz5l31YHLsXT wjtw== X-Gm-Message-State: AJIora+vb2RcVnqEV/4YcqkEuRaz/WiOZhjyeFB++XgNNQthWnkQ710l u2yH8dzX4uo7p9PP4vwegaCOiLgZdE7LloLN X-Google-Smtp-Source: AGRyM1u9QupXAAHRz8hnJq+ArB4EWRiQKmPnFv372NUFryTiYcICqf3WeSzE9ySvL6xLjjOtyadaUw== X-Received: by 2002:a05:6402:1249:b0:435:5e0c:20ac with SMTP id l9-20020a056402124900b004355e0c20acmr15556617edw.100.1656325699635; Mon, 27 Jun 2022 03:28:19 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:5151:6f59:646:3c67:1109]) by smtp.gmail.com with ESMTPSA id kg27-20020a17090776fb00b00721d8e5beeesm4793957ejc.60.2022.06.27.03.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 03:28:19 -0700 (PDT) Message-ID: Subject: Re: help for pg_wal issue From: Laurenz Albe To: =?ISO-8859-1?Q?=D6zge_=D6zyavuz?= , "pgsql-general@lists.postgresql.org" Date: Mon, 27 Jun 2022 12:28:18 +0200 In-Reply-To: <711385ec7a194f279fe1f8f7141a81b2@softtech.com.tr> References: <711385ec7a194f279fe1f8f7141a81b2@softtech.com.tr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2022-06-27 at 09:50 +0000, Özge Özyavuz wrote: > I want to backup my postgresql database but it fails because it is looking for some wal files on pg_wal directory. >   > Before backup I checked my pg_wal directory and I saw the wal file, >   > bash-4.2$ cd /pgdata/pgsql/data/pg_wal > bash-4.2$  ls > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000AE > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000AF > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B0 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B1 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B2 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B3 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B4 > -rw------- 1 postgres postgres 16777216 Jun 24 01:16 000000010000000A000000B5 > -rw------- 1 postgres postgres 16777216 Jun 24 01:31 000000010000000A000000B6 > -rw------- 1 postgres postgres 16777216 Jun 24 01:46 000000010000000A000000B7 >   > But backup fails with, >   > Failed to open:  /pgdata//pgsql/data/pg_wal/000000010000000A000000AE > Error! The backup has failed. >   > After I checked pg_wal directory and really there is no such file, it was not appear on disk. What can I do for this? Please help.. >   > bash-4.2$ cd /pgdata/pgsql/data/pg_wal > bash-4.2$  ls > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000AF > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B0 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B1 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B2 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B3 > -rw------- 1 postgres postgres 16777216 Jun 24 01:01 000000010000000A000000B4 > -rw------- 1 postgres postgres 16777216 Jun 24 01:16 000000010000000A000000B5 > -rw------- 1 postgres postgres 16777216 Jun 24 01:31 000000010000000A000000B6 > -rw------- 1 postgres postgres 16777216 Jun 24 01:46 000000010000000A000000B7 > -rw------- 1 postgres postgres 16777216 Jun 24 02:01 000000010000000A000000B8 You forgot to tell us how exactly you are performing that backup. Yours, Laurenz Albe