From owner-freebsd-stable@freebsd.org Sun Apr 12 18:00:08 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 BE3592C47B1 for ; Sun, 12 Apr 2020 18:00:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 490ffc07pLz4RC0 for ; Sun, 12 Apr 2020 18:00:07 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72d.google.com with SMTP id l25so7460088qkk.3 for ; Sun, 12 Apr 2020 11:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FRi9Zt/u7WwqyDeWAUEQ5Fb0yfGV/b7z+ZQnEE7Vreg=; b=MJhsyZSkBwFiqFSrIYxPYb8h0hWvirrjyPUcG4dJYf3ljRPRQLNvzuRMRlzvtoLNBZ szvCAezfxNXdxlbLDtyDR67zVJ5/yvVw6wG2gjOmvTRU9P80SezNQ2xCaxg6FMPdrV2C Cpknwy2JvfrmXaZzgF+bnVLjwoknQ/C6n1JcNeBAUbAq1vQWlhvBbneNgGT3GLtIth4D 5n7S3XHYLwRd5pQDeKVH9GOdNYh9IpAc9RrzoFvaLO6zMK3K24jNvznSZsx4PJI7cy7L zMP9kNZnR8aOrEjUZ8Yl38FUQMu8RHjHXy8bXEDacT1bGuMr3JJGnke+KeTt/QyRlsEr zNYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FRi9Zt/u7WwqyDeWAUEQ5Fb0yfGV/b7z+ZQnEE7Vreg=; b=bqWP+8geiorF7n7u0AUjXHepF3hzT4Ukj2M8maRQrqfCjX0+2qjCeuwQmA28yNR3q2 BuEdVdiKDwyAG0jlkcUkfPDgyNahh35Zpfbu+n0CC0PRdKD1UYaKOH07G/iUcLxL4Iym p6SIXrZsqki/ZF3hJyaOSY8TZJv80PpsoKty5EfUPZezhWj895MVUQzgUwcifwA+166m ouox6r5urpV06iUb1WTpEI+1l/sv/0B4MSqafzEkJdUrakD8nV8vIZRp/MnAZOSk90ne NDgJ26Fl9WwaBzwdJQyiGL62DyoTubjYnmce7tjrmi006dlMYIr2XWkaZ9BQObAR0uOc jORg== X-Gm-Message-State: AGi0PuYNk8h7Fj2pH+IF12fwoTvmXvNpZfsMjF5UcFMhc+PMzRa7p3KT dKQAjL7gCGQ5uRSRoMyvjD/ts8dspb8QlsWRplzM9g== X-Google-Smtp-Source: APiQypLs/OTDUnt1VBYKnoqNGNVHsvGPReWjjcZcEGl+TnIw1t5TArrMD4U0g/3dhQtEfVIX+X1pwt0T3d5xUwilId4= X-Received: by 2002:a37:5a02:: with SMTP id o2mr12964715qkb.380.1586714406792; Sun, 12 Apr 2020 11:00:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sun, 12 Apr 2020 11:59:55 -0600 Message-ID: Subject: Re: make kernel ignore broken SATA disk To: Stefan Bethke Cc: freebsd-stable X-Rspamd-Queue-Id: 490ffc07pLz4RC0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=MJhsyZSk; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::72d) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-4.01 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[d.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.01)[ip: (-9.22), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" 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 18:00:08 -0000 Boot single user. Zfs won't import and you can do what you need. Warner On Sun, Apr 12, 2020, 8:37 AM 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. > > > Stefan > > -- > Stefan Bethke Fon +49 151 14070811 > >