Date: Sun, 12 Apr 2020 16:57:06 +0200 From: Stefan Bethke <stb@lassitu.de> To: Eugene Grosbein <eugen@grosbein.net> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: make kernel ignore broken SATA disk Message-ID: <EB35C42B-D200-4416-ABF8-B356A53BDA0B@lassitu.de> In-Reply-To: <14aeff4a-9241-20ef-2827-5a5282d08a94@grosbein.net> References: <A33629CA-63EC-45AA-AB06-09B003BBB0A6@lassitu.de> <14aeff4a-9241-20ef-2827-5a5282d08a94@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_49CA8FB0-6B6F-4047-879C-86F9F6A65A05 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 12.04.2020 um 16:45 schrieb Eugene Grosbein <eugen@grosbein.net>: >=20 > 12.04.2020 21:37, 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 > It depends on the HDD controller the disk is attached to. What = controller and driver does it have? This is from an identlical machine without disk issues: # camcontrol devlist <ST3000DM001-1CH166 CC27> at scbus4 target 0 lun 0 (ada0,pass0) <ST3000DM001-1CH166 CC27> at scbus5 target 0 lun 0 (ada1,pass1) <ST3000DM001-1CH166 CC27> at scbus6 target 0 lun 0 (ada2,pass2) <AHCI SGPIO Enclosure 2.00 0001> at scbus8 target 0 lun 0 (pass3) # pciconf -lv ... ahci0@pci0:0:23:0: class=3D0x010601 card=3D0x088415d9 = chip=3D0xa1028086 rev=3D0x31 hdr=3D0x00 vendor =3D 'Intel Corporation' device =3D 'Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA = Controller [AHCI Mode]' class =3D mass storage subclass =3D SATA ... dmesg: ahci0: <Intel Sunrise Point AHCI SATA controller> port = 0xf050-0xf057,0xf040-0xf043,0xf020-0xf03f mem = 0xdf410000-0xdf411fff,0xdf41e000-0xdf4 1e0ff,0xdf41d000-0xdf41d7ff irq 16 at device 23.0 on pci0 ahci0: AHCI v1.31 with 8 6Gbps ports, Port Multiplier not supported ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich1: <AHCI channel> at channel 1 on ahci0 ahcich2: <AHCI channel> at channel 2 on ahci0 ahcich3: <AHCI channel> at channel 3 on ahci0 ahcich4: <AHCI channel> at channel 4 on ahci0 ahcich5: <AHCI channel> at channel 5 on ahci0 ahcich6: <AHCI channel> at channel 6 on ahci0 ahcich7: <AHCI channel> at channel 7 on ahci0 ahciem0: <AHCI enclosure management bridge> on ahci0 ada0 at ahcich4 bus 0 scbus4 target 0 lun 0 ada0: <ST3000DM001-1CH166 CC27> ACS-2 ATA SATA 3.x device ada0: Serial Number Z1F4GVC3 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 2861588MB (5860533168 512 byte sectors) ada0: quirks=3D0x1<4K> ada1 at ahcich5 bus 0 scbus5 target 0 lun 0 ada1: <ST3000DM001-1CH166 CC27> ACS-2 ATA SATA 3.x device ada1: Serial Number W1F5180B ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 2861588MB (5860533168 512 byte sectors) ada1: quirks=3D0x1<4K> ada2 at ahcich6 bus 0 scbus6 target 0 lun 0 ada2: <ST3000DM001-1CH166 CC27> ACS-2 ATA SATA 3.x device ada2: Serial Number Z1F4EJEQ ada2: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada2: Command Queueing enabled ada2: 2861588MB (5860533168 512 byte sectors) ada2: quirks=3D0x1<4K> Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 151 14070811 --Apple-Mail=_49CA8FB0-6B6F-4047-879C-86F9F6A65A05 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/HiPD885WK4W4sEFAl6TLEIACgkQD885WK4W 4sHgZAgApzX77Z16dPiGMEDU6B0CYDYFRIVgzgzFYv8he9bkj2hPN0loRBdxh4Fw xwGOAIaCGmw4Md79j7839WNpU+o5VnKWKIbltW1FWSD04JOSfXn9hIPI8NVMJW+h PajLtmQw70V18zbgN1/yBhvT6taaDuB15arF3NapAOnqEryDRJvukyCbj/RU/BKZ VEW9potzxK1XLWH8m2CxDXYZ+3NOXOhnIPihnwZ/Xg4CLOxiPnYlYPrCb1qwiKqt 1OODHjwtJSP9OgU6cW8cmnzHF96riXn1TCiRc8LVhZbQNXmvZPYkMZM/jn6Tj0xf xdwHLEp1mHb8nHvDAdQkxDAek2kMWQ== =UCIi -----END PGP SIGNATURE----- --Apple-Mail=_49CA8FB0-6B6F-4047-879C-86F9F6A65A05--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EB35C42B-D200-4416-ABF8-B356A53BDA0B>