linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID1 failure and recovery
@ 2014-09-12  8:57 shane-kernel
  2014-09-12 10:47 ` Hugo Mills
  2014-09-12 11:11 ` Duncan
  0 siblings, 2 replies; 6+ messages in thread
From: shane-kernel @ 2014-09-12  8:57 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I am testing BTRFS in a simple RAID1 environment. Default mount options and data and metadata are mirrored between sda2 and sdb2. I have a few questions and a potential bug report. I don't normally have console access to the server so when the server boots with 1 of 2 disks, the mount will fail without -o degraded. Can I use -o degraded by default to force mounting with any number of disks? This is the default behaviour for linux-raid so I was rather surprised when the server didn't boot after a simulated disk failure.

So I pulled sdb to simulate a disk failure. The kernel oops'd but did continue running. I then rebooted encountering the above mount problem. I re-inserted the disk and rebooted again and BTRFS mounted successfully. However, I am now getting warnings like:
BTRFS: read error corrected: ino 1615 off 86016 (dev /dev/sda2 sector 4580382824)
I take it there were writes to SDA and sdb is out of sync. Btrfs is correcting sdb as it goes but I won't have redundancy until sdb resyncs completely. Is there a way to tell btrfs that I just re-added a failed disk and to go through and resync the array as mdraid would do? I know I can do a btrfs fi resync manually but can that be automated if the array goes out of sync for whatever reason (power failure)...

Finally for those using this sort of setup in production, is running btrfs on top of mdraid the way to go at this point?

Cheers,
Shane



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-14 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12  8:57 RAID1 failure and recovery shane-kernel
2014-09-12 10:47 ` Hugo Mills
2014-09-14  3:15   ` Piotr Pawłow
2014-09-14  4:44     ` Hugo Mills
2014-09-14 14:53       ` Piotr Pawłow
2014-09-12 11:11 ` Duncan

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