From: Calvin Walton <calvin.walton@gmail.com>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: Jens Axboe <jens.axboe@oracle.com>, linux-btrfs@vger.kernel.org
Subject: Re: can't mount RAID-1 btrfs after reboot
Date: Mon, 31 Aug 2009 01:21:44 -0400 [thread overview]
Message-ID: <1251696114.5925.2.camel@ayu> (raw)
In-Reply-To: <4A9B06BA.7060701@wpkg.org>
On Mon, 2009-08-31 at 01:09 +0200, Tomasz Chmielewski wrote:
> Jens Axboe wrote:
>
> >> I'm able to mount the filesystem by using /dev/sdb4:
> >>
> >> # mount /dev/sdb4 /mnt/btrfs/
> >>
> >> After which I can unmount it, and use /dev/sda4 to mount the filesystem:
> >>
> >> # umount /dev/sdb4
> >> # mount /dev/sda4 /mnt/btrfs/
> >
> > Try btrfsctl -a first.
>
> It seems to do the trick.
>
> I suppose longer term, doing "btrfsctl -a" before mounting a (RAID)
> btrfs filesystem shouldn't be needed, or?
Shorter term, writing a udev rule along the lines of
ENV{ID_FS_TYPE}=="btrfs", RUN+="/sbin/btrfsctl -A %N"
(put it in /etc/udev/rules.d/64-btrfs-scan.rules or so) will cause your
btrfs to be scanned when found. Possibly something like this could be
distributed with btrfsprogs?
--
Calvin Walton <calvin.walton@gmail.com>
prev parent reply other threads:[~2009-08-31 5:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-14 9:34 can't mount RAID-1 btrfs after reboot Tomasz Chmielewski
2009-08-14 10:41 ` Jens Axboe
2009-08-30 23:09 ` Tomasz Chmielewski
2009-08-31 5:21 ` Calvin Walton [this message]
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=1251696114.5925.2.camel@ayu \
--to=calvin.walton@gmail.com \
--cc=jens.axboe@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=mangoo@wpkg.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