Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2020 11:59:55 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Stefan Bethke <stb@lassitu.de>
Cc:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: make kernel ignore broken SATA disk
Message-ID:  <CANCZdfp3i_B3GdREEk1F5Zm2OAVC-GTmUHg%2BWaHpRaDkqW4XXg@mail.gmail.com>
In-Reply-To: <A33629CA-63EC-45AA-AB06-09B003BBB0A6@lassitu.de>
References:  <A33629CA-63EC-45AA-AB06-09B003BBB0A6@lassitu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <stb@lassitu.de> 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 <stb@lassitu.de>   Fon +49 151 14070811
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfp3i_B3GdREEk1F5Zm2OAVC-GTmUHg%2BWaHpRaDkqW4XXg>