From owner-freebsd-fs@freebsd.org Tue Mar 27 09:22:58 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45D03F64302 for ; Tue, 27 Mar 2018 09:22:58 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout07.t-online.de (mailout07.t-online.de [194.25.134.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C51C278CEE for ; Tue, 27 Mar 2018 09:22:57 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd19.aul.t-online.de (fwd19.aul.t-online.de [172.20.27.65]) by mailout07.t-online.de (Postfix) with SMTP id E2E9C427541A; Tue, 27 Mar 2018 11:22:49 +0200 (CEST) Received: from Stefans-MBP-7.fritz.box (bjcJb4ZCghhJPAD9xmef7tjJvWBjgkderO6QRDj2-EWDyxmxWQbmdSjoxg4rfj4g+5@[87.151.209.250]) by fwd19.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1f0koa-45D1Ae0; Tue, 27 Mar 2018 11:22:48 +0200 Subject: Re: smart(8) Call for Testing To: Michael Dexter , Chuck Tuffli References: <4754cb2f-76bb-a69b-0cf5-eff4d621eb29@callfortesting.org> From: Stefan Esser Cc: FreeBSD File-Systems Message-ID: Date: Tue, 27 Mar 2018 11:22:47 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <4754cb2f-76bb-a69b-0cf5-eff4d621eb29@callfortesting.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ID: bjcJb4ZCghhJPAD9xmef7tjJvWBjgkderO6QRDj2-EWDyxmxWQbmdSjoxg4rfj4g+5 X-TOI-MSGID: 0a762016-6caf-4013-8edc-b52f72ebe3ff X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 09:22:58 -0000 Am 26.03.18 um 20:52 schrieb Michael Dexter: > As you may or may not know, Chuck Tuffli has developed a simple, > scripting-friendly S.M.A.R.T. utility for FreeBSD that is designed to be > included in base once proven. To that end, smart(8) is ready for testing on > the broadest selection of disk and controller combinations possible. > > IF you should encounter an errors such as no output for your device, please > submit a ticket at either of the above sites with the output of: > > uname -a > camcontrol devlist -v > camcontrol identify > smartctl -a /dev/ Hi Michael and Chuck, not sure, whether this is a problem, but I get a surprising result for my 6GB WD-Red SATA drives: # smart -it /dev/ada0 Device WDC WD60EFRX-68TGBN1 Revision 82.00A82 Serial WD-WX21DC42E411 208 1 47 0 200 200 0 208 3 39 0 213 196 8333 208 4 50 0 100 100 35 208 5 51 0 200 200 0 208 7 46 0 200 200 0 208 9 50 0 68 68 23695 208 10 50 0 100 253 0 208 11 50 0 100 253 0 208 12 50 0 100 100 33 208 192 50 0 200 200 26 208 193 50 0 200 200 758 208 194 34 0 109 101 43 208 196 50 0 200 200 0 208 197 50 0 200 200 0 208 198 48 0 100 253 0 208 199 50 0 200 200 0 208 200 8 0 100 253 0 208 5 197 2 0 0 0 208 1 10 0 0 0 0 The last two rows re-use attribute IDs seen before, are out of order and do not report the values I'd expect. These rows are missing from the smartctl -a output: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 213 196 021 Pre-fail Always - 8333 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 35 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 9 Power_On_Hours 0x0032 068 068 000 Old_age Always - 23695 10 Spin_Retry_Count 0x0032 100 253 000 Old_age Always - 0 11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 33 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 26 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 758 194 Temperature_Celsius 0x0022 109 101 000 Old_age Always - 43 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0 Should the last two lines of smart output be omitted (e.g. by filtering based on their flag value?). BTW: an option to print fixed width columns with headings or CSV format with header line (or e.g. JSON) might be useful. And: While the first three columns are documented, the -t output is not. Regards, STefan