linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Danilo Reinhardt <danilo.reinhardt@gmx.net>
To: linux-btrfs@vger.kernel.org
Subject: Recover from drive failure on raid10
Date: Wed, 24 Nov 2010 11:58:49 +0100	[thread overview]
Message-ID: <1290596329.4834.80.camel@danilo-r-pc> (raw)

Hello,

i played a little bit with btrfs and raid levels, but now i stuck on
recovering if the first disc is missing.

First i tried removing the second disc -> works!

# mkfs.btrfs -m raid1 -d raid1 /dev/sdb /dev/sdc
# mount /dev/sdb /mnt
- copy some data
- shutdown, remove /dev/sdb, add a empty /dev/sdb, reboot
# btrfs device scan
# mount -o degraded /dev/sdb
# btrfs device add /dev/sdc
# umount /mnt
# mount /dev/sdb /mnt -> EVERYTHING OK AGAIN

But now i removed the first (sdb) device. And the steps above dont work 
anymore. 

If i try to:
# btrfs device scan (found my raid array)
# mount -o degraded /dev/sdb 
mount asked to specify the filesystem type, this was expected because
sbd is empty. Now try with sdc
# mount -o degraded /dev/sdc
and i got a bad superblock message.

What should i do now?

Thanks!
Nino


                 reply	other threads:[~2010-11-24 10:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1290596329.4834.80.camel@danilo-r-pc \
    --to=danilo.reinhardt@gmx.net \
    --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).