linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: chainofflowers <chainofflowers@neuromante.net>,
	linux-btrfs@vger.kernel.org
Subject: Re: Access Beyond End of Device & Input/Output Errors
Date: Fri, 22 Jan 2021 08:49:23 +0800	[thread overview]
Message-ID: <3a374bca-2c0b-7c95-d471-3d88fc805b57@gmx.com> (raw)
In-Reply-To: <5494566e-ff98-9aa9-efa3-95db37509b88@neuromante.net>



On 2021/1/22 上午7:55, chainofflowers wrote:
> Hi Qu,
>
> it happened again. This time on my /home partition.
> I rebooted from an external disk and ran btrfs check without first going
> through btrfs scrub, and this is the output, no errors:
>
> ------------------------------------------
> [manjaro oc]# btrfs check /dev/mapper/OMO
> Opening filesystem to check…
> Checking filesystem on /dev/mapper/OMO
> UUID: 9362ac9d-c280-451d-9c8a-c09798e1c887
> [1/7] checking root items
> [2/7] checking extents
> [3/7] checking free space cache
> [4/7] checking fs roots
> [5/7] checking only csums items (without verifying data)
> [6/7] checking root refs
> [7/7] checking quota groups skipped (not enabled on this FS)
> found 137523740672 bytes used, no error found
> total csum bytes: 113842816
> total tree bytes: 1740537856
> total fs tree bytes: 1444249600
> total extent tree bytes: 143835136
> btree space waste bytes: 325744995
> file data blocks allocated: 210346024960
>   referenced 172314374144
> ------------------------------------------
>
> Then, I rebooted from my internal disk, everything went well. I ran
> btrfs scrub and also got no errors.

So far so good.

>
> I have dumped the messages from journalctl, and the debug ones related
> to btrfs were only the ones from btrfs_trim_block_group - so, the issue
> is related to free space extents I guess?

Unfortunately, without the crash output, it can be anything.

>
> I have attached the logs.
> You can see that the last line:
>
> ------------------------------------------
> Jan 21 23:57:25 <***> kernel: btrfs_trim_block_group: enter bg
> start=26864517120 start=26864517120 end=27938258944 minlen=512
> ------------------------------------------
>
> does not have a second matching line with "ret=0", because the kernel
> stopped storing messages in the log. So, I guess the issue occurred
> while btrfs_trim_block_group was working on 26864517120..27938258944.

If you have some machine running 24x7, like a RPi, I would recommend to
setup netconsole to catch the full dying message to be extra safe.

Or setup kdump, to catch the dying message.

Personally speaking, netconsole would be much easier to setup though.

Currently with truncated journal it's really hard to say.

Thanks,
Qu
>
> Unfortunately I did not dump the output of dmesg directly in that
> moment, so all I could get is what was available in the journal after
> the reboot.
>
> In the log you can also see that some time before BTRFS detected that
> the space cache for dm-3 needed to be rebuilt:
> ------------------------------------------
> Jan 21 19:29:17 <***> kernel: BTRFS warning (device dm-3): block group
> 82699091968 has wrong amount of free space
> Jan 21 19:29:17 <***> kernel: BTRFS warning (device dm-3): failed to
> load free space cache for block group 82699091968, rebuilding it now
> ------------------------------------------
>
> Any hint about what I could do now?
>
> Thanks! :-)
>
>
>
> (c)
>

  reply	other threads:[~2021-01-22  0:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-17 23:38 Access Beyond End of Device & Input/Output Errors chainofflowers
2021-01-18  0:11 ` Qu Wenruo
2021-01-18 21:07   ` chainofflowers
2021-01-21 23:55     ` chainofflowers
2021-01-22  0:49       ` Qu Wenruo [this message]
2021-02-08 21:05         ` chainofflowers
2021-02-20 11:26           ` chainofflowers
2021-02-20 11:42             ` Qu Wenruo
2021-02-20 11:46           ` Forza
2021-02-20 12:07             ` chainofflowers
2021-02-20 12:13               ` Qu Wenruo
2021-04-23 23:36                 ` chainofflowers
2021-04-24  0:25                   ` Qu Wenruo
2021-04-24 14:13                     ` chainofflowers
2021-04-24 22:56                       ` Qu Wenruo
  -- strict thread matches above, loose matches on Subject: below --
2020-08-01  6:51 Justin Brown
2020-08-01  6:58 ` Qu Wenruo
2020-08-01  7:02   ` Qu Wenruo
     [not found]     ` <CAKZK7uzmg19NDjGPPAxXKu7LJ-7ZdHu2cad22csj_chr2qxMJg@mail.gmail.com>
2020-08-01  9:31       ` Qu Wenruo
2020-08-01 11:56         ` Justin Brown
2020-08-01 23:30           ` Qu Wenruo
2020-09-06  1:42             ` Justin Brown

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=3a374bca-2c0b-7c95-d471-3d88fc805b57@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=chainofflowers@neuromante.net \
    --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).