From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD3DDC43334 for ; Sun, 12 Jun 2022 21:21:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234846AbiFLVVP (ORCPT ); Sun, 12 Jun 2022 17:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231941AbiFLVVP (ORCPT ); Sun, 12 Jun 2022 17:21:15 -0400 Received: from rin.romanrm.net (rin.romanrm.net [IPv6:2001:bc8:2dd2:1000::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41B32EE19 for ; Sun, 12 Jun 2022 14:21:13 -0700 (PDT) Received: from nvm (nvm2.home.romanrm.net [IPv6:fd39::4a:3cff:fe57:d6b5]) by rin.romanrm.net (Postfix) with SMTP id CF39840B; Sun, 12 Jun 2022 21:21:08 +0000 (UTC) Date: Mon, 13 Jun 2022 02:21:07 +0500 From: Roman Mamedov To: Marc MERLIN Cc: Andrea Gelmini , Andrei Borzenkov , Zygo Blaxell , Josef Bacik , Chris Murphy , Qu Wenruo , "linux-btrfs@vger.kernel.org" Subject: Re: Suggestions for building new 44TB Raid5 array Message-ID: <20220613022107.6eafbc1c@nvm> In-Reply-To: <20220611145259.GF1664812@merlins.org> References: <20220611145259.GF1664812@merlins.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Sat, 11 Jun 2022 07:52:59 -0700 Marc MERLIN wrote: > On Sat, Jun 11, 2022 at 02:30:33PM +0500, Roman Mamedov wrote: > > > 2) echo 0fb96f02-d8da-45ce-aba7-070a1a8420e3 > /sys/block/bcache64/bcache/attach > > > gargamel:/dev# cat /sys/block/md7/bcache/cache_mode > > > [writethrough] writeback writearound none > > > > Maybe try LVM Cache this time? > > Hard to know either way, trading one layer for another, and LVM has > always seemed heavier I'd suggest to put the LUKS volume onto an LV still (in case you don't), so you can add and remove cache just to see how it works; unlike with bcache, an LVM cache can be added to an existing LV and then removed without a trace, all without having to displace 44 TB of data for that. And plain no-cache LVM doesn't add much in terms of being a "layer". -- With respect, Roman