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 1mKzWh-00059b-Ge for pgsql-general@arkaria.postgresql.org; Tue, 31 Aug 2021 08:53:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKzWg-0000P0-FK for pgsql-general@arkaria.postgresql.org; Tue, 31 Aug 2021 08:53:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKzWg-0000Os-6k for pgsql-general@lists.postgresql.org; Tue, 31 Aug 2021 08:53:50 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mKzWd-0007LR-AE for pgsql-general@postgresql.org; Tue, 31 Aug 2021 08:53:49 +0000 Received: by mail-wr1-x42c.google.com with SMTP id u9so26413564wrg.8 for ; Tue, 31 Aug 2021 01:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=gE+XJ9vj/b06/uUC17W0pH69TJOnzB3qZcnorR9ADaU=; b=TVEc9qeURHF0BGPOd54wJ+UKjTzdTnPEgZE8RFMHTZGgMIFUDpkMEusjCfxEWtaK2k 7kj+OdoXYYX3DVmkpzevHVxssU+ZdLoda1Ms63Wq3nNaczE8mITeVoG1oKccIRaxAAbp K15qU7tWBz65zwinmTsa36D4B7lylZQM0Iovr7XIDdCprcezLbEg80IJeR3t/Tsbt01w vfbvZvViLuc4+qZfF2r34qHKvMiGUYNDfCJNZsfkmMJeXEsBmyzP3txeZkNDS4SJA9bl U9j6uS5Gto3OZd6TZDOzOmb9RpL91VFky7Z8h85aRD8ecUYxE10PocmYdpYYtjnwpahv qhuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=gE+XJ9vj/b06/uUC17W0pH69TJOnzB3qZcnorR9ADaU=; b=AxisyGa/bSS59k3D4Q/LbGW8oe7I+gi5McW2V8N6CFvlYmM589FA+VvJzGvLkyc5ix DXG7s25sUUM5NPTlf5Cd+6/pnKZXd2nvjrfquVmDO/xgSMMlAbyW5x+0UGxqg2PaYpUP GvzkwLXAAClBok7K3MpVKqejtk4NtMb6BMTasbNMPfouklFVekL7G7mb6joUjTgpRcWH mLQbcMbs3YdTTyzVkTYBzLox71TVyywsKxHdV7ZVAb1vS+H1hVlc+3jrRLJ4JmHYROot bbTqyUnVA3zV+fWCk0hf1R1p4CYNF1T/g7flAe0p0NNdem/Xh6XjZCDiR1ut9Qz9j74P ERoA== X-Gm-Message-State: AOAM5315S+zKvRJiO3mixLjheUrvJQkC1hTUghoQhxAdkmUBHZx04pNH 2OadAzXaA/4UISC91HppzBfTHw== X-Google-Smtp-Source: ABdhPJwadvZwL1j/VQFCKGNX9e6dNXzUAQo5a+9U5nAF9M2L2O5/Ml800vGml8EZ3U2Znbv7jpTvYA== X-Received: by 2002:a5d:69c6:: with SMTP id s6mr30757627wrw.157.1630400026206; Tue, 31 Aug 2021 01:53:46 -0700 (PDT) Received: from localhost.localdomain (dynamic-e2xyfzfnev01s16dn-pd01.res.v6.highway.a1.net. [2001:871:5c:b427:7f9d:d976:d8cc:d68b]) by smtp.gmail.com with ESMTPSA id j1sm21788770wrd.50.2021.08.31.01.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Aug 2021 01:53:46 -0700 (PDT) Message-ID: <7dddc78919c491aa1b6f1e369ed8024ccba9f1be.camel@cybertec.at> Subject: Re: prevent WAL replication to fill filesystem From: Laurenz Albe To: basti , pgsql-general Date: Tue, 31 Aug 2021 10:53:45 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) 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 Tue, 2021-08-31 at 10:36 +0200, basti wrote: >  have a old PG 9.6 with WAL replication. > for some reason the rsync was failed and the filesystem was filled by > pg_xlog files. > As result PG stops working. > > Is there a way to prevent WAL replication to fill filesystem by xlog > files in case of failure? Sure. Upgrade to v13 and set "max_slot_wal_keep_size". Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com