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 1jqnaa-00020v-2J for pgsql-general@arkaria.postgresql.org; Thu, 02 Jul 2020 01:00:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqna1-000167-Uh for pgsql-general@arkaria.postgresql.org; Thu, 02 Jul 2020 00:59:57 +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 1jqna1-000160-N6 for pgsql-general@lists.postgresql.org; Thu, 02 Jul 2020 00:59:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqnZu-0003tB-Dd for pgsql-general@lists.postgresql.org; Thu, 02 Jul 2020 00:59:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0620xkEx817902; Wed, 1 Jul 2020 20:59:46 -0400 From: Tom Lane To: raf cc: pgsql-general@lists.postgresql.org, FOUTE =?iso-8859-1?B?Sy4gSmF1cuhz?= Subject: Re: PostgreSQL 12 - ERROR: could not rename file "pg_logical/snapshots/1A-7C00D890.snap.13594.tmp" to "pg_logical/snapshots/1A-7C00D890.snap": No space left on device In-reply-to: <20200702000622.ehwnezoyu2valp5t@raf.org> References: <20200630231141.aw5qix2l4tvufxau@raf.org> <20200702000622.ehwnezoyu2valp5t@raf.org> Comments: In-reply-to raf message dated "Thu, 02 Jul 2020 10:06:22 +1000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <817900.1593651586.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 01 Jul 2020 20:59:46 -0400 Message-ID: <817901.1593651586@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk raf writes: > FOUTE K. Jaurès wrote: >> The result of df -i >> >> Sys. de fichiers Inœuds IUtil. ILibre IUti% Monté sur >> udev 3065149 433 3064716 1% /dev >> tmpfs 3072780 665 3072115 1% /run >> /dev/sdb2 59973632 356029 59617603 1% / >> tmpfs 3072780 7 3072773 1% /dev/shm >> tmpfs 3072780 10 3072770 1% /run/lock >> tmpfs 3072780 17 3072763 1% /sys/fs/cgroup >> /dev/sdb1 0 0 0 - /boot/efi >> tmpfs 3072780 19 3072761 1% /run/user/108 >> tmpfs 3072780 5 3072775 1% /run/user/1001 >> tmpfs 3072780 5 3072775 1% /run/user/1000 > So that's not it. It would take ~60 million > files to fill up your / inode table. I can't > think of another explanation for that error > message if df without -i also shows free space. I'm going to take a shot in the dark and ask if the root file system is XFS. It doesn't take too much googling to find out that XFS has a reputation for reporting ENOSPC when there seems to be more than enough room left. Apparently, it can do so as a result of fragmentation problems even though the disk as a whole has lots of space --- for one cautionary example see this thread: https://www.spinics.net/lists/linux-xfs/msg22856.html typo-ishly titled "ENSOPC on a 10% used disk". It looks like the XFS crew installed a fix for the underlying bug ... but that thread is from 2018 and you're running a 2015 Ubuntu release. Or, to cut to the chase: maybe updating to a less hoary kernel would help. If you are stuck with this Ubuntu release for some reason, consider using a less bleeding-edge-at-the-time file system. regards, tom lane