linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: C Anthony Risinger <anthony@extof.me>
To: Michael Kofler <michael@kofler.info>
Cc: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: unable to replace defect raid1 device
Date: Sat, 31 Jul 2010 14:48:21 -0500	[thread overview]
Message-ID: <5004313142825711741@unknownmsgid> (raw)
In-Reply-To: <4C5473BD.7020508@kofler.info>

Try to add replacement, rebalance, then remove missing

C Anthony [mobile]

On Jul 31, 2010, at 2:04 PM, Michael Kofler <michael@kofler.info> wrote:

> on Ubuntu 10.10 alpha with btrfs 0.19 and a 2.6.35
> (2.6.35-12-generic #17-Ubuntu SMP Mon Jul 26 18:48:06)
>
> I created a btrfs raid 1 system:
>
> # mkfs.btrfs -d raid1 -m raid1 /dev/sdb1 /dev/sdc1
>
> Then I rebooted without disk 3 (/dev/sdc). I was able to mount the
> btrfs with mount -o degraded.
>
> However, I was not able to remove the defect device.
>
> # btrfs device delete /dev/sdc1
> ERROR: error removing the device '/dev/sdc1'
> # dmesg | tail
> ...
> [  110.524145] btrfs: allowing degraded mounts
> [  439.104487] btrfs: unable to go below two devices on raid1
>
> I was able to add a new device (again /dev/sdc1, but on another
> disk), but apparently it was not used as a raid1 device:
>
> # btrfs de add /dev/sdc1 /media/btrfs/
> # btrfs fi sh
> Label: none  uuid: dc691a5d-187e-4cb4-a94a-d12dabdffde4
>    Total devices 3 FS bytes used 3.76GB
>    devid    1 size 8.00GB used 5.35GB path /dev/sdb1
>    devid    3 size 8.00GB used 0.00 path /dev/sdc1
>    *** Some devices missing
>
> Is there a way to replace a defect raid1 device as with mdadm?
> Or is this not yet implemented in btrfs?
>
> Best wishes,
>
>    Michael Kofler
> --
> To unsubscribe from this list: send the line "unsubscribe linux-
> btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-07-31 19:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-31 19:04 unable to replace defect raid1 device Michael Kofler
2010-07-31 19:48 ` C Anthony Risinger [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=5004313142825711741@unknownmsgid \
    --to=anthony@extof.me \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=michael@kofler.info \
    /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;
as well as URLs for NNTP newsgroup(s).