Date: Sun, 12 Apr 2020 19:08:06 +0200 From: Stefan Bethke <stb@lassitu.de> To: Slawa Olhovchenkov <slw@zxy.spb.ru> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: make kernel ignore broken SATA disk Message-ID: <A9C89DFE-0A0C-4689-8C2B-81515E330FBA@lassitu.de> In-Reply-To: <20200412170338.GJ8012@zxy.spb.ru> References: <A33629CA-63EC-45AA-AB06-09B003BBB0A6@lassitu.de> <20200412154319.GO8028@zxy.spb.ru> <9D60946A-6D81-444B-B6D0-36202B3BE5C6@lassitu.de> <20200412163104.GI8012@zxy.spb.ru> <D67DEF55-9E1B-4499-9455-E1474F5CFC26@lassitu.de> <20200412170338.GJ8012@zxy.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_1A7534D8-3B11-4FA3-8B9A-1C91C2851AA3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 12.04.2020 um 19:03 schrieb Slawa Olhovchenkov <slw@zxy.spb.ru>: >=20 > On Sun, Apr 12, 2020 at 06:38:10PM +0200, Stefan Bethke wrote: >=20 >>=20 >>=20 >>> Am 12.04.2020 um 18:31 schrieb Slawa Olhovchenkov <slw@zxy.spb.ru>: >>>=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 <slw@zxy.spb.ru>: >>>>>=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? >>=20 >> This is from the working system. The identifiers are slightly = different, but the structure is identical. >=20 > what about `zpool detach <pool> <device>` ? Now I can't boot into single user mode anymore, ZFS just waits forever, = and the kernel is printing an endless chain of SATA error messages. I really need a way to remove the broken disk before ZFS tries to access = it, or a way to stop ZFS from try to access the disk. Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 151 14070811 --Apple-Mail=_1A7534D8-3B11-4FA3-8B9A-1C91C2851AA3 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/HiPD885WK4W4sEFAl6TSvYACgkQD885WK4W 4sHhFwf9E1AvXWx81Y9RceEK1NkxQQ0kKrfBYuOv2YqQm6X04NqjwDmkogrhXdfG t4jo6qVaZskcnyHPdYj37QZBS5Imw2/j652qixVQ0T9R5yvgCnqt+g6L0Bk3L4O6 n1UVvn3+rgJhdiH7fh0+OAGsmUvZrj6xsjo7osfr7TvFNnMWLrcOk6O0FTa8Cxfw XWEsZ1p8RcX4Rho+R3C4VJUxwy4XacLSpCDCBjiQutqlQCfxgk54aO4Q5ijIZmSg ncXFZggoVo4Q7cEhF2/uSDMbxNzPiNyqsTgpMXaSV8ghs27yw0daGBA8iUgLOTPQ S8yLzZrATA+mOiyWNerfkUXjMaVFYA== =KQBw -----END PGP SIGNATURE----- --Apple-Mail=_1A7534D8-3B11-4FA3-8B9A-1C91C2851AA3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A9C89DFE-0A0C-4689-8C2B-81515E330FBA>