Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YXsKA-0006hq-Ut for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Mar 2015 14:18:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YXsKA-0004i7-1W for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Mar 2015 14:18:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YWL0N-0006NH-6l for pgsql-bugs@postgresql.org; Fri, 13 Mar 2015 08:31:39 +0000 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YWL0J-0006B3-BZ for pgsql-bugs@postgresql.org; Fri, 13 Mar 2015 08:31:37 +0000 Received: by widex7 with SMTP id ex7so4139298wid.3 for ; Fri, 13 Mar 2015 01:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=6LNf7OCwTlKnijXGypvMjCCC6JJPEJWvqyIRNaFBPiI=; b=eiU2OVynRqX09mkNOKFArXzHoNn99EVrDkH6jXcIFUKVRS5wF8hglnciyFsBvsZN9O 3ABDe8RKRHq5w2M3t4IBpWgh9FYjEBR1OHsnwNjuYRb/2JOf41Fd/i9Z2RTXZX1wEW72 dLJ2psl18fPMhONtC8/W4voAe24LWl1kyxK+jYx7Dp6eu2iAFzZuz031pIa07k+kRu69 LOR7fZdlkM8GB3K+7hoXyXnD8XuPSp/SQTeLOlLs/kAaboJDZ8DxDpKW/QnpLKeu5c0q 6wQPr5I82WkUJc7arrpTo1UNZuGjCs0IpeJd8Lg8VZtc1XvtcibO2NaSqopU02OPJtmD 5a5A== X-Received: by 10.181.8.103 with SMTP id dj7mr94749075wid.75.1426235492611; Fri, 13 Mar 2015 01:31:32 -0700 (PDT) Received: from [192.168.1.247] (catv-78-139-40-20.catv.broadband.hu. [78.139.40.20]) by mx.google.com with ESMTPSA id vv9sm1780113wjc.35.2015.03.13.01.31.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 01:31:31 -0700 (PDT) Message-ID: <5502A062.5080808@gmail.com> Date: Fri, 13 Mar 2015 09:31:30 +0100 From: Adam GROSZER User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Skylar Thompson CC: pgsql-bugs@postgresql.org Subject: Re: BUG #12856: No space left on device, but there is space! References: <20150312104309.4035.91275@wrigleys.postgresql.org> <20150312143209.GB82039@utumno.gs.washington.edu> In-Reply-To: <20150312143209.GB82039@utumno.gs.washington.edu> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, Thanks for the pointers, sorry for the noise. Turns out I have btrfs and it's not a good idea to run a DB with COW enabled. FTR: before: $ sudo btrfs filesystem df /cuccos Data, single: total=163.61GiB, used=97.18GiB System, DUP: total=8.00MiB, used=24.00KiB System, single: total=4.00MiB, used=0.00 Metadata, DUP: total=2.00GiB, used=1.48GiB Metadata, single: total=8.00MiB, used=0.00 issued: $ sudo btrfs fi balance /cuccos after: $ sudo btrfs fi df /cuccos Data, single: total=98.00GiB, used=97.11GiB System, DUP: total=32.00MiB, used=20.00KiB Metadata, DUP: total=2.30GiB, used=1.46GiB It's a good idea to turn of COW for the folder where the DBs get stored, see: https://wiki.archlinux.org/index.php/Btrfs#Copy-On-Write_.28CoW.29 On 03/12/2015 03:32 PM, Skylar Thompson wrote: > Hi Adam, > > You might check whether you've exhausted the inodes on that filesystem with > "df -i". That will also return ENOSPC. > > On Thu, Mar 12, 2015 at 10:43:09AM +0000, agroszer@gmail.com wrote: >> The following bug has been logged on the website: >> >> Bug reference: 12856 >> Logged by: Adam Groszer >> Email address: agroszer@gmail.com >> PostgreSQL version: 9.4.1 >> Operating system: ubuntu 14.04 >> Description: >> >> After our tests create a lot of DBs, around 50-100, I get this exception: >> >> psycopg2.OperationalError: could not create file "base/24468164/24468205": >> No space left on device >> >> Weird is that 'df' shows over 60G free space on the mount and the tests >> definitely won't use that much space. >> >> After removing most of the DBs everything is back to normal, till DBs start >> to pile up again. >> >> What to check to help debugging this? >> >> thanks, >> Adam >> >> >> -- >> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-bugs > -- Best regards, Adam GROSZER -- Quote of the day: Character is much easier kept than recovered. - Thomas Paine -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs