Date: Sun, 06 Mar 2011 01:00:39 +0900 From: Stephane LAPIE <stephane.lapie@darkbsd.org> To: freebsd-scsi@freebsd.org Subject: Methods for collecting/managing SCSI/CAM/ATA error events Message-ID: <4D725E27.7030803@darkbsd.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3DFC4AFFD35A4CE0BD70C608 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello list, I just wanted to know if anyone knew of a proper method for handling SCSI events, such as a device reset, device not ready, illegal request, etc... (da0:isp0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 (da0:isp0:0:0:0): CAM status: SCSI Status Error (da0:isp0:0:0:0): SCSI status: Check Condition (da0:isp0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred) Same for ATA events : acd0: FAILURE - ATA_IDENTIFY status=3D41<READY,ERROR> error=3D4<ABORTED> = LBA=3D0 These are printed out as kernel messages, and visible on the console and in /var/log/messages, but keeping a running process tail-ing the log file seems sub-optimal (especially in the event the storage device holding the log dies), when compared to ZFS events which are handled via devd in the following fashion : notify 10 { match "system" "ZFS"; match "type" "data"; action "logger -p kern.warn 'ZFS: zpool I/O failure, zpool=3D$pool error=3D$zio_err'"; }; Is there any similar subsystem for SCSI/CAM/etc... ? Thanks in advance. --=20 Stephane LAPIE, EPITA SRS, Promo 2005 "Even when they have digital readouts, I can't understand them." --MegaTokyo --------------enig3DFC4AFFD35A4CE0BD70C608 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1yXioACgkQ24Ql8u6TF2NlPgCfeb2kVjx9qhxlfYpvyhdWrJM7 mTAAoL3g/B4LRNj1UJ3Pd3lapLfnMKHL =e7eA -----END PGP SIGNATURE----- --------------enig3DFC4AFFD35A4CE0BD70C608--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D725E27.7030803>