public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Remi Gauvin <remi@georgianit.com>,
	Adam Borowski <kilobyte@angband.pl>,
	Nathan Dehnel <ncdehnel@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: SATA/SAS mixed pool
Date: Thu, 13 Dec 2018 07:48:40 -0500	[thread overview]
Message-ID: <b55eaa23-ebda-c7c1-e56c-cab0cf859456@gmail.com> (raw)
In-Reply-To: <60315740-e3e5-ed7f-a25b-6889932d0cfd@georgianit.com>

On 2018-12-13 05:39, Remi Gauvin wrote:
> On 2018-12-13 02:29 AM, Adam Borowski wrote:
> 
>>
>> For btrfs, a block device is a block device, it's not "racist".
>> You can freely mix and/or replace.  If you want to, say, extend a SD
>> card with NBD to remote spinning rust, it works well -- tested :p
>>
> 
> The possibility ff NBD certainly intrigues me, but I would be concerned
> about the write barriers,, (needed to make sure cached writes are
> committed to spinning rust in the correct order, so as to avoid
> corruption in the case of interruption.
> 
> Assuming the underlaying block device on the remote device has a working
> implementation, (as we know, not always a safe assumption...) does NBD
> properly pass along the barriers commands/support?
I don't think there's any auto-detection, but newer versions of the NBD 
server software provide two options in the export configuration, 
`flush`, and `fua`, which will let you enable support for those two 
commands, though they only get used if the client supports them. 
Unless I'm mistaken, they both need support from the block device being 
exported if it's actually a block device, though they do not if it's a 
regular file (`flush` translates to `fdatasync()` or `fsync()`, while 
`fua` translates to `sync_file_range()`).

  reply	other threads:[~2018-12-13 12:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-13  3:31 SATA/SAS mixed pool Nathan Dehnel
2018-12-13  4:07 ` Zia Nayamuth
2018-12-13  7:29 ` Adam Borowski
2018-12-13 10:39   ` Remi Gauvin
2018-12-13 12:48     ` Austin S. Hemmelgarn [this message]
2018-12-14  5:14   ` Duncan
2018-12-14 15:26     ` Adam Borowski

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=b55eaa23-ebda-c7c1-e56c-cab0cf859456@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=kilobyte@angband.pl \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=ncdehnel@gmail.com \
    --cc=remi@georgianit.com \
    /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