Re: smartctl on SSD question
On Saturday 20 March 2021 08:29:04 Alexander V. Makartsev wrote:
> On 20.03.2021 15:50, Gene Heskett wrote:
> > Greetings all;
> >
> > I have been using amanda on this machine to back up the rest of my
> > machines for over 2 decades. So I'm not a new user.
> >
> > But I installed a 240 gig SSD about 6 months back, because its use
> > as a holding disk tripled amanda's speed at backing up this 6
> > machine system.
> >
> > But amanda has been increasingly plagued with bad crc checksums of
> > the data in this holding disk, which usually leaves the files on
> > that disk as it redoes that disklist entry bypassing the holding
> > disk, which obviously takes longer as it is then doing the backup
> > directly to the archive medium.
> >
> > I just initiated a "-t long" test on it. So since its an SSD, what
> > is the best command to extract the most complete test report
> > possible when the test has finished? Its now done, and the -a option
> > gives it a clean report, along with a list of this and thats not
> > supported. Cheap adata drive.
> >
> > Thank you.
> >
> > Cheers, Gene Heskett
>
> You can see SMART test results with "--log=selftest" parameter.
> # smartctl --log=selftest /dev/sdZ
root@coyote:/$ smartctl --log=selftest /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.19.0-0.bpo.9-rt-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 2580 -
> Can you post back the output from "smartctl" with "--all" parameter
> for this device?
root@coyote:/$ smartctl --all /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.19.0-0.bpo.9-rt-amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: ADATA SU650
Serial Number: AA000000000000010685
Firmware Version: R0831B0
User Capacity: 240,057,409,536 bytes [240 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ACS-2 T13/2015-D revision 3
SATA Version is: SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Sat Mar 20 14:09:15 2021 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x02) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 120) seconds.
Offline data collection
capabilities: (0x11) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
No Selective Self-test supported.
SMART capabilities: (0x0002) Does not save SMART data before
entering power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 10) minutes.
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0032 100 100 050 Old_age Always - 0
5 Reallocated_Sector_Ct 0x0032 100 100 050 Old_age Always - 0
9 Power_On_Hours 0x0032 100 100 050 Old_age Always - 2588
12 Power_Cycle_Count 0x0032 100 100 050 Old_age Always - 11
160 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 0
161 Unknown_Attribute 0x0033 100 100 050 Pre-fail Always - 100
163 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 8
164 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 15594
165 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 39
166 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 2
167 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 28
168 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 7000
169 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 100
175 Program_Fail_Count_Chip 0x0032 100 100 050 Old_age Always - 0
176 Erase_Fail_Count_Chip 0x0032 100 100 050 Old_age Always - 0
177 Wear_Leveling_Count 0x0032 100 100 050 Old_age Always - 0
178 Used_Rsvd_Blk_Cnt_Chip 0x0032 100 100 050 Old_age Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 050 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 050 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 050 Old_age Always - 11
194 Temperature_Celsius 0x0022 100 100 050 Old_age Always - 40
195 Hardware_ECC_Recovered 0x0032 100 100 050 Old_age Always - 3119
196 Reallocated_Event_Count 0x0032 100 100 050 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 050 Old_age Always - 0
198 Offline_Uncorrectable 0x0032 100 100 050 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x0032 100 100 050 Old_age Always - 0
232 Available_Reservd_Space 0x0032 100 100 050 Old_age Always - 100
241 Total_LBAs_Written 0x0030 100 100 050 Old_age Offline - 54282
242 Total_LBAs_Read 0x0030 100 100 050 Old_age Offline - 29641
245 Unknown_Attribute 0x0032 100 100 050 Old_age Always - 86388
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 2580 -
Selective Self-tests/Logging not supported
Not much promise of better data from that I guess.
> Usually cheap and\or old SSDs have a limited SMART information, but it
> still worth to look.
> For reference, here is the output for one of my consumer grade SSDs
> (2-bit 2D MLC NAND), used as system disk for two OSs:
> https://paste.debian.net/1190136
>
> It was used daily for 23932 hours (attribute #9) and still reports 99%
> health left (attribute #231).
Somewhere in a drawer here, I have an original 1T Seagate Barracuda that
has 67,000 some hours on it, and has had 25 reallocated sectors since the
first time I looked at it when it had less than 2500 hours on it. Thats
the Joe Biden of hard drives, but unlike Joe, its never stumbled yet.
At 86, I am obviously in better shape than Joe. And thats not all that good...
Thank you Alexander.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: