public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Levy <contact@ericlevy.name>
To: Anand Jain <anand.jain@oracle.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: RAID mount fails after upgrading to kernel 6.2.0
Date: Wed, 19 Jul 2023 22:50:48 -0400	[thread overview]
Message-ID: <OKQ2YR.1O44EDSAXJ853@ericlevy.name> (raw)
In-Reply-To: <b3517b3c-f966-53fe-3c70-8fa787755672@oracle.com>



On Thu, Jul 20 2023 at 10:26:57 AM +0800, Anand Jain 
<anand.jain@oracle.com> wrote:
> On 20/07/2023 09:13, Eric Levy wrote:
>> I recently performed a routine update on a Linux Mint system, 
>> version \x7f21.2 (Victoria). The update moved the kernel from 5.19.0 to 
>> 6.2.0. The \x7fsystem includes a non-root mount that is Btrfs with 
>> RAID, which no \x7flonger mounts. Error reporting is rather limited and 
>> opaque.
>> 
>> I am assuming the file system is healthy from the standpoint of the 
>> old \x7fkernel, but I may need help understanding how to make it viable 
>> for the \x7fnew one.
>> 
>> Mounting from the command line prints the following:
>> 
>> mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdg, 
>> \x7fmissing codepage or helper program, or other error.
>> 
>> The following is extracted from the boot sequence recorded in the 
>> kernel \x7fring:
>> 
>> kernel: BTRFS error: device /dev/sdd belongs to fsid 
>> \x7fc6f83d24-1ac3-4417-bdd9-6249c899604d, and the fs is already mounted
>> kernel: BTRFS error: device /dev/sdf belongs to fsid 
>> \x7fc6f83d24-1ac3-4417-bdd9-6249c899604d, and the fs is already mounted
>> kernel: BTRFS info (device sde): using crc32c (crc32c-intel) 
>> checksum \x7falgorithm
>> kernel: BTRFS info (device sde): turning on async discard
>> kernel: BTRFS info (device sde): disk space caching is enabled
>> kernel: BTRFS error (device sde): devid 7 uuid 
>> \x7f2f62547b-067f-433c-bec1-b90e0c8cb75e is missing
>> kernel: BTRFS error (device sde): failed to read the system array: -2
>> kernel: BTRFS error (device sde): open_ctree failed
>> mount[969]: mount: /mnt: wrong fs type, bad option, bad superblock 
>> on \x7f/dev/sde, missing codepage or helper program, or other error.
>> systemd[1]: mnt.mount: Mount process exited, code=exited, 
>> status=32/n/a
> 
> 
> Looks like the fsid is already mounted. Could you please help check?
> 
>     cat /proc/self/mounts | grep btrfs
> 
> You could try a fresh scan and mount.
> 
>     umount  ..
>     btrfs device scan
>     mount ...
> 
> If this doesn't help. Can you share the output of:
> 
>     btrfs filesystem dump-super /dev/sd[a-g]  <-- basically all 
> devices
> 
> Thanks.


The unmount command followed by rescan does enable a successful mount, 
but the suggestion that the volume was mounted already had not been 
validated by the dump of the mount table. Based on the mount table, the 
volume appeared as unmounted even before the command.

Do you have any suggestions for how to resolve why the volume would be 
registered as having been mounted?





  reply	other threads:[~2023-07-20  2:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-20  1:13 RAID mount fails after upgrading to kernel 6.2.0 Eric Levy
2023-07-20  2:26 ` Anand Jain
2023-07-20  2:50   ` Eric Levy [this message]
2023-07-20  5:48     ` Anand Jain
2023-07-20 20:10       ` Eric Levy
2023-07-21  4:49         ` Anand Jain
2023-07-21  5:31           ` Eric Levy
2023-07-22 10:59             ` Anand Jain
2023-07-21  8:02         ` Forza

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=OKQ2YR.1O44EDSAXJ853@ericlevy.name \
    --to=contact@ericlevy.name \
    --cc=anand.jain@oracle.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