* raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5)
@ 2015-04-26 15:20 Marc MERLIN
2015-04-26 15:32 ` Hugo Mills
0 siblings, 1 reply; 3+ messages in thread
From: Marc MERLIN @ 2015-04-26 15:20 UTC (permalink / raw)
To: linux-btrfs
This is the weirdest thing:
gargamel:/var/log# mount /dev/mapper/raid0d2 /mnt/btrfs_space
mount: wrong fs type, bad option, bad superblock on /dev/mapper/raid0d2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[ 835.718898] BTRFS info (device dm-5): disk space caching is enabled
[ 835.778580] BTRFS: failed to read the system array on dm-5
[ 835.819223] BTRFS: open_ctree failed
gargamel:/var/log# mount /dev/mapper/raid0d1 /mnt/btrfs_space
[ 847.047607] BTRFS: device label btrfs_space devid 1 transid 40929 /dev/mapper/raid0d1
[ 847.073955] BTRFS info (device dm-4): disk space caching is enabled
The previous boot, I had to mount raid0d2 because raid0d1 didn't work.
Label: 'btrfs_space' uuid: 01334b81-c0db-4e80-92e4-cac4da867651
Total devices 2 FS bytes used 401.54GiB
devid 1 size 836.13GiB used 295.02GiB path /dev/mapper/raid0d1
devid 2 size 836.13GiB used 295.01GiB path /dev/mapper/raid0d2
Data, RAID0: total=580.00GiB, used=398.22GiB
System, RAID1: total=8.00MiB, used=64.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, RAID1: total=5.00GiB, used=3.08GiB
Metadata, single: total=8.00MiB, used=0.00B
GlobalReserve, single: total=512.00MiB, used=0.00B
Those are 2 crypted disks which are already decrypted by the time I try
to mount them, I just don't understand why btrfs fails if I mount
one device but works with the other one, or the other way around.
Any idea what could be causing this?
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5)
2015-04-26 15:20 raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5) Marc MERLIN
@ 2015-04-26 15:32 ` Hugo Mills
2015-04-26 19:32 ` Marc MERLIN
0 siblings, 1 reply; 3+ messages in thread
From: Hugo Mills @ 2015-04-26 15:32 UTC (permalink / raw)
To: Marc MERLIN; +Cc: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 2392 bytes --]
On Sun, Apr 26, 2015 at 08:20:07AM -0700, Marc MERLIN wrote:
> This is the weirdest thing:
> gargamel:/var/log# mount /dev/mapper/raid0d2 /mnt/btrfs_space
> mount: wrong fs type, bad option, bad superblock on /dev/mapper/raid0d2,
> missing codepage or helper program, or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
> [ 835.718898] BTRFS info (device dm-5): disk space caching is enabled
> [ 835.778580] BTRFS: failed to read the system array on dm-5
> [ 835.819223] BTRFS: open_ctree failed
>
> gargamel:/var/log# mount /dev/mapper/raid0d1 /mnt/btrfs_space
> [ 847.047607] BTRFS: device label btrfs_space devid 1 transid 40929 /dev/mapper/raid0d1
> [ 847.073955] BTRFS info (device dm-4): disk space caching is enabled
>
> The previous boot, I had to mount raid0d2 because raid0d1 didn't work.
>
> Label: 'btrfs_space' uuid: 01334b81-c0db-4e80-92e4-cac4da867651
> Total devices 2 FS bytes used 401.54GiB
> devid 1 size 836.13GiB used 295.02GiB path /dev/mapper/raid0d1
> devid 2 size 836.13GiB used 295.01GiB path /dev/mapper/raid0d2
>
> Data, RAID0: total=580.00GiB, used=398.22GiB
> System, RAID1: total=8.00MiB, used=64.00KiB
> System, single: total=4.00MiB, used=0.00B
> Metadata, RAID1: total=5.00GiB, used=3.08GiB
> Metadata, single: total=8.00MiB, used=0.00B
> GlobalReserve, single: total=512.00MiB, used=0.00B
>
> Those are 2 crypted disks which are already decrypted by the time I try
> to mount them, I just don't understand why btrfs fails if I mount
> one device but works with the other one, or the other way around.
>
> Any idea what could be causing this?
The usual reason for this is that btrfs dev scan isn't being run
properly. It's usually handled by udev -- most distributions will put
the appropriate hooks in their udev configuration if you have the
distribution's btrfs-progs package installed. If you have only a
self-built btrfs-progs from git installed, then the udev hooks
probably aren't there, and you'll need to configure it yourself (or
arrange to have btrfs dev scan run after the cryptsetup open
operation).
Hugo.
--
Hugo Mills | You can't expect a boy to be vicious until he's gone
hugo@... carfax.org.uk | to a good school.
http://carfax.org.uk/ |
PGP: E2AB1DE4 | Saki
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5)
2015-04-26 15:32 ` Hugo Mills
@ 2015-04-26 19:32 ` Marc MERLIN
0 siblings, 0 replies; 3+ messages in thread
From: Marc MERLIN @ 2015-04-26 19:32 UTC (permalink / raw)
To: Hugo Mills, linux-btrfs
On Sun, Apr 26, 2015 at 03:32:26PM +0000, Hugo Mills wrote:
> The usual reason for this is that btrfs dev scan isn't being run
> properly. It's usually handled by udev -- most distributions will put
> the appropriate hooks in their udev configuration if you have the
> distribution's btrfs-progs package installed. If you have only a
> self-built btrfs-progs from git installed, then the udev hooks
> probably aren't there, and you'll need to configure it yourself (or
> arrange to have btrfs dev scan run after the cryptsetup open
> operation).
Ah, yes, that makes more sense.
I do have package and the rules:
gargamel:~# dpkg -L btrfs-tools
/.
/lib
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/80-btrfs-lvm.rules
/lib/udev/rules.d/70-btrfs.rules
But it's very possible that udev isn't working properly or timely on
this system.
I added "btrfs device scan" to /etc/init.d/cryptdisks
Thanks for the help.
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-26 19:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-26 15:20 raid0 needs mounting alternate device every boot? open_ctree failed (3.19.5) Marc MERLIN
2015-04-26 15:32 ` Hugo Mills
2015-04-26 19:32 ` Marc MERLIN
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).