badblocks testing not working properly

Status
Not open for further replies.

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
I having been running the command badblocks -ws /dev/daX on some of my new drives. The problem I have is when in tmux I can run the command on some of the drives. But on the other half of the drives I get the error " operation not permitted while trying to open /dev/daX'.

Has anyone ever seen this error before?

Or know of anyway to fix this error?
 
Joined
Dec 2, 2015
Messages
730
Is there any chance that those locations correspond to your boot drives?
 
Joined
Dec 2, 2015
Messages
730
Very strange. Which exact badblocks command are you running? What are the details of your hardware? Which FreeNAS version?

What do you get from smartctl -i /dev/daX for each of the problematic drives? Please put the results between CODE tags (using the "code" button above the editing pane).
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
I am using freenas version 9.2.1.8. For the badblocks command I am using the command badblocks -ws /dev/daX

For hardware I have :
Intel Pentium G3258 3.2GHz Dual-Core Processor
MSI Z97 PC MATE ATX LGA1150 Motherboard
Crucial Ballistix Sport 16GB (2 x 8GB) DDR3-1600 Memory
6x Western Digital WD Green 2TB 3.5" 5400RPM Internal Hard Drive
Intel Nic
IBM serveraid M1015 flashed to lsi it mode
Corsair Builder 430W 80+ Bronze Certified ATX Power Supply

I will go run the smartctl code and post the reply shortly.
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
When I run the smartctl -i command I get the following for each drive.
da3
Code:
Model Family:	 Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model:	 WDC WD20EZRX-00D8PB0
Serial Number:	WD-WMC4M0D5XVLU
LU WWN Device Id: 5 0014ee 604cb4d45
Firmware Version: 80.00A80
User Capacity:	2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:	 512 bytes logical, 4096 bytes physical
Rotation Rate:	5400 rpm
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:	Sun Jan 22 17:10:37 2017 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled



da2
Code:
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p12 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:	 Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model:	 WDC WD20EZRX-00D8PB0
Serial Number:	WD-WCC4MHEYXF86
LU WWN Device Id: 5 0014ee 2b508fdcb
Firmware Version: 80.00A80
User Capacity:	2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:	 512 bytes logical, 4096 bytes physical
Rotation Rate:	5400 rpm
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:	Sun Jan 22 17:13:31 2017 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled



da1
Code:
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p12 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:	 Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model:	 WDC WD20EZRX-00D8PB0
Serial Number:	WD-WCC4M3223891
LU WWN Device Id: 5 0014ee 25f91817e
Firmware Version: 80.00A80
User Capacity:	2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:	 512 bytes logical, 4096 bytes physical
Rotation Rate:	5400 rpm
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:	Sun Jan 22 17:14:32 2017 PST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
Very strange. Which exact badblocks command are you running? What are the details of your hardware? Which FreeNAS version?

What do you get from smartctl -i /dev/daX for each of the problematic drives? Please put the results between CODE tags (using the "code" button above the editing pane).
Tanks for any help you can give. Im at a total lose on this one.
 
