linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Edward Ned Harvey <kernel@nedharvey.com>
To: "'Martin Schitter'" <ms@mur.at>, "cwillu" <cwillu@cwillu.com>
Cc: "Fajar A. Nugraha" <list@fajar.net>,
	"linux-btrfs" <linux-btrfs@vger.kernel.org>
Subject: RE: btrfs csum failed
Date: Wed, 4 May 2011 09:23:22 -0400	[thread overview]
Message-ID: <000e01cc0a5e$7446eab0$5cd4c010$@nedharvey.com> (raw)
In-Reply-To: <4DC1464D.4060204@mur.at>

> From: linux-btrfs-owner@vger.kernel.org [mailto:linux-btrfs-
> owner@vger.kernel.org] On Behalf Of Martin Schitter
> 
> well -- i am doing a backup of all images every night. this process
> should work like a simple "scrub" because all data (and its checksumes)
> will be read. 

Sorry, not correct.  When you read all the data using something in user-land, the OS only needs to read one side of the data.  It can accelerate by staggering the read requests across multiple disks.  So some sectors remain unread on some disks.

When you scrub, it reads all the data from all the redundant copies (mirrored or raid) on all the individual disks in the raid set.  

For this reason, you always want to use JBOD, and don't use hardware raid.  Because if there's an undetected hardware error, the hardware raid will make it impossible for the OS to examine individual disks to identify the failing one.

At least I know all the above is true for reading & scrubbing in another filesystem, I don't actually know any of this for fact in btrfs, but it seems so basic I would be flabbergasted if I learned that wasn't the btrfs behavior.


  reply	other threads:[~2011-05-04 13:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03 21:56 btrfs csum failed Martin Schitter
2011-05-04  0:28 ` Josef Bacik
2011-05-04  0:44   ` Martin Schitter
2011-05-04  2:18     ` Fajar A. Nugraha
2011-05-04 11:39       ` Martin Schitter
2011-05-04 11:47         ` Hugo Mills
2011-05-04 11:51         ` cwillu
2011-05-04 12:27           ` Martin Schitter
2011-05-04 13:23             ` Edward Ned Harvey [this message]
2011-05-04 14:42               ` Martin Schitter
2011-05-04 18:10                 ` Chris Mason
2011-05-04 14:09           ` Jan Schmidt
2011-05-04 12:31         ` Kaspar Schleiser
2011-05-04 13:25           ` Martin Schitter
2011-05-04 14:39     ` Josef Bacik
2011-05-04 12:39 ` Chris Mason
2011-05-04 14:06   ` Martin Schitter

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='000e01cc0a5e$7446eab0$5cd4c010$@nedharvey.com' \
    --to=kernel@nedharvey.com \
    --cc=cwillu@cwillu.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=list@fajar.net \
    --cc=ms@mur.at \
    /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).