linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gert Menke <gert@menke.ac>
To: linux-btrfs@vger.kernel.org
Subject: Re: BTRFS as image store for KVM?
Date: Fri, 18 Sep 2015 09:34:58 +0200	[thread overview]
Message-ID: <27fbc341985fb6d11e40b43d10d93a33@durkon.lan> (raw)
In-Reply-To: <20150917224154.GA23636@wheatley.student.rit.edu>

On 2015-09-18 00:41, Sean Greenslade wrote:

> MD is emulating hardware RAID. In hardware RAID, you are doing
> work at the block level. Block-level RAID has no understanding of the
> filesystem(s) running on top of it. Therefore it would have to checksum
> groups of blocks, and store those checksums on the physical disks
> somewhere, perhaps by keeping some portion of the drive for itself.

Of course.

> But
> then this is not very efficient, since it is maintaining checksums for
> data that may be useless (blocks the FS is not currently using).

Correct. But when a disk needs to be swapped you have the same problem - 
the whole disk needs to be rewritten, because the RAID controller (or 
software) does not know about the filesystem. TRIM might help in this 
case.

> So then
> you might make the RAID filesystem aware...and you now have BTRFS RAID.

Right. As long as I don't want to turn off COW.

> Simply put, the block level is probably not an appropriate place for
> checksumming to occur. BTRFS can make checksumming work much more
> effectively and efficiently by doing it at the filesystem level.

Well, yes and no. The Block level needs checksums to identify silent 
data corruption - without access to the block layer, the fs can only 
detect a faulty block, but cannot recover it, even in a raid setting. 
And without access to the fs, the block layer is inefficient, as you 
said. So, BTRFS and ZFS are doing the right thing by sacrificing the 
strict boundary between block and fs layer, imo.

Gert

  reply	other threads:[~2015-09-18  7:35 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-15 21:34 BTRFS as image store for KVM? Gert Menke
2015-09-16  3:00 ` Chris Murphy
2015-09-16  3:57 ` Duncan
2015-09-16 11:35   ` Brendan Heading
2015-09-16 12:25     ` Austin S Hemmelgarn
2015-09-16 12:41     ` Paul Jones
2015-09-17 17:56   ` Gert Menke
2015-09-17 18:35     ` Chris Murphy
2015-09-17 21:32       ` Gert Menke
2015-09-18  2:00       ` Duncan
2015-09-18  8:32         ` Gert Menke
2015-09-23  7:28         ` Russell Coker
2015-09-18 14:13       ` Austin S Hemmelgarn
2015-09-23  7:24         ` Russell Coker
2015-09-17 18:46     ` Mike Fleetwood
2015-09-17 19:43     ` Hugo Mills
2015-09-17 21:49       ` Gert Menke
2015-09-18  2:22       ` Duncan
2015-09-18  8:59         ` Gert Menke
2015-09-17 22:41     ` Sean Greenslade
2015-09-18  7:34       ` Gert Menke [this message]
2015-09-17  4:19 ` Paul Harvey
2015-09-20  1:26 ` Jim Salter
2015-09-25 12:48   ` Rich Freeman
2015-09-25 12:56     ` Jim Salter
2015-09-25 13:04     ` Austin S Hemmelgarn
     [not found]       ` <5605483A.7040103@jrs-s.net>
2015-09-25 13:46         ` Austin S Hemmelgarn
2015-09-25 13:52       ` Jim Salter
2015-09-25 14:02         ` Timofey Titovets
2015-09-25 14:20           ` Austin S Hemmelgarn
2015-09-29 14:12             ` Gert Menke
2015-10-02  4:21             ` Russell Coker
2015-10-02 12:07               ` Austin S Hemmelgarn
2015-10-03  8:32                 ` Russell Coker
2015-10-04  2:09                   ` Duncan
2015-10-04 12:03                     ` Lionel Bouton
2015-10-04 12:21                       ` Rich Freeman
2015-10-05  8:19                         ` Duncan
2015-10-05  8:43                       ` Erkki Seppala
2015-10-05  8:51                         ` Roman Mamedov
2015-10-05 11:16                       ` Lionel Bouton
2015-10-05 11:40                         ` Rich Freeman
2015-10-05 11:54                         ` Austin S Hemmelgarn
     [not found]                       ` <RPG31r00t34oj7R01PG5Us>
2015-10-05 14:04                         ` Duncan
2015-10-05 15:59                           ` Austin S Hemmelgarn

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=27fbc341985fb6d11e40b43d10d93a33@durkon.lan \
    --to=gert@menke.ac \
    --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).