Joined
Dec 2, 2015
Messages
730
I'm rapidly running out of ideas. I can only think of the following general causes:

  1. running the badblocks command on the wrong drive. The smartctl output shows the expected drives at those locations, so I think we can rule this one out.
  2. OS is installed on these three drives. This could possibly have occurred if the wrong drive(s) were specified during the installation. What does zpool status produce?
  3. Wrong badblocks command. What exact command did you run?
  4. Inadequate permissions to run badblocks (this should have prevented it on all drives, but I'm grasping at straws here). How were you accessing the command line? Were you logged in as root via ssh? If not, explain exactly how you accessed the command line.
  5. Something wrong with the drives or cables. I think this should have given a different error though. But, for completeness, have you run any long smart tests on the drives? If so, study the output of smartctl -a /dev/daX to determine if the tests passed or not. If you haven't run those tests, do a smarctl -t long /dev/daX on each drive. This test will take 4 hours or so to complete.
 
Last edited:

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
I'm rapidly running out of ideas. I can only think of the following general causes:

  1. running the badblocks command on the wrong drive. The smartctl output shows the expected drives at those locations, so I think we can rule this one out.
  2. OS is installed on these three drives. This could possibly have occurred if the wrong drive(s) were specified during the installation. What does zpool status produce?
  3. Wrong badblocks command. What exact command did you run?
  4. Inadequate permissions to run badblocks (this should have prevented it on all drives, but I'm grasping at straws here). How were you accessing the command line? Were you logged in as root via ssh? If not, explain exactly how you accessed the command line.
  5. Something wrong with the drives or cables. I think this should have given a different error though. But, for completeness, have you run any long smart tests on the drives? If so, study the output of smartctl -a /dev/daX to determine if the tests passed or not. If you haven't run those tests, do a smarctl -t long /dev/daX on each drive. This test will take 4 hours or so to complete.
2. The os was installed more then three years ago so that shouldnt be the problem.
3. The badlocks command I was running was
Code:
badblocks -ws /dev/dax

4. I tried running the command through shell on the online gui to start with. When that didn't work I setup putty and ssh in as root.
5. I will run a long test on each drive and post the results when they have finished.
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
I'm rapidly running out of ideas. I can only think of the following general causes:

  1. running the badblocks command on the wrong drive. The smartctl output shows the expected drives at those locations, so I think we can rule this one out.
  2. OS is installed on these three drives. This could possibly have occurred if the wrong drive(s) were specified during the installation. What does zpool status produce?
  3. Wrong badblocks command. What exact command did you run?
  4. Inadequate permissions to run badblocks (this should have prevented it on all drives, but I'm grasping at straws here). How were you accessing the command line? Were you logged in as root via ssh? If not, explain exactly how you accessed the command line.
  5. Something wrong with the drives or cables. I think this should have given a different error though. But, for completeness, have you run any long smart tests on the drives? If so, study the output of smartctl -a /dev/daX to determine if the tests passed or not. If you haven't run those tests, do a smarctl -t long /dev/daX on each drive. This test will take 4 hours or so to complete.
I ran long smart test and based on my limited knowledge the results look good to me.

da1
Code:
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   171   170   021	Pre-fail  Always	   -	   4450
  4 Start_Stop_Count		0x0032   100   100   000	Old_age   Always	   -	   30
  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   074   074   000	Old_age   Always	   -	   19242
 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	   -	   30
192 Power-Off_Retract_Count 0x0032   200   200   000	Old_age   Always	   -	   27
193 Load_Cycle_Count		0x0032   138   138   000	Old_age   Always	   -	   187790
194 Temperature_Celsius	 0x0022   115   111   000	Old_age   Always	   -	   32
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   200   200   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


da2
Code:
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   171   171   021	Pre-fail  Always	   -	   4441
  4 Start_Stop_Count		0x0032   100   100   000	Old_age   Always	   -	   30
  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   074   074   000	Old_age   Always	   -	   19242
 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	   -	   30
192 Power-Off_Retract_Count 0x0032   200   200   000	Old_age   Always	   -	   27
193 Load_Cycle_Count		0x0032   138   138   000	Old_age   Always	   -	   187246
194 Temperature_Celsius	 0x0022   115   111   000	Old_age   Always	   -	   32
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   200   200   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


da3
Code:
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   174   173   021	Pre-fail  Always	   -	   4258
  4 Start_Stop_Count		0x0032   100   100   000	Old_age   Always	   -	   21
  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   081   081   000	Old_age   Always	   -	   14453
 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	   -	   21
192 Power-Off_Retract_Count 0x0032   200   200   000	Old_age   Always	   -	   19
193 Load_Cycle_Count		0x0032   177   177   000	Old_age   Always	   -	   70423
194 Temperature_Celsius	 0x0022   116   111   000	Old_age   Always	   -	   31
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   200   200   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


I think it may have just been some sort of weird fluke error that wasn't letting me run the command. Do you see anything wrong with the smart test results?
 
Joined
Dec 2, 2015
Messages
730
Is that all you get from smartctl -a /dev/daX? There should be a lot more than that.
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
Is that all you get from smartctl -a /dev/daX? There should be a lot more than that.
I ran the command again and I did get a lot more info this time, weird.

da1
Code:
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p12 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:	 Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model:	 WDC WD20EZRX-00D8PB0
Serial Number:	WD-WCC4M3223891
LU WWN Device Id: 5 0014ee 25f91817e
Firmware Version: 80.00A80
User Capacity:	2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:	 512 bytes logical, 4096 bytes physical
Rotation Rate:	5400 rpm
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:	Mon Jan 23 09:04:29 2017 PST
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:  (0x82) Offline data collection activity
										was completed without error.
										Auto Offline Data Collection: Enabled.
Self-test execution status:	  (  33) The self-test routine was interrupted
										by the host with a hard or soft reset.
Total time to complete Offline
data collection:				(25440) 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:		( 257) minutes.
Conveyance self-test routine
recommended polling time:		(   5) minutes.
SCT capabilities:			  (0x7035) SCT Status 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   200   200   051	Pre-fail  Always	   -	   0
  3 Spin_Up_Time			0x0027   171   170   021	Pre-fail  Always	   -	   4450
  4 Start_Stop_Count		0x0032   100   100   000	Old_age   Always	   -	   30
  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   074   074   000	Old_age   Always	   -	   19243
 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	   -	   30
192 Power-Off_Retract_Count 0x0032   200   200   000	Old_age   Always	   -	   27
193 Load_Cycle_Count		0x0032   138   138   000	Old_age   Always	   -	   187792
194 Temperature_Celsius	 0x0022   118   111   000	Old_age   Always	   -	   29
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   200   200   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

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	Interrupted (host reset)	  10%	 19242		 -
# 2  Extended offline	Completed without error	   00%	 19231		 -
# 3  Extended offline	Completed without error	   00%	 19203		 -
# 4  Conveyance offline  Completed without error	   00%	 19198		 -
# 5  Short offline	   Completed without error	   00%	 19198		 -
# 6  Short offline	   Completed without error	   00%	 19168		 -
# 7  Short offline	   Completed without error	   00%	 19000		 -
# 8  Extended offline	Completed without error	   00%	 18910		 -
# 9  Short offline	   Completed without error	   00%	 18832		 -
#10  Short offline	   Completed without error	   00%	 18592		 -
#11  Extended offline	Completed without error	   00%	 18502		 -
#12  Short offline	   Completed without error	   00%	 18264		 -
#13  Extended offline	Completed without error	   00%	 18173		 -
#14  Short offline	   Completed without error	   00%	 18096		 -
#15  Short offline	   Completed without error	   00%	 17880		 -
#16  Extended offline	Completed without error	   00%	 17790		 -
#17  Short offline	   Completed without error	   00%	 17712		 -
#18  Short offline	   Completed without error	   00%	 17544		 -
#19  Extended offline	Completed without error	   00%	 17454		 -
#20  Short offline	   Completed without error	   00%	 17377		 -
#21  Short offline	   Completed without error	   00%	 17136		 -

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.



da2
Code:
[root@server] ~# smartctl -a /dev/da2
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p12 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:	 Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model:	 WDC WD20EZRX-00D8PB0
Serial Number:	WD-WCC4MHEYXF86
LU WWN Device Id: 5 0014ee 2b508fdcb
Firmware Version: 80.00A80
User Capacity:	2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:	 512 bytes logical, 4096 bytes physical
Rotation Rate:	5400 rpm
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:	Mon Jan 23 09:05:45 2017 PST
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:  (0x82) Offline data collection activity
										was completed without error.
										Auto Offline Data Collection: Enabled.
Self-test execution status:	  (  33) The self-test routine was interrupted
										by the host with a hard or soft reset.
Total time to complete Offline
data collection:				(27240) 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:		( 275) minutes.
Conveyance self-test routine
recommended polling time:		(   5) minutes.
SCT capabilities:			  (0x7035) SCT Status 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   200   200   051	Pre-fail  Always	   -	   0
  3 Spin_Up_Time			0x0027   171   171   021	Pre-fail  Always	   -	   4441
  4 Start_Stop_Count		0x0032   100   100   000	Old_age   Always	   -	   30
  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   074   074   000	Old_age   Always	   -	   19243
 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	   -	   30
192 Power-Off_Retract_Count 0x0032   200   200   000	Old_age   Always	   -	   27
193 Load_Cycle_Count		0x0032   138   138   000	Old_age   Always	   -	   187248
194 Temperature_Celsius	 0x0022   116   111   000	Old_age   Always	   -	   31
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   200   200   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

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	Interrupted (host reset)	  10%	 19242		 -
# 2  Extended offline	Completed without error	   00%	 19232		 -
# 3  Extended offline	Completed without error	   00%	 19204		 -
# 4  Conveyance offline  Completed without error	   00%	 19198		 -
# 5  Short offline	   Completed without error	   00%	 19198		 -
# 6  Short offline	   Completed without error	   00%	 19168		 -
# 7  Short offline	   Completed without error	   00%	 19000		 -
# 8  Extended offline	Interrupted (host reset)	  10%	 18910		 -
# 9  Short offline	   Completed without error	   00%	 18833		 -
#10  Short offline	   Completed without error	   00%	 18593		 -
#11  Extended offline	Completed without error	   00%	 18503		 -
#12  Short offline	   Completed without error	   00%	 18264		 -
#13  Extended offline	Completed without error	   00%	 18174		 -
#14  Short offline	   Completed without error	   00%	 18096		 -
#15  Short offline	   Completed without error	   00%	 17881		 -
#16  Extended offline	Completed without error	   00%	 17791		 -
#17  Short offline	   Completed without error	   00%	 17713		 -
#18  Short offline	   Completed without error	   00%	 17545		 -
#19  Extended offline	Completed without error	   00%	 17455		 -
#20  Short offline	   Completed without error	   00%	 17377		 -
#21  Short offline	   Completed without error	   00%	 17136		 -

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.



da3
Code:
[root@server] ~# smartctl -a /dev/da3
smartctl 6.2 2013-07-26 r3841 [FreeBSD 9.2-RELEASE-p12 amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:	 Western Digital Caviar Green (AF, SATA 6Gb/s)
Device Model:	 WDC WD20EZRX-00D8PB0
Serial Number:	WD-WMC4M0D5XVLU
LU WWN Device Id: 5 0014ee 604cb4d45
Firmware Version: 80.00A80
User Capacity:	2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:	 512 bytes logical, 4096 bytes physical
Rotation Rate:	5400 rpm
Device is:		In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:	Mon Jan 23 09:06:56 2017 PST
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:  (0x82) Offline data collection activity
										was completed without error.
										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:				(27420) 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:		( 277) minutes.
Conveyance self-test routine
recommended polling time:		(   5) minutes.
SCT capabilities:			  (0x7035) SCT Status 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   200   200   051	Pre-fail  Always	   -	   0
  3 Spin_Up_Time			0x0027   174   173   021	Pre-fail  Always	   -	   4258
  4 Start_Stop_Count		0x0032   100   100   000	Old_age   Always	   -	   21
  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   081   081   000	Old_age   Always	   -	   14455
 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	   -	   21
192 Power-Off_Retract_Count 0x0032   200   200   000	Old_age   Always	   -	   19
193 Load_Cycle_Count		0x0032   177   177   000	Old_age   Always	   -	   70425
194 Temperature_Celsius	 0x0022   116   111   000	Old_age   Always	   -	   31
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   200   200   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

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%	 14440		 -
# 2  Extended offline	Completed without error	   00%	 14415		 -
# 3  Conveyance offline  Completed without error	   00%	 14410		 -
# 4  Short offline	   Completed without error	   00%	 14410		 -
# 5  Short offline	   Completed without error	   00%	 14308		 -
# 6  Extended offline	Completed without error	   00%	 14219		 -
# 7  Short offline	   Completed without error	   00%	 14141		 -
# 8  Extended offline	Completed without error	   00%	 14085		 -
# 9  Short offline	   Completed without error	   00%	 13901		 -
#10  Extended offline	Completed without error	   00%	 13811		 -
#11  Short offline	   Completed without error	   00%	 13733		 -
#12  Short offline	   Completed without error	   00%	 13565		 -
#13  Extended offline	Completed without error	   00%	 13476		 -
#14  Short offline	   Completed without error	   00%	 13397		 -
#15  Short offline	   Completed without error	   00%	 13182		 -
#16  Extended offline	Completed without error	   00%	 13092		 -
#17  Short offline	   Completed without error	   00%	 13014		 -
#18  Short offline	   Completed without error	   00%	 12846		 -
#19  Extended offline	Completed without error	   00%	 12756		 -
#20  Short offline	   Completed without error	   00%	 12678		 -
#21  Short offline	   Completed without error	   00%	 12438		 -

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.

 
Joined
Dec 2, 2015
Messages
730
Those test results look great to me. The original, short output, looked suspicious, as disks connected to a hardware RAID controller don't have full SMART capability. I was wondering if your controller was still working in IR mode, which may interfere with the badblocks testing.

What do you get from sas2flash -list?
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
Those test results look great to me. The original, short output, looked suspicious, as disks connected to a hardware RAID controller don't have full SMART capability. I was wondering if your controller was still working in IR mode, which may interfere with the badblocks testing.

What do you get from sas2flash -list?
I get this output

Code:
LSI Corporation SAS2 Flash Utility
Version 14.00.00.00 (2012.07.04)
Copyright (c) 2008-2012 LSI Corporation. All rights reserved

		Adapter Selected is a LSI SAS: SAS2008(B2)

		Controller Number			  : 0
		Controller					 : SAS2008(B2)
		PCI Address					: 00:01:00:00
		SAS Address					: 500605b-0-03e8-0ce0
		NVDATA Version (Default)	   : 0f.00.00.05
		NVDATA Version (Persistent)	: 0f.00.00.05
		Firmware Product ID			: 0x2213 (IT)
		Firmware Version			   : 15.00.00.00
		NVDATA Vendor				  : LSI
		NVDATA Product ID			  : SAS9211-8i
		BIOS Version				   : N/A
		UEFI BSD Version			   : N/A
		FCODE Version				  : N/A
		Board Name					 : SAS9211-8i
		Board Assembly				 : N/A
		Board Tracer Number			: N/A

		Finished Processing Commands Successfully.
		Exiting SAS2Flash.

 
Joined
Dec 2, 2015
Messages
730
I assume you've tried the badblocks command again, and that the output is exactly as described in the first post.

I'm out of ideas. Sorry.

Hopefully someone else can see a clue, or have some insight.
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
I assume you've tried the badblocks command again, and that the output is exactly as described in the first post.

I'm out of ideas. Sorry.

Hopefully someone else can see a clue, or have some insight.
I did try it again and unfortunately got the same output. I think after running all the smart test I feel comfortable enough to rebuild the volume.

thank you again for all the help.
 

ertank

Explorer
Joined
Sep 16, 2018
Messages
66
I got exact same problem. Solution for me was to boot into single user mode and run badblocks -ws /dev/ada0 from text console.
 
Status
Not open for further replies.
Top