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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 2DF24C4CEC5 for ; Thu, 12 Sep 2019 14:57:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0BD222081B for ; Thu, 12 Sep 2019 14:57:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732836AbfILO5s convert rfc822-to-8bit (ORCPT ); Thu, 12 Sep 2019 10:57:48 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:33551 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732566AbfILO5s (ORCPT ); Thu, 12 Sep 2019 10:57:48 -0400 Received: from [10.137.0.38] (unknown [37.166.132.1]) (Authenticated sender: swami@petaramesh.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 541D3200005; Thu, 12 Sep 2019 14:57:44 +0000 (UTC) Subject: Re: Massive filesystem corruption since kernel 5.2 (ARCH) To: Christoph Anton Mitterer , fdmanana@gmail.com Cc: linux-btrfs References: <11e4e889f903ddad682297c4420faeb0245414cf.camel@scientia.net> <41d5dae3587efa5c19262a230e3c459f8e14159b.camel@scientia.net> From: =?UTF-8?Q?Sw=c3=a2mi_Petaramesh?= Openpgp: preference=signencrypt Autocrypt: addr=swami@petaramesh.org; keydata= xsDiBEP8C/QRBADPiYmcQstlx+HdyR2FGH+bDgRZ0ZJBAx6F0OPW+CmI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IbDBYhBMwf46BtOfqyuRyYLi/CXB2QduMuBQJdAnbyBQki bGwWAAoJEC/CXB2QduMur1wAn1X3FcsmMdhMfiYwXw7LVw4FAIeWAJ9kLGer22WFWR2z2iU7 BtUAN08OPA== Message-ID: <2cfe8d20-43f1-ae88-0712-60bb9d6d4dc0@petaramesh.org> Date: Thu, 12 Sep 2019 16:57:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <41d5dae3587efa5c19262a230e3c459f8e14159b.camel@scientia.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: fr-FR Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On 9/12/19 4:39 PM, Christoph Anton Mitterer wrote: > On Thu, 2019-09-12 at 15:28 +0100, Filipe Manana wrote: >> This is case 2), the corruption with the error messages >> "parent transid verify failed ..." in dmesg/syslog after mounting the >> filesystem again. > Hmm so "at least" it will never go unnoticed, right? > > This is IMO a pretty important advise, as people may want to compare > their current data with that of backups... if silent corruption would > have been possible. > > > Cheers, > Chris. Per my own experience hitting this bug, it definitely doesn't go unnoticed - I haven't experienced the system hang, which obviouslly cannot go unoticed, but the « Parent TransID » failure thing. The most annoying consequence is that the filesystem is then beyond repair and needs to be completely recreated. In my case I still could backup most of my files from the damaged FS, even though a few were lost or damaged - files that were open or had been recently changed, while old files were still there and healthy. So for me most of the hassle was to first recreate my FS with all its complexity (subvols, snapshots...) and restore from a backup made just before, then check missing files from another (luckily very recent) other backup and trying to fix what got broke. I have to say that I have re-upgraded said machine to latest Arch 5.2 kernel a couple weeks ago and a couple other Manjaro machines to latest 5.2 kernel as well, and haven't been hit by the bug since. However having read that the bug is diagnosed, confirmed and fixed by Filipe, I seriously consider downgrading my kernel back to 5.1 on the 2 Manjaro machines as it is rather straightforward, and maybe my Arch as well... Until I'm sure that the fix made it to said distro kernels. Fortunately other common, less “bleading edge” distros that I use, such as Debian stable or Mint/Ubuntu, still ships a kernel which is older than 5.1 and I will stay away from 5.2 backports... I'm however quite concerned that the FS on which I store all of my most precious data and considered “the safest native Linux FS available” can still suffer such regressions that can plainly trash it to ruins. Kind regards. > ॐ -- Swâmi Petaramesh PGP 9076E32E