From: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>, HAN Yuwei <hrx@bupt.moe>,
"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>,
Naohiro Aota <Naohiro.Aota@wdc.com>
Subject: Re: [BUG] unable to mount zoned volume after force shutdown
Date: Mon, 10 Jun 2024 08:47:10 +0000 [thread overview]
Message-ID: <916d8fcd-138a-4fb8-bb0f-196c72f2309f@wdc.com> (raw)
In-Reply-To: <d32e99bd-e83e-4449-a8f9-8eeefb813400@gmx.com>
On 09.06.24 12:33, Qu Wenruo wrote:
>
>
> 在 2024/6/9 11:53, HAN Yuwei 写道:
>> I can't mount volume on multiple zoned device which data profile is
>> single & metadata profile is raid1.
>> It experienced multiple forced shutdown due to kernel 6.10 can't
>> properly shutdown on loongarch.
>>
>> # dmesg
>>
>> [ 1963.698793] BTRFS info (device sdb): first mount of filesystem
>> b5b2d7d9-9f27-4907-a558-77e8e86df933
>> [ 1963.707801] BTRFS info (device sdb): using crc32c (crc32c-generic)
>> checksum algorithm
>> [ 1963.715597] BTRFS info (device sdb): using free-space-tree
>> [ 1965.492066] BTRFS info (device sdb): host-managed zoned block device
>> /dev/sdb, 52156 zones of 268435456 bytes
>> [ 1966.953590] BTRFS info (device sdb): host-managed zoned block device
>> /dev/sdc, 52156 zones of 268435456 bytes
>> [ 1967.346758] BTRFS info (device sdb): zoned mode enabled with zone
>> size 268435456
>> [ 2026.287356] BTRFS error (device sdb): zoned: write pointer offset
>> mismatch of zones in raid1 profile
>> [ 2026.296445] BTRFS error (device sdb): zoned: failed to load zone info
>> of bg 5399847632896
>
> My guess is, due to the forced shutdown, btrfs' writer pointer is later
> than the zone write pointer.
>
> IMHO, we should not error out but mark this zone as read-only and let
> balance to kick in.
>
> @Johannes and @naohiro, mind to enhance the error handling there?
That's definitely a possibility we need to look into yes.
next prev parent reply other threads:[~2024-06-10 8:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-09 2:23 [BUG] unable to mount zoned volume after force shutdown HAN Yuwei
2024-06-09 10:33 ` Qu Wenruo
2024-06-10 8:47 ` Johannes Thumshirn [this message]
2024-06-10 8:53 ` Johannes Thumshirn
2024-06-10 12:47 ` HAN Yuwei
2024-06-10 14:13 ` Naohiro Aota
2024-06-11 6:48 ` HAN Yuwei
2024-08-11 6:19 ` Yuwei Han
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=916d8fcd-138a-4fb8-bb0f-196c72f2309f@wdc.com \
--to=johannes.thumshirn@wdc.com \
--cc=Naohiro.Aota@wdc.com \
--cc=hrx@bupt.moe \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.com \
/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