[Burn the disc] It cannot work

kikotte

Explorer
Joined
Oct 1, 2017
Messages
75
Hi,

I try to use this disk-burnin.sh but don't make it work.

sh disk-burnin.sh da14

Code:
root@freenas:~ # sh disk-burnin.sh da14
+-----------------------------------------------------------------------------
+ Started burn-in of /dev/da14 : Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
Host: freenas.local
Drive Model: HGST_HUS728T8TALE6L4
Serial Number: VAJ1K14L
Short test duration: 2 minutes
Short test sleep duration: 120 seconds
Extended test duration: 912 minutes
Extended test sleep duration: 54720 seconds
Log file: ./burnin-HGST_HUS728T8TALE6L4_VAJ1K14L.log
Bad blocks file: ./burnin-HGST_HUS728T8TALE6L4_VAJ1K14L.bb
+-----------------------------------------------------------------------------
+ Run SMART short test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
Dry run: would start the SMART short test and sleep 120 seconds until the test finishes
Finished SMART short test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
+ Run SMART extended test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
Dry run: would start the SMART extended test and sleep 54720 seconds until the test finishes
Finished SMART extended test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
+ Run badblocks test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
Dry run: would run badblocks -b 4096 -wsv -o ./burnin-HGST_HUS728T8TALE6L4_VAJ1K14L.bb /dev/da14
Finished badblocks test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
+ Run SMART short test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
Dry run: would start the SMART short test and sleep 120 seconds until the test finishes
Finished SMART short test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
+ Run SMART extended test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
Dry run: would start the SMART extended test and sleep 54720 seconds until the test finishes
Finished SMART extended test on drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
+ SMART information for drive /dev/da14: Mon May  6 21:31:37 CEST 2019
+-----------------------------------------------------------------------------
smartctl 6.6 2017-11-05 r4594 [FreeBSD 11.1-STABLE amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     HGST HUS728T8TALE6L4
Serial Number:    VAJ1K14L
LU WWN Device Id: 5 000cca 099dce355
Firmware Version: V8GNW410
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon May  6 21:31:37 2019 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Enabled.
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:                (   87) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No 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:        ( 912) minutes.
SCT capabilities:              (0x003d) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   016    -    0
  2 Throughput_Performance  P-S---   100   100   054    -    0
  3 Spin_Up_Time            POS---   100   100   024    -    0
  4 Start_Stop_Count        -O--C-   100   100   000    -    3
  5 Reallocated_Sector_Ct   PO--CK   100   100   005    -    0
  7 Seek_Error_Rate         PO-R--   100   100   067    -    0
  8 Seek_Time_Performance   P-S---   100   100   020    -    0
  9 Power_On_Hours          -O--C-   100   100   000    -    3
10 Spin_Retry_Count        PO--C-   100   100   060    -    0
12 Power_Cycle_Count       -O--CK   100   100   000    -    3
192 Power-Off_Retract_Count -O--CK   100   100   000    -    6
193 Load_Cycle_Count        -O--C-   100   100   000    -    6
194 Temperature_Celsius     -O----   171   171   000    -    35 (Min/Max 24/38)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
197 Current_Pending_Sector  -O---K   100   100   000    -    0
198 Offline_Uncorrectable   ---R--   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O-R--   200   200   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x02           SL  R/O      1  Comprehensive SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL     R/O    256  Device Statistics log
0x04       SL      R/O    255  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x0c       GPL     R/O   5501  Pending Defects log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x12       GPL     R/O      1  SATA NCQ Non-Data log
0x13       GPL     R/O      1  SATA NCQ Send and Receive log
0x15       GPL     R/W      1  Rebuild Assist log
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x24       GPL     R/O    256  Current Device Internal Status Data log
0x25       GPL     R/O    256  Saved Device Internal Status Data log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

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


I have tried to enter.

sysctl kern.geom.debugflags=0x10

Edit: link https://github.com/Spearfoot/disk-burnin-and-testing
 
Last edited:

droeders

Contributor
Joined
Mar 21, 2016
Messages
179
The script is running in "dry-run" mode, which is the default behavior. From the Github link you posted:

You can run the script in 'dry run mode' to check the sleep duration calculations and to insure that the sequence of commands suits your needs. In 'dry runs' the script does not actually perform any SMART tests or invoke the sleep or badblocks programs. The script is distributed with 'dry runs' enabled, so you will need to edit the Dry_Run variable, setting it to 0, in order to actually perform tests on drives.


After you edit the script, it should work. Just make very sure you specify the correct device.
 

kikotte

Explorer
Joined
Oct 1, 2017
Messages
75
The script is running in "dry-run" mode, which is the default behavior. From the Github link you posted:




After you edit the script, it should work. Just make very sure you specify the correct device.

Had missed it.

When the test is completed, will it turn out if the disk is ready for the test or if the disc is to be returned?
 

droeders

Contributor
Joined
Mar 21, 2016
Messages
179
Had missed it.

When the test is completed, will it turn out if the disk is ready for the test or if the disc is to be returned?

I've never used the script so I can't say. I'd guess it will tell you if any of the badblocks tests fail, and you can check the SMART data to see if anything looks amiss.
 

pro lamer

Guru
Joined
Feb 16, 2018
Messages
626
When the test is completed, will it turn out if the disk is ready for the test or if the disc is to be returned?
One more test might be worth performing: solnet array test to check disk average write and read speed. Instead one can use dd. Disk that's slower (much slower? ) than it should has some problems.

Sent from my phone
 

kikotte

Explorer
Joined
Oct 1, 2017
Messages
75
I've never used the script so I can't say. I'd guess it will tell you if any of the badblocks tests fail, and you can check the SMART data to see if anything looks amiss.
One more test might be worth performing: solnet array test to check disk average write and read speed. Instead one can use dd. Disk that's slower (much slower? ) than it should has some problems.

Sent from my phone

Have done the test.
 
Top