From owner-freebsd-stable@freebsd.org Sun Apr 12 16:38:13 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B0B512C256E for ; Sun, 12 Apr 2020 16:38:13 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [212.12.50.234]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits)) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 490cr44FkVz4Lbj for ; Sun, 12 Apr 2020 16:38:12 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id EEFBA208879; Sun, 12 Apr 2020 16:38:10 +0000 (UTC) From: Stefan Bethke Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_F68B62EB-405E-4D32-91E1-71C70B237AB7"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: make kernel ignore broken SATA disk Date: Sun, 12 Apr 2020 18:38:10 +0200 In-Reply-To: <20200412163104.GI8012@zxy.spb.ru> Cc: freebsd-stable To: Slawa Olhovchenkov References: <20200412154319.GO8028@zxy.spb.ru> <9D60946A-6D81-444B-B6D0-36202B3BE5C6@lassitu.de> <20200412163104.GI8012@zxy.spb.ru> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 490cr44FkVz4Lbj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of stb@lassitu.de designates 212.12.50.234 as permitted sender) smtp.mailfrom=stb@lassitu.de X-Spamd-Result: default: False [-4.24 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; DMARC_NA(0.00)[lassitu.de]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[234.50.12.212.list.dnswl.org : 127.0.10.0]; SIGNED_PGP(-2.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~,4:~]; ASN(0.00)[asn:13135, ipnet:212.12.48.0/21, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.34)[asn: 13135(-1.68), country: DE(-0.02)] X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2020 16:38:13 -0000 --Apple-Mail=_F68B62EB-405E-4D32-91E1-71C70B237AB7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 12.04.2020 um 18:31 schrieb Slawa Olhovchenkov : >=20 > On Sun, Apr 12, 2020 at 06:24:09PM +0200, Stefan Bethke wrote: >=20 >> Am 12.04.2020 um 17:43 schrieb Slawa Olhovchenkov : >>>=20 >>> On Sun, Apr 12, 2020 at 04:37:06PM +0200, Stefan Bethke wrote: >>>=20 >>>> I have a server I don't have physical access to right now, which = has a broken SATA disk that produces mostly errors (but not entirely). >>>>=20 >>>> The disk has two partitions that are part of a zpool each. I can't = bring the system up with this disk being online, because ZFS is trying = its darndest to use it. >>>>=20 >>>> I already renamed the GPT partitions in the hope that ZFS would not = find them anymore, but it does. >>>>=20 >>>> I can't gpart destroy -f ada1 because "device busy". >>>>=20 >>>> Is there a way, ideally in the loader, to tell the kernel to ignore = ada1 and/or ahcich5? Or can I force ZFS some other way to ignore the = disk? I do have a spare disk I can use to replace the failed one, but I = can't get the machine into a state where I could even issue the zpool = replace command. >>>=20 >>> `zpool offline pool device` if you have enoght redundancy? >>=20 >> I do, but the command doesn't return. Instead, I'm getting loads of = sata error message. >=20 > What you zpool configuration? This is from the working system. The identifiers are slightly different, = but the structure is identical. # zpool status pool: data state: ONLINE status: Some supported features are not enabled on the pool. The pool = can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not = support the features. See zpool-features(7) for details. scan: resilvered 176K in 0 days 00:01:28 with 0 errors on Sun May 26 = 21:24:54 2019 config: NAME STATE READ WRITE CKSUM data ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/ls0data ONLINE 0 0 0 gpt/ls1data ONLINE 0 0 0 logs gpt/data0log ONLINE 0 0 0 cache gpt/data0cache ONLINE 0 0 0 errors: No known data errors pool: ls-host state: ONLINE status: Some supported features are not enabled on the pool. The pool = can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not = support the features. See zpool-features(7) for details. scan: scrub repaired 0 in 0 days 00:06:33 with 0 errors on Sun Apr 12 = 11:46:25 2020 config: NAME STATE READ WRITE CKSUM ls-host ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/ls0host ONLINE 0 0 0 gpt/ls1host ONLINE 0 0 0 logs gpt/host0log ONLINE 0 0 0 cache gpt/host0cache ONLINE 0 0 0 errors: No known data errors -- Stefan Bethke Fon +49 151 14070811 --Apple-Mail=_F68B62EB-405E-4D32-91E1-71C70B237AB7 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEzBAEBCgAdFiEEJ+hF98o4r3eU/HiPD885WK4W4sEFAl6TQ/IACgkQD885WK4W 4sGJvwgApdeUd8d1h4Xvur4rPeCQmhD02CXvPZml6x6nlBK5fF3hjd1gk3sdTIru yVehvZQft7Jxwj1GvN2foVqvvWkuCTb/2Ye3HmdL8XFE1uBmSaQ1AgljaslnVHC1 jlU09JlDvAAhwSkmFht0DmqA0gYuxwIjVnrfaEIHYGh/O4oMeUmbvacQYcKiFlkf deDTAR24ziUNtdgSeTx5d0GxnJ65h9XcTY9IMVT261TSk519Icykyfq1cVhvjeDj Kii1ytZ4rrJdLIQ1j65Pvib4gfo1DnATwTlHpasfxWt4aG6Ov7ZxJCDxMRemKYBB JzpvM1RBdAw6qmtMM1uTxZcCcrJxXg== =NFVA -----END PGP SIGNATURE----- --Apple-Mail=_F68B62EB-405E-4D32-91E1-71C70B237AB7--