pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #12856: No space left on device, but there is space!
4+ messages / 4 participants
[nested] [flat]
* BUG #12856: No space left on device, but there is space!
@ 2015-03-12 10:43 agroszer@gmail.com
0 siblings, 2 replies; 4+ messages in thread
From: agroszer@gmail.com @ 2015-03-12 10:43 UTC (permalink / raw)
To: pgsql-bugs
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #12856: No space left on device, but there is space!
@ 2015-03-12 14:32 Skylar Thompson <skylar2@u.washington.edu>
parent: agroszer@gmail.com
1 sibling, 1 reply; 4+ messages in thread
From: Skylar Thompson @ 2015-03-12 14:32 UTC (permalink / raw)
To: agroszer@gmail.com; +Cc: pgsql-bugs
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
--
-- Skylar Thompson (skylar2@u.washington.edu)
-- Genome Sciences Department, System Administrator
-- Foege Building S046, (206)-685-7354
-- University of Washington School of Medicine
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #12856: No space left on device, but there is space!
@ 2015-03-12 19:11 John R Pierce <pierce@hogranch.com>
parent: agroszer@gmail.com
1 sibling, 0 replies; 4+ messages in thread
From: John R Pierce @ 2015-03-12 19:11 UTC (permalink / raw)
To: pgsql-bugs
On 3/12/2015 3:43 AM, agroszer@gmail.com wrote:
> Weird is that 'df' shows over 60G free space on the mount and the tests
> definitely won't use that much space.
how large is the total file system, and does it have 'reserved space'
? if its a multi-terabyte file system, 60GB reserved wouldn't be out
of the question (thats 2% of 3TB)
--
john r pierce 37N 122W
somewhere on the middle of the left coast
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #12856: No space left on device, but there is space!
@ 2015-03-13 08:31 Adam GROSZER <agroszer@gmail.com>
parent: Skylar Thompson <skylar2@u.washington.edu>
0 siblings, 0 replies; 4+ messages in thread
From: Adam GROSZER @ 2015-03-13 08:31 UTC (permalink / raw)
To: Skylar Thompson <skylar2@u.washington.edu>; +Cc: pgsql-bugs
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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-03-13 08:31 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12 10:43 BUG #12856: No space left on device, but there is space! agroszer@gmail.com
2015-03-12 14:32 ` Skylar Thompson <skylar2@u.washington.edu>
2015-03-13 08:31 ` Adam GROSZER <agroszer@gmail.com>
2015-03-12 19:11 ` John R Pierce <pierce@hogranch.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox