From: Josef Bacik <josef@redhat.com>
To: "krzf83@gmail.com" <krzf83@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: raid1
Date: Mon, 11 Jul 2011 20:38:40 -0400 [thread overview]
Message-ID: <4E1B9790.3050002@redhat.com> (raw)
In-Reply-To: <CAJ1PRSkz86G+4XfDMp1fq8f7ar5LOPux06FJTQ4WxhkT1Bu6vQ@mail.gmail.com>
On 07/11/2011 08:22 PM, krzf83@gmail.com wrote:
> I wanted to confirm that btrfs will continue to work on raid1 when one
> of devices will be gone.
>
> dd if=/dev/null of=img0 bs=1 seek=2G
> dd if=/dev/null of=img1 bs=1 seek=2G
> mkfs.btrfs -d raid1 -m raid1 img0 img1
> losetup /dev/loop1 img0
> losetup /dev/loop2 img1
> mkdir dir
> mount -t btrfs /dev/loop1 dir
> btrfs device scan
> mount -t btrfs /dev/loop1 dir
> echo abc> dir/a.txt
> umount dir
> losetup -d /dev/loop2
> btrfs device scan
> mount -t btrfs /dev/loop1 dir
> mount: wrong fs type, bad option, bad superblock on /dev/loop1,
> missing codepage or other error
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
> am I missing some nuance?
Yeah you need to mount -o degraded. Thanks,
Josef
next prev parent reply other threads:[~2011-07-12 0:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-12 0:22 raid1 krzf83@gmail.com
2011-07-12 0:38 ` Josef Bacik [this message]
2011-07-12 0:53 ` raid1 krzf83@gmail.com
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=4E1B9790.3050002@redhat.com \
--to=josef@redhat.com \
--cc=krzf83@gmail.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 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.