linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recover from drive failure on raid10
@ 2010-11-24 10:58 Danilo Reinhardt
  0 siblings, 0 replies; only message in thread
From: Danilo Reinhardt @ 2010-11-24 10:58 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-24 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-24 10:58 Recover from drive failure on raid10 Danilo Reinhardt

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).