ZFS 오류 복구 3 (정확히는 4)
하드 디스크 6개 짜리 RAID-Z2 볼륨에서 네 번째로 디스크 문제가 생겼다.
2013년 4월에 Seagate Barracuda ST3000DM001 모델 6개로 구성했는데
만 2년이 지난 (보증기간이 딱 지난) 2015년 6월부터 하나씩 문제가 생기더니 최근 1년 사이에 4개째다.

처음 두 개는 같은 모델 여분의 디스크로 교체하다가 뭔가 아니다 싶어서
이후부터는 다른 모델로 교체했다 (HGST HDN724030ALE640).

오늘 생긴 문제는 디스크가 죽는 수준은 아니고
배드섹터 전단계의 섹터가 8개 나왔다는 SMART 경고가 메일로 날아온 것이었다.

접속해서 살펴본 SMART 정보는 아래와 같았다.

$ sudo smartctl -a /dev/sdd
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-22-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.14 (AF)
Device Model:     ST3000DM001-1CH166
Serial Number:   
W1F2***P
LU WWN Device Id: 5 ****** *********
Firmware Version: CC29
User Capacity:    3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri May 20 09:33:47 2016 KST
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:                (  584) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 334) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x3085) SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   119   099   006    Pre-fail  Always       -       215018960
  3 Spin_Up_Time            0x0003   095   094   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       111
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   066   060   030    Pre-fail  Always       -       51590300588
  9 Power_On_Hours          0x0032   070   070   000    Old_age   Always       -       26806
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       110
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0 0 0
189 High_Fly_Writes         0x003a   099   099   000    Old_age   Always       -       1
190 Airflow_Temperature_Cel 0x0022   063   057   045    Old_age   Always       -       37 (Min/Max 30/40)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       78
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       326
194 Temperature_Celsius     0x0022   037   043   000    Old_age   Always       -       37 (0 21 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       8
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       8
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       26789h+20m+37.089s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       23185738315
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       201664198103

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
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
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.



경험상 이 모델은 믿을 수 없으므로, 문제의 소지가 발견된 순간 바로 교체했다.

(이 모델의 유독 높은 오류발생률은 이미 유명하다.
 CSI: Backblaze – Dissecting 3TB Drive Failure
    https://www.backblaze.com/blog/3tb-hard-drive-failure/ )

$ sudo zpool status
  pool: tank
 state: ONLINE
  scan: scrub repaired 0 in 6h11m with 0 errors on Sun May 15 07:11:19 2016
config:

        NAME                                 STATE     READ WRITE CKSUM
        tank                                 ONLINE       0     0     0
          raidz2-0                           ONLINE       0     0     0
            sda                              ONLINE       0     0     0
            sdb                              ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***8  ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***P  ONLINE       0     0     0
            sde                              ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***E  ONLINE       0     0     0

errors: No known data errors
$ sudo zpool offline
tank ata-ST3000DM001-1CH166_W1F2***P
$ sudo zpool status
  pool:
tank
 state: DEGRADED
status: One or more devices has been taken offline by the administrator.
        Sufficient replicas exist for the pool to continue functioning in a
        degraded state.
action: Online the device using 'zpool online' or replace the device with
        'zpool replace'.
  scan: scrub repaired 0 in 6h11m with 0 errors on Sun May 15 07:11:19 2016
config:

        NAME                                 STATE     READ WRITE CKSUM
       
tank                                 DEGRADED     0     0     0
          raidz2-0                           DEGRADED     0     0     0
            sda                              ONLINE       0     0     0
            sdb                              ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***8  ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***P  OFFLINE      0     0     0
            sde                              ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***E  ONLINE       0     0     0

errors: No known data errors

$ sudo hdparm -Y /dev/sdd

/dev/sdd:
 issuing sleep command

[ 문제 생긴 하드디스크 제거하고, 새 하드디스크 끼움 ]

$ sudo sgdisk -R /dev/sdd /dev/sde
The operation has completed successfully.
$ sudo sgdisk -G /dev/sdd
The operation has completed successfully.
$ sudo zpool replace
tank ata-ST3000DM001-1CH166_W1F2***P /dev/sdd
$ sudo zpool status
  pool:
tank
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Fri May 20 09:51:54 2016
    169M scanned out of 7.60T at 9.93M/s, 222h49m to go
    26.7M resilvered, 0.00% done
config:

        NAME                                   STATE     READ WRITE CKSUM
       
tank                                   DEGRADED     0     0     0
          raidz2-0                             DEGRADED     0     0     0
            sda                                ONLINE       0     0     0
            sdb                                ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***8    ONLINE       0     0     0
            replacing-3                        OFFLINE      0     0     0
              ata-ST3000DM001-1CH166_W1F2***P  OFFLINE      0     0     0
              sdd                              ONLINE       0     0     0  (resilvering)
            sde                                ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***E    ONLINE       0     0     0

errors: No known data errors
$ sudo zpool online /dev/sdd
missing device name
usage:
        online <pool> <device> ...
$ sudo zpool online tank /dev/sdd
$ sudo zpool status
  pool: tank
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Fri May 20 09:52:49 2016
    114M scanned out of 7.60T at 12.7M/s, 174h25m to go
    17.7M resilvered, 0.00% done
config:

        NAME                                   STATE     READ WRITE CKSUM
        tank                                   DEGRADED     0     0     0
          raidz2-0                             DEGRADED     0     0     0
            sda                                ONLINE       0     0     0
            sdb                                ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***8    ONLINE       0     0     0
            replacing-3                        DEGRADED     0     0     0
              ata-ST3000DM001-1CH166_W1F2***P  OFFLINE      0     0     0
              sdd                              ONLINE       0     0     0  (resilvering)
            sde                                ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***E    ONLINE       0     0     0

errors: No known data errors
$ sudo smartctl -a /dev/sdd
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-22-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     HGST Deskstar NAS
Device Model:     HGST HDN724030ALE640
Serial Number:    PK************
LU WWN Device Id: 5 ****** *********
Firmware Version: MJ8OA5E0
User Capacity:    3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri May 20 10:03:08 2016 KST
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:  (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:                (   24) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 454) 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          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   054    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   100   100   024    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       1
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   020    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       0
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       1
194 Temperature_Celsius     0x0002   153   153   000    Old_age   Always       -       39 (Min/Max 25/39)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
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
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.

[ ... 몇 시간 뒤 ... ]

$ sudo zpool status
  pool: tank
 state: ONLINE
  scan: resilvered 1.26T in 6h5m with 0 errors on Fri May 20 15:58:10 2016
config:

        NAME                                 STATE     READ WRITE CKSUM
        tank                                 ONLINE       0     0     0
          raidz2-0                           ONLINE       0     0     0
            sda                              ONLINE       0     0     0
            sdb                              ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***8  ONLINE       0     0     0
            sdd                              ONLINE       0     0     0
            sde                              ONLINE       0     0     0
            ata-ST3000DM001-1CH166_W1F2***E  ONLINE       0     0     0



헌 디스크 분리하고, 새 디스크 다는 과정에서 생긴 dmesg 로그는 아래와 같았다.
훌륭하게 된 건지는 모르겠고, 리눅스 가동중인 상태에서도 교체는 그럭저럭 가능했다.

그나마 4칸짜리 하드디스크랙(앤디코 하드랙 EasySTOR 340SS)을 설치해뒀기에 가능한 일이었다.
전에 PC 케이스의 내장 HDD 자리에 달려있던 디스크가 죽었을때는 어쩔 수 없이 전원 끄고 작업했다.

[ 2480.379574] ata6.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[ 2480.379593] ata6.00: waking up from sleep
[ 2480.379602] ata6: hard resetting link
[ 2480.875513] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2485.879314] ata6.00: qc timeout (cmd 0xef)
[ 2485.879325] ata6.00: failed to enable AA (error_mask=0x4)
[ 2485.879340] ata6.00: revalidation failed (errno=-5)
[ 2485.879352] ata6: hard resetting link
[ 2487.827261] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2487.828588] ata6.00: configured for UDMA/133
[ 2487.828608] ata6: EH complete
[ 2498.547835] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4090000 action 0xe frozen
[ 2498.547853] ata6: irq_stat 0x00400040, connection status changed
[ 2498.547865] ata6: SError: { PHYRdyChg 10B8B DevExch }
[ 2498.547877] ata6: hard resetting link
[ 2499.274910] ata6: SATA link down (SStatus 0 SControl 300)
[ 2504.274764] ata6: hard resetting link
[ 2504.594763] ata6: SATA link down (SStatus 0 SControl 300)
[ 2504.594773] ata6: limiting SATA link speed to 1.5 Gbps
[ 2509.594595] ata6: hard resetting link
[ 2509.914603] ata6: SATA link down (SStatus 0 SControl 310)
[ 2509.914613] ata6.00: disabled
[ 2509.914627] ata6: EH complete
[ 2509.914639] ata6.00: detaching (SCSI 5:0:0:0)
[ 2509.915756] sd 5:0:0:0: [sdd] Synchronizing SCSI cache
[ 2509.915801] sd 5:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 2509.915805] sd 5:0:0:0: [sdd] Stopping disk
[ 2509.915818] sd 5:0:0:0: [sdd] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 2517.525330] ata6: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen
[ 2517.525351] ata6: irq_stat 0x00000040, connection status changed
[ 2517.525363] ata6: SError: { CommWake DevExch }
[ 2517.525376] ata6: hard resetting link
[ 2527.546060] ata6: softreset failed (device not ready)
[ 2527.546076] ata6: hard resetting link
[ 2529.897990] ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2529.899553] ata6.00: ATA-8: HGST HDN724030ALE640, MJ8OA5E0, max UDMA/133
[ 2529.899559] ata6.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[ 2529.901185] ata6.00: configured for UDMA/133
[ 2529.901196] ata6: EH complete
[ 2529.901471] scsi 5:0:0:0: Direct-Access     ATA      HGST HDN724030AL A5E0 PQ: 0 ANSI: 5
[ 2529.901829] sd 5:0:0:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.73 TiB)
[ 2529.901831] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 2529.901839] sd 5:0:0:0: [sdd] 4096-byte physical blocks
[ 2529.901920] sd 5:0:0:0: [sdd] Write Protect is off
[ 2529.901925] sd 5:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[ 2529.901952] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2529.924141] sd 5:0:0:0: [sdd] Attached SCSI disk

by 시험さま | 2016/05/20 10:44 | 컴퓨터 | 트랙백(1) | 덧글(0)
트랙백 주소 : http://chanik.egloos.com/tb/4114138
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Tracked from 시험さま at 2016/12/05 09:32

제목 : ZFS 오류 복구 4 (정확히는 5)
ZFS 오류 복구 3 (정확히는 4) 시게이트 ST3000DM001 (/dev/sdb)가 하다 더 맛이 갔다. 지난번까지는 HGST HDN724030ALE640로 교체했지만, 이번에는 TOSHIBA DT01ACA300 모델로 교체했다. 과정은 전과 같음....more

:         :

:

비공개 덧글

< 이전페이지 다음페이지 >