All of lore.kernel.org
 help / color / mirror / Atom feed
* [HELP] open_ctree failed when mounting RAID1
@ 2022-05-31 19:50 Lucas Rückert
  2022-05-31 19:59 ` Roman Mamedov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lucas Rückert @ 2022-05-31 19:50 UTC (permalink / raw)
  To: linux-btrfs

Hi,

i run two HHD's(sda;sdb) in RAID1.

Kernel: 4.9

Distro: Linux odroid 4.9.277-83 #1 SMP PREEMPT Mon Feb 28 15:16:26 UTC
2022 aarch64 aarch64 aarch64 GNU/Linux

btrfs-progs: 5.4.1

I created the filesystem with:

mkfs.btrfs -d raid1 -m raid1 -L somelable -f /dev/sda /dev/sdb


And added it to my fstab:

UUID=<uuid>        /mnt/somefolder     btrfs compress=zstd   0       2


When running:

mount -a

i get an error:

mount: /mnt/backup: wrong fs type, bad option, bad superblock on
/dev/sda, missing codepage or helper program, or other error.


and dmesg reports:

BTRFS error (device sdb): open_ctree failed



Yours sincerely

Lucas


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [HELP] open_ctree failed when mounting RAID1
  2022-05-31 19:50 [HELP] open_ctree failed when mounting RAID1 Lucas Rückert
@ 2022-05-31 19:59 ` Roman Mamedov
  2022-06-02 12:49 ` Jussi Kansanen
  2022-06-06 11:19 ` David Sterba
  2 siblings, 0 replies; 6+ messages in thread
From: Roman Mamedov @ 2022-05-31 19:59 UTC (permalink / raw)
  To: Lucas Rückert; +Cc: linux-btrfs

On Tue, 31 May 2022 21:50:52 +0200
Lucas Rückert <lucas.rueckert@gmx.de> wrote:

> and dmesg reports:
> 
> BTRFS error (device sdb): open_ctree failed

This in itself is a generic error which doesn't give reasons or details.

dmesg should have reported more than that, could you post all messages that
happened right after after the "mount" command?

-- 
With respect,
Roman

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [HELP] open_ctree failed when mounting RAID1
  2022-05-31 19:50 [HELP] open_ctree failed when mounting RAID1 Lucas Rückert
  2022-05-31 19:59 ` Roman Mamedov
@ 2022-06-02 12:49 ` Jussi Kansanen
  2022-06-02 14:33   ` Lucas Rückert
  2022-06-06 11:19 ` David Sterba
  2 siblings, 1 reply; 6+ messages in thread
From: Jussi Kansanen @ 2022-06-02 12:49 UTC (permalink / raw)
  To: Lucas Rückert; +Cc: linux-btrfs

On 5/31/22 22:50, Lucas Rückert wrote:
> Hi,
> 
> i run two HHD's(sda;sdb) in RAID1.
> 
> Kernel: 4.9
> 
> Distro: Linux odroid 4.9.277-83 #1 SMP PREEMPT Mon Feb 28 15:16:26 UTC
> 2022 aarch64 aarch64 aarch64 GNU/Linux
> 
> btrfs-progs: 5.4.1
> 
> I created the filesystem with:
> 
> mkfs.btrfs -d raid1 -m raid1 -L somelable -f /dev/sda /dev/sdb
> 
> 
> And added it to my fstab:
> 
> UUID=<uuid>        /mnt/somefolder     btrfs compress=zstd   0       2
> 
> 
> When running:
> 
> mount -a
> 
> i get an error:
> 
> mount: /mnt/backup: wrong fs type, bad option, bad superblock on
> /dev/sda, missing codepage or helper program, or other error.
> 
> 
> and dmesg reports:
> 
> BTRFS error (device sdb): open_ctree failed
> 
> 
> 
> Yours sincerely
> 
> Lucas
> 

Hi Lucas,

Invalid mount options can be reported as "BTRFS error (device sdb): open_ctree 
failed". The reason for the error is that your kernel version doesn't support 
zstd. 4.14 kernel added support for zstd or 5.1 if you want to set zstd 
compression levels by mount option.

-Jussi Kansanen

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [HELP] open_ctree failed when mounting RAID1
  2022-06-02 12:49 ` Jussi Kansanen
@ 2022-06-02 14:33   ` Lucas Rückert
  0 siblings, 0 replies; 6+ messages in thread
From: Lucas Rückert @ 2022-06-02 14:33 UTC (permalink / raw)
  To: Jussi Kansanen; +Cc: linux-btrfs



On 02.06.22 2:49 PM, Jussi Kansanen wrote:
> On 5/31/22 22:50, Lucas Rückert wrote:
>> Hi,
>>
>> i run two HHD's(sda;sdb) in RAID1.
>>
>> Kernel: 4.9
>>
>> Distro: Linux odroid 4.9.277-83 #1 SMP PREEMPT Mon Feb 28 15:16:26 UTC
>> 2022 aarch64 aarch64 aarch64 GNU/Linux
>>
>> btrfs-progs: 5.4.1
>>
>> I created the filesystem with:
>>
>> mkfs.btrfs -d raid1 -m raid1 -L somelable -f /dev/sda /dev/sdb
>>
>>
>> And added it to my fstab:
>>
>> UUID=<uuid>        /mnt/somefolder     btrfs compress=zstd   0       2
>>
>>
>> When running:
>>
>> mount -a
>>
>> i get an error:
>>
>> mount: /mnt/backup: wrong fs type, bad option, bad superblock on
>> /dev/sda, missing codepage or helper program, or other error.
>>
>>
>> and dmesg reports:
>>
>> BTRFS error (device sdb): open_ctree failed
>>
>>
>>
>> Yours sincerely
>>
>> Lucas
>>
>
> Hi Lucas,
>
> Invalid mount options can be reported as "BTRFS error (device sdb):
> open_ctree failed". The reason for the error is that your kernel version
> doesn't support zstd. 4.14 kernel added support for zstd or 5.1 if you
> want to set zstd compression levels by mount option.
>
> -Jussi Kansanen

Thanks Jussi this fixed it.

Lucas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [HELP] open_ctree failed when mounting RAID1
  2022-05-31 19:50 [HELP] open_ctree failed when mounting RAID1 Lucas Rückert
  2022-05-31 19:59 ` Roman Mamedov
  2022-06-02 12:49 ` Jussi Kansanen
@ 2022-06-06 11:19 ` David Sterba
  2 siblings, 0 replies; 6+ messages in thread
From: David Sterba @ 2022-06-06 11:19 UTC (permalink / raw)
  To: Lucas Rückert; +Cc: linux-btrfs

On Tue, May 31, 2022 at 09:50:52PM +0200, Lucas Rückert wrote:
> Hi,
> 
> i run two HHD's(sda;sdb) in RAID1.
> 
> Kernel: 4.9
> 
> Distro: Linux odroid 4.9.277-83 #1 SMP PREEMPT Mon Feb 28 15:16:26 UTC
> 2022 aarch64 aarch64 aarch64 GNU/Linux
> 
> btrfs-progs: 5.4.1
> 
> I created the filesystem with:
> 
> mkfs.btrfs -d raid1 -m raid1 -L somelable -f /dev/sda /dev/sdb
> 
> 
> And added it to my fstab:
> 
> UUID=<uuid>        /mnt/somefolder     btrfs compress=zstd   0       2
> 
> 
> When running:
> 
> mount -a
> 
> i get an error:
> 
> mount: /mnt/backup: wrong fs type, bad option, bad superblock on
> /dev/sda, missing codepage or helper program, or other error.
> 
> 
> and dmesg reports:
> 
> BTRFS error (device sdb): open_ctree failed

I got pointed to this report. First I suspected that there are some
lines missing from the dmesg log, like what was the error but it turns
out that almost all invalid option values lack any message, which makes
the error analysis hard. Thanks for your report, I've sent a patch that
adds the missing messages, there's a lot of them.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [HELP] open_ctree failed when mounting RAID1
       [not found] <7dd23222-1f85-2313-b708-fe00b1349799@gmx.de>
@ 2022-05-31 20:05 ` Lucas Rückert
  0 siblings, 0 replies; 6+ messages in thread
From: Lucas Rückert @ 2022-05-31 20:05 UTC (permalink / raw)
  To: linux-btrfs




On 31.05.22 9:59 PM, Roman Mamedov wrote:
> On Tue, 31 May 2022 21:50:52 +0200
> Lucas Rückert <lucas.rueckert@gmx.de> wrote:
>
>> and dmesg reports:
>>
>> BTRFS error (device sdb): open_ctree failed
>
> This in itself is a generic error which doesn't give reasons or details.
>
> dmesg should have reported more than that, could you post all messages that
> happened right after after the "mount" command?
>

This is the problem the only thing in dmesg after mount -a is:
[ 7592.168838] BTRFS error (device sdb): open_ctree failed

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-06 11:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 19:50 [HELP] open_ctree failed when mounting RAID1 Lucas Rückert
2022-05-31 19:59 ` Roman Mamedov
2022-06-02 12:49 ` Jussi Kansanen
2022-06-02 14:33   ` Lucas Rückert
2022-06-06 11:19 ` David Sterba
     [not found] <7dd23222-1f85-2313-b708-fe00b1349799@gmx.de>
2022-05-31 20:05 ` Lucas Rückert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.