From owner-freebsd-stable@freebsd.org Sun Apr 12 16:53:29 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 87D932C2B2B for ; Sun, 12 Apr 2020 16:53:29 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2k.ore.mailhop.org (outbound2k.ore.mailhop.org [54.148.219.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 490d9j0Q89z4MTw for ; Sun, 12 Apr 2020 16:53:28 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1586710407; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=iVlp28CjVQcXwfNVZ4Ccvn7K2L0LSAC7EBfnn8W7bOdt8uVINHCy5PTm1tB+xiCHIWaVORKMBkDbA FoC+fdtk/FuUVkE6CxpcyfLHtk1sLGM0od33KBJgjFJgCbe6JAMoT/bMkJFbfKO4Y62aDPuLms+/gR hy5gPc+Gd1EI3vx0l0Nv4kP3lf276kNZzHHuzygu+T6z1x2t3OSvqV8wd1j2vmRsfMrRYPE5CjVMVn dj/UrDHWUwyWcnhItW88g07t9qItDjH2gZEIBMvU53VJ89qIJKGJ7Fm9Y5RxMyrdRN0afLaSXvIYUi 4hFMoWSzVbB+hIwLJE+8Wwy+DBv3neQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=62/0DlZd2nLqvWsNLCKPg222kGzNp8ZpJWoN30r4iH4=; b=kt9ADW6sGnmFtQCQyK1XL9O9eQZBwD1J9vuqKCXuVYshNj0LFOxsxXSrJ2mOPOhLXzAUh0VRbf84w DFh7et8E+lRxqg1MwUmh6+HTxAu2cUX8A8B4uwxy+1z1vKYRrzgFAU6jbN1q8eL63ejBJQpLD+Bnrn S/sUBrVvUV+xYb2SUqvOJ8WynAdWJRIwYa14BgwzaMXrUpO2PGrGAWdUXyi+mvqMXOV35+iJaQoGTr lL8SSJ/R1SPFP6NS+h1iq7ExARfq9QgXwQFqpa58meBAxcZYdLeXNy7crfp1EjoBk+dzQ5k1aacH5B RIVzIUwRwR/EaC0ENVDX+f2Vgdeo6vg== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=62/0DlZd2nLqvWsNLCKPg222kGzNp8ZpJWoN30r4iH4=; b=N+0RiAGDhbyUOnIIKs38cDhaQ2RBPQ+eIXRX7o/IEGGZh4yLCqkcAJF9uf+Lmgm5Sn/T2BFXxD1Tb qyqYWChSGGOHPXGRemxUFqYHXZhUgtj+EpUu5gXXVpA3+gEEYiJWxuDF5opU2USTV2gQ1oaKrUVfvz XtQPL+EImapaE5Cra9YS7AzgsVUvTpAQ5V06iEg/mg4c0f//4dzK6vVRIiF73uwyroaLoxDgSfAdAf HCD2HxHb7GMk4YKC9pSrft8I4+a8v+IauetYMqhmbgBDoVkpNlTdeOgNfPE25vT3JI/FyOhD44kl4D DS8jx4V64DdHDAJyPxGA7HtoRUEfOwQ== X-MHO-RoutePath: aGlwcGll X-MHO-User: 1febc9c9-7cde-11ea-a065-6d02e42e573a X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 1febc9c9-7cde-11ea-a065-6d02e42e573a; Sun, 12 Apr 2020 16:53:26 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 03CGrOsg059134; Sun, 12 Apr 2020 10:53:24 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <36793c9efb905968508e94690b59d926f30af36b.camel@freebsd.org> Subject: Re: make kernel ignore broken SATA disk From: Ian Lepore To: Stefan Bethke , freebsd-stable Date: Sun, 12 Apr 2020 10:53:24 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 490d9j0Q89z4MTw X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.85 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.89)[-0.894,0]; NEURAL_HAM_LONG(-0.96)[-0.960,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] 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:53:29 -0000 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). > > 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. > > I already renamed the GPT partitions in the hope that ZFS would not > find them anymore, but it does. > > I can't gpart destroy -f ada1 because "device busy". > > 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. > > The the loader prompt (or in loader.conf without 'set'): set hint.ada.1.disabled=1 -- Ian