From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Eric Levy <ericlevy@gmail.com>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: ERROR... please contact btrfs developers
Date: Mon, 5 Oct 2020 20:12:24 +0800 [thread overview]
Message-ID: <125dd8ae-a5d2-9694-af3f-504997e48338@gmx.com> (raw)
In-Reply-To: <CA++hEgx4d_-Y4Be7_fpDLTbCnN2-2yAecbyjJWSJuU-qSFvVuw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2385 bytes --]
On 2020/10/5 下午8:03, Eric Levy wrote:
> I have two pieces of good news.
>
> First, after the extents were repaired, a RO mount was sufficient to
> duplicate successfully the subvolumes on other media using the send
> and receive commands.
>
> Second, with respect to the further problem of the balance operation
> failing, I was able to synchronize the subvolumes by mounting with
> balancing disabled. The effect of this step was to gain 22GB of
> unallocated space. Balancing succeeded after I unmounted and then
> mounted normally.
Great!
>
> I then began a scrub operation, which completed successfully.
That ensures your data is all good.
Since your previous btrfs check ensures your metadata is also good, and
you freed enough unallocated space, your fs is officially very healthy now.
Really all good news.
>
> I am hopeful that we may consider this file system healthy, with no
> loss of data due to file system problems. Currently, all the evidence
> suggests as such.
>
> Needless to say, it would be very valuable to pursue improvements that
> reduce the chances of similar problems for users in the future.
Although I really doubt about the ENOSPC behavior, it looks like
something wrong with the space reserve code, and should not happen for
single device case, at least for latest kernel.
But since now you have enough free space, I guess we can't find out the
result anymore.
Thanks,
Qu
>
>
> On Mon, Oct 5, 2020 at 5:17 AM Qu Wenruo <quwenruo.btrfs@gmx.com> wrote:
>>
>>
>>
>> On 2020/10/5 下午5:05, Eric Levy wrote:
>>> The volume is not RAID, only a single NVMe card.
>>
>> Then this means, we may have a bigger problem.
>>
>> Normally btrfs space reservation keeps enough margin for critical
>> operations, thus it will return ENOSPC before we really go to do some
>> space consuming operations, thus no abort_transaction problem like yours.
>>
>> If it's single device, and still hit the case we need more space than we
>> have, either the space reservation or the space consumer,
>> btrfs_drop_snapshot(), has something wrong.
>>>
>>> I deleted all the files and subvolumes except what I need to recover.
>>
>> You may want to wait until btrfs really drops the subvolume/snapshot.
>>
>> The command is "btrfs subv sync <mount>". And then check if the usage drops.
>>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2020-10-05 12:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-30 1:44 ERROR... please contact btrfs developers Eric Levy
2020-09-30 2:03 ` Qu Wenruo
[not found] ` <CA++hEgyyn0Os1-w-WE8seXCrDJVosgLnfL1pU7e2p_LpqRmJ_Q@mail.gmail.com>
2020-10-05 2:38 ` Qu Wenruo
[not found] ` <CA++hEgwsLH=9-PCpkR4X2MEqSwwK6ZMhpb+YEB=ze-kOJ8cwaQ@mail.gmail.com>
2020-10-05 7:14 ` Qu Wenruo
[not found] ` <CA++hEgzbFsf6LgPb+XJbf-kkEYEy0cYAbaF=+m3pbEdSd+f62g@mail.gmail.com>
2020-10-05 8:51 ` Qu Wenruo
[not found] ` <CA++hEgwdYmfGFudNvkBR6zo3Ux01UFRwHN1WDd7csH5_jBZ0Rg@mail.gmail.com>
2020-10-05 9:17 ` Qu Wenruo
[not found] ` <CA++hEgx4d_-Y4Be7_fpDLTbCnN2-2yAecbyjJWSJuU-qSFvVuw@mail.gmail.com>
2020-10-05 12:12 ` Qu Wenruo [this message]
[not found] ` <CA++hEgzRkz+qQQf_+YBX2r5bBiNvtexiguPG99jBzVM6JhtPzg@mail.gmail.com>
2020-10-05 8:54 ` Qu Wenruo
2020-10-05 1:33 ` Eric Levy
2020-10-05 1:36 ` Qu Wenruo
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=125dd8ae-a5d2-9694-af3f-504997e48338@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=ericlevy@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).