From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f181.google.com ([209.85.223.181]:34269 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754471AbbJILOm (ORCPT ); Fri, 9 Oct 2015 07:14:42 -0400 Received: by iow1 with SMTP id 1so87922791iow.1 for ; Fri, 09 Oct 2015 04:14:42 -0700 (PDT) Subject: Re: BTRFS RAID1 behavior after one drive temporal disconection To: Hugo Mills , Pavel Pisa , linux-btrfs@vger.kernel.org References: <201510052226.47051.pisa@cmp.felk.cvut.cz> <561657D5.1070809@gmail.com> <20151008211352.GC25907@carfax.org.uk> <201510090016.43759.pisa@cmp.felk.cvut.cz> <20151008222223.GD25907@carfax.org.uk> From: Austin S Hemmelgarn Message-ID: <5617A175.9080300@gmail.com> Date: Fri, 9 Oct 2015 07:13:57 -0400 MIME-Version: 1.0 In-Reply-To: <20151008222223.GD25907@carfax.org.uk> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-512; boundary="------------ms020203080208090905050001" Sender: linux-btrfs-owner@vger.kernel.org List-ID: This is a cryptographically signed message in MIME format. --------------ms020203080208090905050001 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable On 2015-10-08 18:22, Hugo Mills wrote: > On Fri, Oct 09, 2015 at 12:16:43AM +0200, Pavel Pisa wrote: >> Hello Hugo, >> >> On Thursday 08 of October 2015 23:13:52 Hugo Mills wrote: >>> On Thu, Oct 08, 2015 at 07:47:33AM -0400, Austin S Hemmelgarn wrote: >>>> On 2015-10-08 04:28, Pavel Pisa wrote: >>>>> I go to use "btrfs replace" because there has not been any reply to= my >>>>> inplace correction question. But I expect that clarification if >>>>> possible/how to resync RAID1 after one drive temporal disappear is >>>>> really important to many of BTRFS users. >>>> >>>> As of right now, there is no way that I know of to safely re-sync a >>>> drive that's been disconnected for a while. The best bet is >>>> probably to use replace, but for that to work reliably, you would >>>> need to tell it to ignore the now stale drive when trying to read >>>> each chunk. >>> >>> Scrub is officially what you need there. I can confirm that it >>> works correctly, having used it myself after accidentally unplugging >>> the wrong drive. >>> >> >> Thanks for the reply. >> >> I have tried to run scrub after reconnect but it counted errors in >> its console output and write errors has been logged by kernel as crazy= =2E >> I have to admit I have not wait to finish it because I have not good >> feeling from it. > > If the scrub works OK, you will still get lots of scary-looking > errors in the logs, but they'll usually say it's repaired the problem. > > Getting write errors at this point indicates that you have hardware= > problems of some kind, and (usually) that device needs to be replaced. > (Or the controller, or the cabling). > >> May it be it was result of not fully correct reconnect. >> But other partition worked with ext4 has no problems to write. >> >> But if mount/unmount (in my case requiring reboot) and then scrub >> worked it would be much simpler than replaces series. >> >> I hope I would not need that (at least soon/in years) but I >> give try to scrub again. >> >> May it be problem is my btrfs tools old version on the server -- >> Wheezy Btrfs v3.17 backport. Kernel is Linux 4.1.2 #1 SMP PREEMPT. > > No, the version of the tools has no effect on any of this. It > really sounds like you have hardware issues. I have to agree with Hugo here, it really sounds like you have hardware=20 issues. If the new HDD doesn't completely fix things, try replacing the = cabling (because that's the easy to fix without spending a lot of money, = and having spare cables is usually a good thing), then try the=20 controller or RAM. --------------ms020203080208090905050001 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 MTUwOTIxMTEzNTEzWhcNMTYwMzE5MTEzNTEzWjBjMRgwFgYDVQQDEw9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