public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Scrubbing with BTRFS Raid 5
@ 2014-01-21  9:06 Graham Fleming
  2014-01-21 17:08 ` Duncan
  0 siblings, 1 reply; 14+ messages in thread
From: Graham Fleming @ 2014-01-21  9:06 UTC (permalink / raw)
  To: linux-btrfs

Thanks for all the info guys.

I ran some tests on the latest 3.12.8 kernel. I set up 3 1GB files and attached them to /dev/loop{1..3} and created a BTRFS RAID 5 volume with them.

I copied some data (from dev/urandom) into two test files and got their MD5 sums and saved them to a text file.

I then unmounted the volume, trashed Disk3 and created a new Disk4 file, attached to /dev/loop4.

I mounted the BTRFS RAID 5 volume degraded and the md5 sums were fine. I added /dev/loop4 to the volume and then deleted the missing device and it rebalanced. I had data spread out on all three devices now. MD5 sums unchanged on test files.

This, to me, implies BTRFS RAID 5 is working quite well and I can in fact, replace a dead drive.

Am I missing something?

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: Scrubbing with BTRFS Raid 5
@ 2014-01-21 18:03 Graham Fleming
  2014-01-22 15:39 ` Duncan
  0 siblings, 1 reply; 14+ messages in thread
From: Graham Fleming @ 2014-01-21 18:03 UTC (permalink / raw)
  To: linux-btrfs

Thanks again for the added info; very helpful.

I want to keep playing around with BTRFSS RAID 5 and testing with it... assuming I have a drive with bad blocks, or let's say some inconsistent parity am I right in assuming that a) a btrfs scrub operation will not fix the stripes with bad parity and b) a balance operation will not be successful? Or would a balance operation work to re-write parity?

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Scrubbing with BTRFS Raid 5
@ 2014-01-20  0:53 Graham Fleming
  2014-01-20 13:21 ` Duncan
  0 siblings, 1 reply; 14+ messages in thread
From: Graham Fleming @ 2014-01-20  0:53 UTC (permalink / raw)
  To: linux-btrfs

>From the wiki, I see that scrubbing is not supported on a RAID 5 volume.

Can I still run the scrub routing (maybe read-only?) to check for any issues. I understand at this point running 3.12 kernel there are no routines to fix parity issues with RAID 5 while scrubbing but just want to know if I'm either a) not causing any harm by running the scrub on a RAID 5 volume and b) it's actually goin to provide me with useful feedback (ie file X is damaged).

Thanks

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

end of thread, other threads:[~2014-01-22 22:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-21  9:06 Scrubbing with BTRFS Raid 5 Graham Fleming
2014-01-21 17:08 ` Duncan
2014-01-21 17:18   ` Jim Salter
2014-01-21 17:38     ` Chris Murphy
2014-01-21 18:25       ` Jim Salter
2014-01-22 16:02     ` Duncan
2014-01-22 20:45   ` Chris Mason
2014-01-22 21:06     ` ronnie sahlberg
2014-01-22 21:16       ` Chris Mason
2014-01-22 22:36         ` ronnie sahlberg
  -- strict thread matches above, loose matches on Subject: below --
2014-01-21 18:03 Graham Fleming
2014-01-22 15:39 ` Duncan
2014-01-20  0:53 Graham Fleming
2014-01-20 13:21 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox