From owner-freebsd-stable@freebsd.org Sun Apr 12 17:13:19 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 081A22C339D for ; Sun, 12 Apr 2020 17:13:19 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2a00:14b0:4200:32e0::1ea]) (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-digest SHA256) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 490dcZ1GsGz4NkS; Sun, 12 Apr 2020 17:13:18 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 73040208A23; Sun, 12 Apr 2020 17:13:15 +0000 (UTC) From: Stefan Bethke Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_0DF36CDA-6283-496E-A5B1-9968ABAF3E4E"; 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 19:13:14 +0200 In-Reply-To: <36793c9efb905968508e94690b59d926f30af36b.camel@freebsd.org> Cc: freebsd-stable To: Ian Lepore References: <36793c9efb905968508e94690b59d926f30af36b.camel@freebsd.org> X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 490dcZ1GsGz4NkS X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of stb@lassitu.de designates 2a00:14b0:4200:32e0::1ea as permitted sender) smtp.mailfrom=stb@lassitu.de X-Spamd-Result: default: False [-5.59 / 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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ATTACHMENT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; DMARC_NA(0.00)[lassitu.de]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-1.69)[ip: (-4.37), ipnet: 2a00:14b0::/32(-2.10), asn: 13135(-1.97), country: DE(-0.02)]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; 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:2a00:14b0::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[] 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 17:13:19 -0000 --Apple-Mail=_0DF36CDA-6283-496E-A5B1-9968ABAF3E4E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 12.04.2020 um 18:53 schrieb Ian Lepore : >=20 > On Sun, 2020-04-12 at 16:37 +0200, Stefan Bethke wrote: >> 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 > The the loader prompt (or in loader.conf without 'set'): >=20 > set hint.ada.1.disabled=3D1 Doesn't seem to have any effect. ada1 still probed, and still prints = error messages to the console. Stefan -- Stefan Bethke Fon +49 151 14070811 --Apple-Mail=_0DF36CDA-6283-496E-A5B1-9968ABAF3E4E 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/HiPD885WK4W4sEFAl6TTCoACgkQD885WK4W 4sFGzgf/dTUeAUKgTpnEyyYsBjWvyewSZ4klsoVUCIvOdeqy0t2NGgh/ntiTJIF2 ttIzdvFLdroaVvVRv+X++ziKyE+iBK4Jr7TrhYjG5C1zGTNDXkLAiWlXxDcYAVsj HVYLOXfpxqB9ZqlHs5OX+vqoDr//tJy492594pCfvRy6uSVtA3xJqBF2XhK6qmeZ TZmo4ZywUkOFR75f2tHfX/y07tjRba8erwVe5bjUoOl+ZIrd87P64G5Bf0O2yzIG Jk0SOoRzp2AMvTSEeTdeaX6kjS0U9c3xalBxoidoT8x5YAsppepBxurjTPQiYQhr wCa6AXbn/vyu4OfSbJigbFf1cz/dCA== =9xFt -----END PGP SIGNATURE----- --Apple-Mail=_0DF36CDA-6283-496E-A5B1-9968ABAF3E4E--