From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Ian Kumlien <ian.kumlien@gmail.com>, Roman Mamedov <rm@romanrm.net>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: [4.14.3] btrfs out of space error
Date: Fri, 15 Dec 2017 16:53:01 +0800 [thread overview]
Message-ID: <88ff9cce-fa9b-ef4e-e1ea-062e13eec833@gmx.com> (raw)
In-Reply-To: <CAA85sZsEf7T+9s_BKpzoFm4aNO6hHsXNTk86LQCOiFiuA3aJYw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3202 bytes --]
On 2017年12月15日 16:36, Ian Kumlien wrote:
> On Fri, Dec 15, 2017 at 6:34 AM, Roman Mamedov <rm@romanrm.net> wrote:
>> On Fri, 15 Dec 2017 01:39:03 +0100
>> Ian Kumlien <ian.kumlien@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Running a 4.14.3 kernel, this just happened, but there should have
>>> been another 20 gigs or so available.
>>>
>>> The filesystem seems fine after a reboot though
>>
>> What are your mount options, and can you show the output of "btrfs fi
>> df" and "btrfs fi us" for the filesystem? And what does
>> "cat /sys/block/sdb/queue/rotational" return.
>
> It's a btrfs raid1 mirror of two ssd:s
>
> mount options was:
> defaults,acl,noatime,space_cache,autodefrag,compress=lzo
>
> btrfs fi df /
> Data, RAID1: total=459.25GiB, used=372.42GiB
> Data, single: total=8.00MiB, used=0.00B
> System, RAID1: total=8.00MiB, used=80.00KiB
> System, single: total=4.00MiB, used=0.00B
> Metadata, RAID1: total=6.00GiB, used=3.69GiB
Both meta and data has a lot of space let.
> Metadata, single: total=8.00MiB, used=0.00B
> GlobalReserve, single: total=512.00MiB, used=0.00B
>
> btrfs fi us /
> Overall:
> Device size: 930.54GiB
> Device allocated: 930.53GiB
> Device unallocated: 20.05MiB
> Device missing: 0.00B
> Used: 752.22GiB
> Free (estimated): 86.84GiB (min: 86.84GiB)
> Data ratio: 2.00
> Metadata ratio: 2.00
> Global reserve: 512.00MiB (used: 0.00B)
>
> Data,single: Size:8.00MiB, Used:0.00B
> /dev/sdb2 8.00MiB
>
> Data,RAID1: Size:459.25GiB, Used:372.42GiB
> /dev/sdb2 459.25GiB
> /dev/sdc2 459.25GiB
>
> Metadata,single: Size:8.00MiB, Used:0.00B
> /dev/sdb2 8.00MiB
>
> Metadata,RAID1: Size:6.00GiB, Used:3.69GiB
> /dev/sdb2 6.00GiB
> /dev/sdc2 6.00GiB
>
> System,single: Size:4.00MiB, Used:0.00B
> /dev/sdb2 4.00MiB
>
> System,RAID1: Size:8.00MiB, Used:80.00KiB
> /dev/sdb2 8.00MiB
> /dev/sdc2 8.00MiB
>
> Unallocated:
> /dev/sdb2 24.00KiB
> /dev/sdc2 20.02MiB
Well, at least no new chunk can be allocated.
In v4.15, Josef introduced a new inode reservation system, which I think
it would enhance metadata related reservation.
If you're hitting the problem quite frequently, please consider to try
v4.15-rc* to see if it solves the problem.
Despite of that, there should be no damage to your fs.
(except some unwritten data in buffer)
Thanks,
Qu
>
> And as expected:
> cat /sys/block/sdb/queue/rotational
> 0
>
>> I wonder if it's the same old "ssd allocation scheme" problem, and no
>> balancing done in a long time or at all.
>
> I had something similar happen on a laptop a while ago - took a while
> before i could get it back in order
> (in that case i think it was actually a oops --- it kept saying "no
> space left" and switched to read only even
> if you removed a lot of data, invalidated the space cache and so on)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]
next prev parent reply other threads:[~2017-12-15 8:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-15 0:39 [4.14.3] btrfs out of space error Ian Kumlien
2017-12-15 4:01 ` Chris Murphy
2017-12-16 10:05 ` Ian Kumlien
2017-12-15 5:34 ` Roman Mamedov
2017-12-15 8:36 ` Ian Kumlien
2017-12-15 8:53 ` Qu Wenruo [this message]
2017-12-15 23:07 ` Hans van Kranenburg
2017-12-16 10:20 ` Ian Kumlien
2017-12-16 10:11 ` Ian Kumlien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=88ff9cce-fa9b-ef4e-e1ea-062e13eec833@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=ian.kumlien@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=rm@romanrm.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox