From owner-freebsd-fs@freebsd.org Wed Dec 28 15:42:57 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E16AC94C8D for ; Wed, 28 Dec 2016 15:42:57 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B8081ECC for ; Wed, 28 Dec 2016 15:42:57 +0000 (UTC) (envelope-from jrm@ftfl.ca) Received: by mail-qt0-x22c.google.com with SMTP id c47so352549808qtc.2 for ; Wed, 28 Dec 2016 07:42:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ftfl.ca; s=google; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Px73QtQ/oCqHwGQlBag8KNKrMlmO3afjNvmQ9OZIwcg=; b=A0nFs0cC8sccG04zhaPOgYNmUUYi8uImTZc+EX6j4MKCYpvMbGP4LNqHDSJfUcJe04 hluA0CMAcHitqyDSP601TnqZmk7WdQXykFehEm2l/j3olXXP6SbICkMBZWJvXA5+yhc0 eINIf/Wy8aR1ZxiH1w9ohjIU2v3U9IXPcpsb8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Px73QtQ/oCqHwGQlBag8KNKrMlmO3afjNvmQ9OZIwcg=; b=rZhaQYSm0uWJ8esOKBMyZp/vhnLONrd93Q9Q15/48IBuVyXZf0I2M+SIIE49BSMIbq wHpmL/ZVNtvNHwQPoGmFd8AYNc3I6yj/gRTiA2Sgoe/PdsAzp/nMYO59uewCtN9kIbpX b+CvDOwG/gqHAjz5ABsGq2wDtkSDcKM7bxT9wqiKjotp5ZgukQkbuaTP0ObkGhzvH9Ah NymMob3JR4KTr6e5bZIba8yTN+h/Hb9n1/YoGhZxTCkcdwKFZKzOETwpnXI+LGAnVwi/ tcZqNIsgvzXtrpk1YQh32zj0JD4sSEItoU4ydvTBhbZFsvQATJN86lM3ss90Ion2PsmP O/7Q== X-Gm-Message-State: AIkVDXI+bgtotKWx/TPMF+jOxDxO0KP17awQuxKRw4t/xZ6/rdlwKyZdq3iMi2hgGLcmUA== X-Received: by 10.237.53.102 with SMTP id b35mr38298516qte.266.1482939776123; Wed, 28 Dec 2016 07:42:56 -0800 (PST) Received: from phe.ftfl.ca.ftfl.ca (hlfxns017vw-047055140230.dhcp-dynamic.FibreOp.ns.bellaliant.net. [47.55.140.230]) by smtp.gmail.com with ESMTPSA id h47sm30992855qtc.27.2016.12.28.07.42.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Dec 2016 07:42:55 -0800 (PST) From: Joseph Mingrone To: freebsd-fs@freebsd.org Cc: Dmitry Marakasov , Steven Hartland Subject: Re: ZFS resilver from disk with bad sectors constantly restarts References: <20151030103614.GL57666@hades.panopticon> Date: Wed, 28 Dec 2016 11:42:53 -0400 In-Reply-To: <20151030103614.GL57666@hades.panopticon> (Dmitry Marakasov's message of "Fri, 30 Oct 2015 13:36:14 +0300") Message-ID: <86zijgf4aq.fsf@ftfl.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2016 15:42:57 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Dmitry Marakasov writes: > I've just got a case where resilvering a new replacement disk in raidz2 > never finished. > The problem: one disk in raidz is failing by having a large number of > unreadable sectors. It's replaced with a spare. Resilver though is > constantly restarted with log full of read error from bad disk.=20 > It looks like this: > --- > pool: spool > state: ONLINE > status: One or more devices is currently being resilvered. The pool will > continue to function, possibly in a degraded state. > action: Wait for the resilver to complete. > scan: resilver in progress since Wed Oct 28 05:26:28 2015 > 369G scanned out of 9,87T at 123M/s, 22h29m to go > 41,4G resilvered, 3,65% done > config: > NAME STATE READ WRITE CKSUM > spool ONLINE 0 0 0 > raidz1-0 ONLINE 0 0 0 > ada0 ONLINE 0 0 0 > ada1 ONLINE 0 0 0 > spare-2 ONLINE 0 0 733 > ada11 ONLINE 0 0 0 > ada2 ONLINE 0 0 0 (resilvering) > raidz1-1 ONLINE 0 0 0 > ada3 ONLINE 0 0 0 > ada4 ONLINE 0 0 0 > ada5 ONLINE 0 0 0 > raidz1-2 ONLINE 0 0 0 > ada6 ONLINE 0 0 0 > ada7 ONLINE 0 0 0 > ada10 ONLINE 0 0 0 > spares > 588540573008830286 INUSE was /dev/ada2 > errors: No known data errors > --- > `resilver in progress since' date is constantly reset, so resilved > progress cannot pass beyond 5% or so. My guess is that it happens on > read errors on ada11. I think I've seen (resilvering) on ada11 line > couple of times. > In the end I've had to offline ada11 and after that resilver completed > in under 16 hours. However the situation doesn't seem normal, as I'd > prefer to not lose redundancy with offlining dying disk and still be > able to use it for resilvering (imagine there were bad sectors on ada0/1 > as well, but not intersecting with bad sectors on ada11), or at least > some more verbose indication of why the resilver is constantly restarted. > I should also note that's outdated FreeBSD 9.1, so maybe that problem > was fixed already. We have been dealing with, what seems to be, the same issue on 11.0-RELEASE= with a two-raidz1-vdev pool. You said that your issue was with a raidz2, but yo= ur zpool status output shows raidz1. The problem disk had checksum mismatches= and smart was reporting errors, but it was still online. The resilver would ma= ke it through many hours, but then restart. This loop went on for a few days. A= s in your case, after offlining the problem disk, the replacement finished. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJYY919XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1NUIwOTNBNzI2QzM4ODU1NzEyMkJBRDUz NkE0MEM4M0IwRDZFRjlFAAoJEDakDIOw1u+eBWEQAJVFWKPF9qvJTBvbt0JSsKw7 tgFYsa/EMD59rJpyIW+ASpfLczgDBgrGZCm2LCQadbqjnCgjKhDv6/Uo4kviRoaq Xg7AWOsYAQ09B3aS9zDDySaBDu4oDFCCQFiWYqzh5xm9kVnhVvCPKTywFbFmiLq0 8WZa9fvD7pYpDFMgFLxM83Z/MWclN2Cyk+SX9g87hezcc2Sr6XRXpw2S+w/KdUIr kw1ZmuDh3nqNObjgkYAqxcNc0XLEr6J4HPEKKK76HXDp/WrQ7H0peE9NmkDYQd4W 2HUKE6xPXQQDYDCQCr5Ywg4N/VJovcOQXx7ulD2SxVzj6oRUu+8suMFubOA69dGN yNgpgqiRYOxXpsUzX8PDUglNRySLQ2ysh+NcVwQyYxfho19DtTbM0VLiFEIMkaBH qqk/0lkyr5vTRo2c/6ybghkjJsHzpP51v69120fdhR+h9UrunCo4dcjmLz4kgV6f KedkJpsxYmp7W5sC4t3QKRAy7UqQJBwzbPBOH/JVhUM2airlYxyW1VJAmMm2lQIT n8y+6oV9Ue1fuykNCQo2DC9wr2ZyVfft8DO8cuXEDdyDlWQjVmXS5x470RDY6laE 0uNHCOr2z2j6fsPqTrb3iFMuObdIxF3KZXngEVbCpe9KCenZg5PWzm/+zd7vHSuW vN/lTRHj9U3idaR6C9xo =YFhG -----END PGP SIGNATURE----- --=-=-=--