From: Michael Kofler <michael@kofler.info>
To: linux-btrfs@vger.kernel.org
Subject: unable to replace defect raid1 device
Date: Sat, 31 Jul 2010 21:04:29 +0200 [thread overview]
Message-ID: <4C5473BD.7020508@kofler.info> (raw)
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
next reply other threads:[~2010-07-31 19:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-31 19:04 Michael Kofler [this message]
2010-07-31 19:48 ` unable to replace defect raid1 device C Anthony Risinger
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=4C5473BD.7020508@kofler.info \
--to=michael@kofler.info \
--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 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).