Date: Tue, 27 Mar 2018 11:22:47 +0200 From: Stefan Esser <se@freebsd.org> To: Michael Dexter <editor@callfortesting.org>, Chuck Tuffli <chuck@tuffli.net> Cc: FreeBSD File-Systems <freebsd-fs@freebsd.org> Subject: Re: smart(8) Call for Testing Message-ID: <f0e7979d-ae51-bbd5-f1b5-b8dcdea3ad01@freebsd.org> In-Reply-To: <4754cb2f-76bb-a69b-0cf5-eff4d621eb29@callfortesting.org> References: <4754cb2f-76bb-a69b-0cf5-eff4d621eb29@callfortesting.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <device> > smartctl -a /dev/<device> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f0e7979d-ae51-bbd5-f1b5-b8dcdea3ad01>