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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 735E7C388F7 for ; Fri, 13 Nov 2020 16:19:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DB7C2076B for ; Fri, 13 Nov 2020 16:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726133AbgKMQTP convert rfc822-to-8bit (ORCPT ); Fri, 13 Nov 2020 11:19:15 -0500 Received: from vostok.pvgoran.name ([71.19.149.48]:51775 "EHLO vostok.pvgoran.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgKMQTP (ORCPT ); Fri, 13 Nov 2020 11:19:15 -0500 Received: from [10.0.10.127] (l37-193-246-51.novotelecom.ru [::ffff:37.193.246.51]) (AUTH: CRAM-MD5 main-collector@pvgoran.name, ) by vostok.pvgoran.name with ESMTPSA id 0000000000085FD6.000000005FAEB202.000023BE; Fri, 13 Nov 2020 16:19:13 +0000 Date: Fri, 13 Nov 2020 23:19:11 +0700 From: Pavel Goran X-Mailer: The Bat! (v3.85.03) Professional Reply-To: Pavel Goran X-Priority: 3 (Normal) Message-ID: <1726375278.20201113231911@pvgoran.name> To: Jean-Denis Girard CC: linux-bcache@vger.kernel.org Subject: Re[2]: bcache error -> btrfs unmountable In-Reply-To: References: <1854634128.20201113145913@pvgoran.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-bcache@vger.kernel.org Hello Jean-Denis, Friday, November 13, 2020, 10:58:56 PM, you wrote: > Hello Pavel, > Le 12/11/2020 a 21:59, Pavel Goran a ecrit : >> Hello Jean-Denis, >> >> See comments inline. >> >> Friday, November 13, 2020, 6:25:15 AM, you wrote: >> >>> Hi list, >> >>> I have a RAID1 Btrfs (on sdb and sdc) behind bcache (on nvme0n1p4): >> >> What's the cache mode? Writeback, writethrough, writearound? > Sorry I forgot that important information: mode was Writeback. >> You could try to detach the *cache* from the bcache devices, and then try to >> use the bcache devices as before; it should be possible and harmless, >> *unless* the cache mode is "writeback". If it's "writeback", things are more >> complicated, and I'll leave them to more experienced people around. > ok, as I have Writeback, I'll wait for further instructions. First, you may want to check if there is any dirty data in the cache, by executing: cat /sys/block/bcache0/bcache/state cat /sys/block/bcache1/bcache/state If these return "clean", then you should be good to detach the cache. You will want to try it *before* removing the faulty NVMe storage (which would obviously make the cache device inaccessible). >> IMPORANT: The kernel logs below indicate that bcache failed to do IO on the >> cache device. It could be a hardware problem with your NVMe device, so I >> suggest you look at its SMART, ASAP. > Yes, the nvme is having problem... I'll replace it ASAP. > Thanks for your reply Pavel, > Best regards, Pavel Goran