Return-Path: Received: from mail-wr0-f175.google.com ([209.85.128.175]:39396 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751966AbeAVJPF (ORCPT ); Mon, 22 Jan 2018 04:15:05 -0500 Received: by mail-wr0-f175.google.com with SMTP id z48so7783283wrz.6 for ; Mon, 22 Jan 2018 01:15:04 -0800 (PST) Received: from [10.1.2.221] ([89.24.100.190]) by smtp.googlemail.com with ESMTPSA id e128sm4690146wmg.1.2018.01.22.01.14.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jan 2018 01:14:48 -0800 (PST) Subject: Re: Can't mount (even in ro) after power outage - corrupt leaf, open_ctree failed To: linux-btrfs@vger.kernel.org References: <7ebd40d4-3eea-9ad7-492f-b5d22cf935b0@gmail.com> <05babf08-00de-ae0f-06f3-546719674aa1@gmail.com> From: =?UTF-8?B?WmF0a292c2vDvSBEdcWhYW4=?= Message-ID: Date: Mon, 22 Jan 2018 10:14:47 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: Hi. Badblocks finished on both disks with no errors. The only messages from kernel during night are 6x perf: interrupt took too long (2511 > 2500), lowering kernel.perf_event_max_sample_rate to 79500 root@nas:~# smartctl -l scterc /dev/sda smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-4-amd64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org SCT Error Recovery Control:            Read:     70 (7.0 seconds)           Write:     70 (7.0 seconds) root@nas:~# smartctl -l scterc /dev/sdb smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-4-amd64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org SCT Error Recovery Control:            Read:     70 (7.0 seconds)           Write:     70 (7.0 seconds) root@nas:~# btrfs-debug-tree -t chunk /dev/sda4 | grep 'METADATA\|SYSTEM' incorrect offsets 13686 13622                 type METADATA|RAID1 num_stripes 2                 type METADATA|RAID1 num_stripes 2                 type SYSTEM|RAID1 num_stripes 2                 type METADATA|RAID1 num_stripes 2                 type METADATA|RAID1 num_stripes 2 root@nas:~# btrfs-debug-tree -t chunk /dev/sdb4 | grep 'METADATA\|SYSTEM' incorrect offsets 13686 13622                 type METADATA|RAID1 num_stripes 2                 type METADATA|RAID1 num_stripes 2                 type SYSTEM|RAID1 num_stripes 2                 type METADATA|RAID1 num_stripes 2                 type METADATA|RAID1 num_stripes 2 (still used "old" version of btrfs tools, working remotely now, I will boot something newer when I will get access to that NAS at EOD) Thank you msk Dňa 22. 1. 2018 o 0:24 Chris Murphy napísal(a): > On Sun, Jan 21, 2018 at 4:13 PM, Chris Murphy wrote: >> On Sun, Jan 21, 2018 at 3:31 PM, msk conf wrote: >>> Hello, >>> >>> thank you for the reply. >>> >>>> What do you get for btrfs fi df /array >>> >>> Can't do that because filesystem is not mountable. I will get stats for '/' >>> filesystem instead (because '/array' is an empty directory - mountpoint on / >> Try >> $ sudo btrfs-debug-tree -t chunk /dev/mapper/first | grep 'METADATA\|SYSTEM' > > You need to adapt that /dev/ node for your case, I just copy pasted > that from my setup. Anyway, that will look at the chunk tree and show > the profile for these chunk types. > >