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 1jLLQP-0006lr-Iu for pgsql-general@arkaria.postgresql.org; Mon, 06 Apr 2020 06:40:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jLLQO-0004sb-I8 for pgsql-general@arkaria.postgresql.org; Mon, 06 Apr 2020 06:40:00 +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 1jLLQO-0004sU-AB for pgsql-general@lists.postgresql.org; Mon, 06 Apr 2020 06:40:00 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLLQK-000519-SD for pgsql-general@postgresql.org; Mon, 06 Apr 2020 06:39:59 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id D917A1C50 for ; Mon, 6 Apr 2020 09:39:53 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F6vVqAAwEaZx for ; Mon, 6 Apr 2020 09:39:51 +0300 (EEST) Received: from mail.hot.ee (hot-relayhost2.estpak.ee [213.180.2.80]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 92BCE1C4F for ; Mon, 6 Apr 2020 09:39:51 +0300 (EEST) Received: from dell2 (66-63-196-88.sta.estpak.ee [88.196.63.66]) (Authenticated sender: kobruleht2) by HOT-Relayhost2.estpak.ee (Postfix) with ESMTPSA id 48wgrR3hK8z2nx for ; Mon, 6 Apr 2020 09:39:50 +0300 (EEST) Message-ID: <76CCED1112A14005BCF8486556D43B46@dell2> From: "Andrus" To: "pgsql-general" Subject: Server with hot standby slave wont start after vacuum Date: Mon, 6 Apr 2020 09:39:34 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-1257"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi! Streaming asynchronous binary replication is used with hot standby slave. To recover disk space vacuumdb --all --full --skip-locked is executed in every night is master. During this vacuumdb stops with error vacuumdb: error: vacuuming of table "myschema.mytable" in database "mydb" failed: PANIC: could not write to file "pg_wal/xlogtemp.24729": No space left on device server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. And master wont start anymore: LOG: server process (PID 24729) was terminated by signal 6: Aborted DETAIL: Failed process was running: VACUUM (SKIP_LOCKED, FULL) firma39.rid; LOG: terminating any other active server processes WARNING: terminating connection because of crash of another server process DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory. HINT: In a moment you should be able to reconnect to the database and repeat your command. ... LOG: all server processes terminated; reinitializing LOG: database system was interrupted; last known up at 2020-04-06 01:14:10 EEST LOG: database system was not properly shut down; automatic recovery in progress LOG: redo starts at 2A0/C414BA68 FATAL: could not extend file "global/58294678": wrote only 4096 of 8192 bytes at block 1728 HINT: Check free disk space. CONTEXT: WAL redo at 2A0/D661D4B0 for XLOG/FPI: LOG: startup process (PID 24732) exited with exit code 1 LOG: aborting startup due to startup process failure LOG: database system is shut down pg_wal contains 2005 files with total size 32 GB and there is no free disk space. hot standby server is connected over 20 Mbit internet. Maybe vacuum full causes creation of creates huge number files in pg_wal which cannot transferred fast over 20Mbit internet. How to fix this so that master continues to work? Mabe it is possible to disable creation of wal files by vacuum. Postgres 12 in Debian is used. Andrus.