All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Groth <cwg@falma.de>
To: linux-btrfs@vger.kernel.org
Subject: "Invalid argument" when mounting a btrfs raid1 filesystem
Date: Sat, 24 Mar 2012 18:40:27 +0100	[thread overview]
Message-ID: <87vclt99tg.fsf@falma.de> (raw)

Hello,

I'm trying to install current Debian testing (=kernel version 3.2) with
btrfs as the root file system.  There is also a small ext3 /boot
partition.

I create a btrfs raid1 file system with the command

mkfs.btrfs -d raid1 /dev/sda2 /dev/sdb2

Then I can mount it and finish the installation successfully.  Booting
doesn't work, however: initrd complains that it cannot mount /dev/sda2:
"Invalid argument".

The funny thing is, that in the initrd console I can mount /dev/sdb2!
So I changed the kernel parameter in grub.cfg to mount /dev/sdb2
instead, but the problem persists: Now I can mount /dev/sda2 in the
initrd console!

In fact, when I boot a rescue system from a thumbdrive, the same thing
happens:

# mount -t btrfs /dev/sda2 /mnt
mount: mounting /dev/sda2 on /mnt failed: Invalid argument
# mount -t btrfs /dev/sdb2 /mnt
#

When I keep trying to mount the same device, it keeps failing.  When I
start mounting /dev/sdb2, it works for /dev/sda2...

Isn't this very weird?  Any ideas?

thanks,
Christoph


             reply	other threads:[~2012-03-24 17:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-24 17:40 Christoph Groth [this message]
2012-03-24 18:16 ` "Invalid argument" when mounting a btrfs raid1 filesystem Sander
2012-03-24 18:21 ` Hugo Mills
2012-03-24 18:58   ` Alex
2012-03-24 22:26     ` Christoph Groth
2012-03-26  8:51   ` Karel Zak
2012-03-26 15:00     ` Calvin Walton
2012-04-09 11:58       ` Martin Steigerwald

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=87vclt99tg.fsf@falma.de \
    --to=cwg@falma.de \
    --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 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.