8.0-RELEASE: disk IO temporarily hangs up (ZFS or ATA related problem)

Alexander Zagrebin alexz at visp.ru
Wed Dec 16 10:42:58 UTC 2009


> > There are no ata error messages neither in the system log, 
> nor on the
> > console.  The manufacture's diagnostic test is passed on ad6 without
> > any errors.  The ad6 also contains swap partition.  I have tried to
> > run several (10..20) instances of dd, which read and write data from
> > and to the swap partition simultaneously, but it has not called the
> > lockup.  So there is a probability that this problem is ZFS related.
> > 
> > I have been forced to switch ad6 to the offline state... :(
> > 
> > Any suggestions on this problem?
> 
> My first guess would be that yes, this is a sign of something ZFS is
> doing, but I'm not positive.  It'd be useful to see "zpool status"
> output from your system (when ad6 is in the ONLINE state).

Nothing special:

$ zpool status
  pool: pool
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://www.sun.com/msg/ZFS-8000-9P
 scrub: resilver completed after 0h1m with 0 errors on Wed Dec 16 13:26:00
2009
config:

        NAME           STATE     READ WRITE CKSUM
        pool           ONLINE       0     0     0
          mirror       ONLINE       0     0     0
            gpt/pool0  ONLINE       0     0     0  2,20M resilvered
            gpt/pool1  ONLINE       0  172K     0  196M resilvered

errors: No known data errors

Write errors (172K) was accumulated during offline state of the gpt/pool1
aka ad6.

> Have you tried doing "zpool scrub <pool>" to make sure 
> there's no read,
> write, or checksum errors causing problems behind the scenes?  I don't
> know how this would manifest itself in that manner, but worth a shot.

Yes, I did.
zpool scrub doesn't found any errors, but it took lo-o-ong time due to
periodic
lockups.

> Otherwise, if you could install sysutils/smartmontools and provide the
> full output of "smartctl -a /dev/ad6" I'll be happy to perform a brief
> analysis of the drive itself and if it's performing badly or oddly.
> Please note that SMART stats don't keep track of anything 
> pertaining to
> the drive's on-PCB cache (which could be going bad, but you'd almost
> certainly see that at all times not, occasionally).

Imho, the smart data is fine. It's the new drive.
Today I'll try to change disks in places to eliminate faulty south bridge.

=====================================================================
$ sudo smartctl -a /dev/ad6
smartctl version 5.38 [amd64-portbld-freebsd8.0] Copyright (C) 2002-8 Bruce
Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD15EADS-00P8B0
Serial Number:    WD-WCAVU0296075
Firmware Version: 01.00A01
User Capacity:    1 500 301 910 016 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Dec 16 13:29:36 2009 MSK
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:                 (32700) 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:        ( 255) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x303f) 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   180   180   021    Pre-fail  Always
-       5991
  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   100   100   000    Old_age   Always
-       109
 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
-       16
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always
-       15
193 Load_Cycle_Count        0x0032   199   199   000    Old_age   Always
-       3819
194 Temperature_Celsius     0x0022   115   106   000    Old_age   Always
-       35
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  Conveyance offline  Completed without error       00%        84
-

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.
=====================================================================

-- 
Alexander Zagrebin



More information about the freebsd-stable mailing list