From: "Mr. Tux" <tuxoholic@hotmail.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: Howto mount intact left-over device of a degraded btrfs-raid?
Date: Mon, 25 Jan 2010 22:46:47 +0100 [thread overview]
Message-ID: <BLU0-SMTP645D546639865D7DF323B2D85F0@phx.gbl> (raw)
In-Reply-To: <20100125184326.GA2204@localhost.localdomain>
On Monday 25 January 2010 19.43:27 Josef Bacik wrote:
>
> How did you setup this array to begin with? I'm trying to reproduce this
> bug but I haven't been able to. Thanks,
>
Hi Josef,
Thanks for your help!
Linux Kernel 2.6.32.2 from kernel.org (was marked as stable at that time, I
compiled it using make-kpkg with btrfs support inside the kernel -> not
modular)
OS: Debian Lenny 5.03
I created the btrfs raid on a two sata-II drives like this:
mkfs.btrfs -d raid1 -m raid 1 /dev/sda4 /dev/sdb4
Then I mounted the btrfs with:
mount /dev/sda4 /mnt/
cat /proc/mounts and dmesg showed the raid was mounted successfully
Then I started to copy large amount of data into the raid1 from a file server.
With the copying process ongoing I detached the data cable from one device to
simulate hardware failure. Copying process went on as planed to the drive
still attached.
Then I unmounted the btrfs raid like this:
umount /mnt/
and I shut down the system.
Now the goal was to boot and mount only the intact btrfs partition again as a
degraded raid.
I followed the multiple-device-wiki of btrfs [1]
I didn't try to remove the faulty device - I shut down the system already and
booted again without the faulty drive. So I tried this:
mount -o degraded /dev/sda /mnt/
This caused a memory segfault - the system still ran, but I couldn't use the
array any more.
So I used the next command
btrfs-vol -r missing /mnt
Complained it couldn't mount with only one member present.
My assumption: Bad luck with the kernel - or did this memory segfault happen
on earlier kernel versions as well?
[1]
http://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices#Replacing_Failed_Devices
next prev parent reply other threads:[~2010-01-25 21:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-20 18:31 Howto mount intact left-over device of a degraded btrfs-raid? Mr. Tux
2010-01-25 18:43 ` Josef Bacik
2010-01-25 21:46 ` Mr. Tux [this message]
2010-01-25 22:08 ` Josef Bacik
2010-01-26 12:20 ` Mr. Tux
2010-01-27 2:12 ` Josef Bacik
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=BLU0-SMTP645D546639865D7DF323B2D85F0@phx.gbl \
--to=tuxoholic@hotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox