From nobody Mon Dec 6 18:55:17 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A1DAB18BA778 for ; Mon, 6 Dec 2021 18:55:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J7CKx21jfz4ZNZ for ; Mon, 6 Dec 2021 18:55:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 26551117C8 for ; Mon, 6 Dec 2021 18:55:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B6ItHcu035814 for ; Mon, 6 Dec 2021 18:55:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B6ItHue035813 for bugs@FreeBSD.org; Mon, 6 Dec 2021 18:55:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260257] CAM_IO_STATS does not track MEDIUM ERRORs Date: Mon, 06 Dec 2021 18:55:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: asomers@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638816917; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BNQVRge08rXGKrBvomapdJ9QVm5Qysh/HgogAgVTScg=; b=s0P40DEiyD4dF/O234Ig9DrKzzXsH5sA5dl49wjII3esFIs5OaZhGiKbt6XM55ZFEGqnUm +2oc9od1/ffPevF4WKOxCbrKnRpmUyG7BE1YpzM/hW6QOzUYjIv2MCv7L8OtzWVPgUKeDh NG+Y3gP8xGCQZjFvmYwoNI8DQVhoCX4cWvI6JpweI4F5p283+0bC57uJ4+9De91gbvzaBw KnAbaDA1EyUP6YfMknTNK9fn+z37g9PZtFIpL9dL8e/aN9X/9qpuB3qAJ7Xw7xRh367Kjg PkGikPen6m8oIxyx7pcORh40tuJ4OOVrVXGVGVy58ekEhzndPnxJCeYV+fKCNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638816917; a=rsa-sha256; cv=none; b=s+rliIgIYCdmZGWil2lgJ0vuuB2pvNGzBY0xSGkGD/xosnAm9muN/nn3aiSbn/clOD8aPd G3QcJ+Zudx62sDb4SQe/STD4eG2bKodfY5TZNVRyuwgAR6kTewNNOQEOm3YMjJbgtyuq/q ulmtF7Uct+Jyg6GvFrCkJk2K7BGeWTuBh6LUDkv1GOApoOQE8WcOvfxiS6+ndqg5hmkOkc MX/zKXFrQaG8SvShdmg/H93gbLAifmNjoTUGS1TgAmrGXPR33zDzI6cAcnAP9tHPG8E2zj sQYn7fnK6sypriy8GQnH3QemRdAKNkLNrfnVpeayzrVm4wiNFe3+evmz9IIs6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260257 Bug ID: 260257 Summary: CAM_IO_STATS does not track MEDIUM ERRORs Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org The CAM_IO_STATS kernel config option adds some sysctls to every disk device that track the number of errors, timeouts, and pack invalidations it has ha= d.=20 However, some slip through the cracks. I consistently see dmesg report MED= IUM ERRORs such as the below, while the stats sysctls report nothing. There are clearly errors, because gmultipath reports one path as DEGRADED and ZFS rep= orts faults on the drive. It seems that some error path isn't updating the stats like it should. (da424:mpr3:0:115:0): READ(10). CDB: 28 00 06 3c 3a 68 00 00 d7 00=20 (da424:mpr3:0:115:0): CAM status: SCSI Status Error (da424:mpr3:0:115:0): SCSI status: Check Condition (da424:mpr3:0:115:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error) (da424:mpr3:0:115:0): Info: 0x63c3a7b (da424:mpr3:0:115:0): Field Replaceable Unit: 134 (da424:mpr3:0:115:0): Command Specific Info: 0x81037000 (da424:mpr3:0:115:0): Actual Retry Count: 206 (da424:mpr3:0:115:0): Error 5, Unretryable error GEOM_MULTIPATH: Error 5, da424 in mp_JB2_S57 marked FAIL GEOM_MULTIPATH: all paths in mp_JB2_S57 were marked FAIL, restore da244 $ sysctl kern.cam.da.424.stats kern.cam.da.424.stats.pack_invalidations: 0 kern.cam.da.424.stats.timeouts: 0 kern.cam.da.424.stats.errors: 0 --=20 You are receiving this mail because: You are the assignee for the bug.=