From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f171.google.com ([209.85.213.171]:33079 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214AbbJEOTp (ORCPT ); Mon, 5 Oct 2015 10:19:45 -0400 Received: by igbkq10 with SMTP id kq10so63732445igb.0 for ; Mon, 05 Oct 2015 07:19:44 -0700 (PDT) Subject: Re: Issues with unmountable BTRFS raid1 filesystem To: Hugo Mills , linux-btrfs References: <56126D59.7070505@gmail.com> <20151005131426.GP25907@carfax.org.uk> From: Austin S Hemmelgarn Message-ID: <561286F2.40607@gmail.com> Date: Mon, 5 Oct 2015 10:19:30 -0400 MIME-Version: 1.0 In-Reply-To: <20151005131426.GP25907@carfax.org.uk> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms030405080901090604010301" Sender: linux-btrfs-owner@vger.kernel.org List-ID: This is a cryptographically signed message in MIME format. --------------ms030405080901090604010301 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-10-05 09:14, Hugo Mills wrote: > On Mon, Oct 05, 2015 at 08:30:17AM -0400, Austin S Hemmelgarn wrote: >> I've been having issues recently with a relatively simple setup >> using a two device BTRFS raid1 on top of two two device md RAID0's, >> and every time I've rebooted since starting trying to use this >> particular filesystem, I've found it unable to mount and had to >> recreate it from scratch. This is more of an inconvenience than >> anything else (while I don't have backups of it, all the data is >> trivial to recreate (in fact, so trivial that doing backups would be >> more effort than just recreating the data by hand)), but it's still >> something that I would like to try and fix. >> >> First off, general info: >> Kernel version: 4.2.1-local+ (4.2.1 with minor modifications, >> sources can be found here: https://github.com/ferroin/linux) >> Btrfs-progs version: 4.2 >> >> I would post output from btrfs fi show, but that's spouting >> obviously wrong data (it's saying I'm using only 127MB with 2GB of >> allocations on each 'disk', I had been storing approximately 4-6GB >> of actual data on the filesystem). >> >> This particular filesystem is composed of BTRFS raid1 across two LVM >> managed DM/MD RAID0 devices, each of which spans 2 physical hard >> drives. I have a couple of other filesystems with the exact same >> configuration that have not ever displayed this issue. >> >> When I run 'btrfs check' on the filesystem when it refuses to mount, >> I get a number of lines like the following: >> bad metadata [, ) crossing stripe boundary >> >> followed eventually by: >> Errors found in extent allocation tree or chunk allocation > > I _think_ this is a bug in mkfs from 4.2.0, fixed in later > releases of the btrfs-progs. If so, that's good news (that is, that it's just a mkfs bug). I guess=20 it's time for me to quit waiting around for Gentoo to package the newest = version and build it myself. > >> As is typical of a failed mount, dmesg shows a 'failed to read the >> system array on ' 'open_ctree failed'. >> >> I doubt that this is a hardware issue because: >> 1. Memory is brand new, and I ran a 48 hour burn-in test that showed >> no errors. >> 2. A failing storage controller, PSU, or CPU would be manifesting >> with many more issues than just this. >> 3. A disk failure would mean that two different disks, from >> different manufacturing lots, are encountering errors on exactly the >> same LBA's at exactly the same time, which while possible is >> astronomically unlikely for disks bigger than a few hundred >> gigabytes (the disks in question are 1TB each). >> --------------ms030405080901090604010301 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC Brgwgga0MIIEnKADAgECAgMRLfgwDQYJKoZIhvcNAQENBQAweTEQMA4GA1UEChMHUm9vdCBD QTEeMBwGA1UECxMVaHR0cDovL3d3dy5jYWNlcnQub3JnMSIwIAYDVQQDExlDQSBDZXJ0IFNp Z25pbmcgQXV0aG9yaXR5MSEwHwYJKoZIhvcNAQkBFhJzdXBwb3J0QGNhY2VydC5vcmcwHhcN MTUwOTIxMTEzNTEzWhcNMTYwMzE5MTEzNTEzWjBjMRgwFgYDVQQDEw9DQWNlcnQgV29UIFVz ZXIxIzAhBgkqhkiG9w0BCQEWFGFoZmVycm9pbjdAZ21haWwuY29tMSIwIAYJKoZIhvcNAQkB Fh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