linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: " " <Cedric.dewijs@eclipso.eu>
To: <kreijack@inwind.it>
Cc: <andy@strugglers.net>, <linux-btrfs@vger.kernel.org>,
	<linux-raid@vger.kernel.org>
Subject: Re: Re: put 2 hard drives in mdadm raid 1 and detect bitrot like btrfs does, what's that called?
Date: Thu, 04 Feb 2021 20:58:30 +0100	[thread overview]
Message-ID: <867a4658d076279f9b8c014835a161b4@mail.eclipso.de> (raw)
In-Reply-To: <adf8adda-015a-59a9-fdb9-32cad9f9ea49@libero.it>


--- Ursprüngliche Nachricht ---
Von: Goffredo Baroncelli <kreijack@libero.it>
Datum: 04.02.2021 19:13:50
An: Cedric.dewijs@eclipso.eu, Andy Smith <andy@strugglers.net>
Betreff: Re: put 2 hard drives in mdadm raid 1 and detect bitrot like btrfs  does, what's that called?

[...]
> Hey Andy,
> 
> I would rather see performance figures for these setups:
> A) btrfs with 2 (or more) hard drives and one SSD in writeback bcache
configuration (unsafe against failure of the ssd):
> +-----------------------------+
> |      btrfs raid 1 /mnt      |
> +--------------+--------------+
> | /dev/Bcache0 | /dev/Bcache1 |
> +--------------+--------------+
> |   bcache writeback Cache    |
> |           /dev/sdk1         |
> +--------------+--------------+
> | Data         | Data         |
> | /dev/sdv1    | /dev/sdw1    |
> +--------------+--------------+

Doing that, you loose the protection of raid1 redundancy: now there is a
single point of failure /dev/sdk1. Writeback is even more dangerous...


Not really. if bcache is set to read cache, the SSD can die at any moment, without btrfs loosing any data. All written data has gone straight to the hard drives. I have not tried this scenario, but I would be very surprised if reading the data from /mnt is even interrupted for longer than a few seconds if the data cable from the ssd is pulled while data is written from another process.

You are correct about writeback cache, if /dev/sdk1 dies, all dirty data is lost, and even worse, both copies of the btrfs data are side by side on only the SSD. (But I already mentioned this in my previous mail: "unsafe against failure of the ssd")

Cheers,
Cedric

---

Take your mailboxes with you. Free, fast and secure Mail &amp; Cloud: https://www.eclipso.eu - Time to change!



  reply	other threads:[~2021-02-04 20:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-03 19:04 put 2 hard drives in mdadm raid 1 and detect bitrot like btrfs does, what's that called?  
2021-02-03 19:33 `  
2021-02-04 10:54   ` Andy Smith
2021-02-04 17:43     `  
2021-02-04 18:13       ` Goffredo Baroncelli
2021-02-04 19:58         `   [this message]
2021-02-03 20:23 ` Andrew Luke Nesbit
2021-02-04  6:57   ` Forza

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=867a4658d076279f9b8c014835a161b4@mail.eclipso.de \
    --to=cedric.dewijs@eclipso.eu \
    --cc=andy@strugglers.net \
    --cc=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux-raid@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).