If you can, don’t burn in disks in your FreeNAS host. The risk of typos are just not worth it.
What do you suggest then? The instructions by @danb35 are in the FreeNAS system right?
If you can, don’t burn in disks in your FreeNAS host. The risk of typos are just not worth it.
badblocks -b 4096 -wsv /dev/ada3
) so that I have a progress indicator as it runs.Well, it's always safest to do the burn-in on a completely different system--that way there's no way you inadvertently trash one of your data drives. I don't do that, though; I have spare bays in my FreeNAS server, so if I need to burn in a disk, I just do it there.
The steps you've posted look correct, except that there's no need to reboot the server before kicking off the last long SMART test. I like to add the -v flag to badblocks (badblocks -b 4096 -wsv /dev/ada3
) so that I have a progress indicator as it runs.
Unless your system is able to handle hot-swapping drives.Then I shut down the system and remove the hdd?
Once the replace is done, the system will have already offlined the drive and you can just pull it out.Or do I need to put it OFFLINE before that?
Sounds about right.smartctl -t long /dev/ada3 (needs 470 minutes (!!!))
Don't bet on it; expect a few days.Hoping that by the time I get home from work the badblocks will be finished.
Don't bet on it; expect a few days.
No, it isn't.The new disk is not part of the volume, is it?
Yes, you can even detach the tmux session (Ctrl-B, D) as soon as you start it.But by using the tmux command I can shutdown my PC right?
Probably; the results of the SMART tests are logged with the disk--do smartctl -a /dev/ada3 (or whatever) to see them.But no results after running the first tests means no issues?
=== START OF INFORMATION SECTION === Model Family: Western Digital Red Device Model: WDC WD40EFRX-68N32N0 Serial Number: WD-WCC7K2XS6YU3 LU WWN Device Id: 5 0014ee 2ba60ca65 Firmware Version: 82.00A82 User Capacity: 4,000,787,030,016 bytes [4.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 5400 rpm Form Factor: 3.5 inches Device is: In smartctl database [for details use: -P show] ATA Version is: ACS-3 T13/2161-D revision 5 SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Thu May 3 06:19:37 2018 CEST 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: (0x00) Offline data collection activity was never started. 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: (44340) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves 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: ( 470) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x303d) SCT Status supported. SCT Error Recovery Control supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 100 253 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0027 100 253 021 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 1 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 100 100 000 Old_age Always - 8 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 - 1 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 0 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 3 194 Temperature_Celsius 0x0022 123 119 000 Old_age Always - 27 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 253 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0 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% 8 - # 2 Conveyance offline Completed without error 00% 0 - # 3 Short offline Completed without error 00% 0 - SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay.
Oo that is hard to read, please edit your post and add code tags around the output
0
in the RAW_VALUE
column of attribute Raw_Read_Error_Rate
is fine.ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 100 253 051 Pre-fail Always - 0
Which RAW value are you concerned about? Some of them should be 0, others shouldn't.I see RAW value not being 0.
Which RAW value are you concerned about? Some of them should be 0, others shouldn't.
[root@freenas] ~# badblocks -b 4096 -wsv /dev/ada3 Checking for bad blocks in read-write mode From block 0 to 976754645 Testing with pattern 0xaa: set_o_direct: Inappropriate ioctl for device ^Bd^R0.24% done, 0:54 elapsed. (0/0/0 errors) ^Bdone Reading and comparing: 74.80% done, 12:55:34 elapsed. (0/0/0 errors)
Reading and comparing: done Testing with pattern 0x55: 9.44% done, 16:04:47 elapsed. (0/0/0 errors)
I thought that the instructions were that all should be 0.
0
in the RAW_VALUE
column of attribute Raw_Read_Error_Rate
is fine. Other attributes as for example Temperature_Celsius
of course show different values as you can see in the output you just posted. Seagate HDDs unfortunately have the property to show high numeric values in Raw_Read_Error_Rate
even when completely healthy.So for so good I guess, right? [...] But now it seems to have started a new session or something since it says
smartctl -A /dev/ada3 smartctl 6.5 2016-05-07 r4318 [FreeBSD 10.3-STABLE amd64] (local build) Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: 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 100 253 021 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 1 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 100 100 000 Old_age Always - 81 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 - 1 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 0 193 Load_Cycle_Count 0x0032 200 200 000 Old_age Always - 5 194 Temperature_Celsius 0x0022 122 116 000 Old_age Always - 28 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 200 200 000 Old_age Offline - 0