Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
To: HAN Yuwei <hrx@bupt.moe>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Cc: Naohiro Aota <Naohiro.Aota@wdc.com>
Subject: Re: [BUG] unable to mount zoned volume after force shutdown
Date: Mon, 10 Jun 2024 08:53:40 +0000	[thread overview]
Message-ID: <ab92f3bd-c1ca-496f-bcf7-d806459d9ce7@wdc.com> (raw)
In-Reply-To: <CD222A40B0129641+992beaf5-2aa9-4ad4-bb3f-ee915393bab1@bupt.moe>

On 09.06.24 04:24, HAN Yuwei wrote:
> 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
> [ 2026.304576] BTRFS error (device sdb): failed to read block groups: -5
> [ 2026.352547] BTRFS error (device sdb): open_ctree failed
> 

Can you check the write pointers for the zones mapping to this block group?

that should be
blkzone report -c 1 -o 0x274A00000 /dev/sdb
and for the other device as well

Thanks,
	Johannes

  parent reply	other threads:[~2024-06-10  8:53 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
2024-06-10  8:53 ` Johannes Thumshirn [this message]
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=ab92f3bd-c1ca-496f-bcf7-d806459d9ce7@wdc.com \
    --to=johannes.thumshirn@wdc.com \
    --cc=Naohiro.Aota@wdc.com \
    --cc=hrx@bupt.moe \
    --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