作者 主題: 關於 zfs zpool status read write cksum 的問題?  (閱讀 5339 次)

0 會員 與 1 訪客 正在閱讀本文。

Yamaka

  • 俺是博士!
  • *****
  • 文章數: 4913
    • 檢視個人資料
    • http://www.ecmagic.com
請問各位先進

如果有下面的情形

$ sudo zpool status
代碼: [選擇]
  pool: rpool
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       DEGRADED     0     0     0
          raidz2-0  DEGRADED     0     0     2
            c4d1    DEGRADED     3     5    47  too many errors
            c6d0    ONLINE       0     0     1
            c6d1    ONLINE       0     0     0
            c7d0    DEGRADED     0    30   420  too many errors
            c7d1    DEGRADED    21     0    24  too many errors

errors: No known data errors


READ, WRITE, CKSUM 單純只是 zfs 系統問題
還是硬碟也真的有問題,例如壞軌之類的...
c7d0 拔到 linux 系統用 smartctl 看卻都 ok

$ sudo smartctl -AH /dev/sdb
代碼: [選擇]
smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.5.0-54-generic] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

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

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   177   176   021    Pre-fail  Always       -       6150
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       28
  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   080   080   000    Old_age   Always       -       14740
 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       -       28
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       27
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   114   096   000    Old_age   Always       -       36
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   100   253   000    Old_age   Offline      -       0

$ sudo badblocks -vs /dev/sdb
代碼: [選擇]
Checking blocks 0 to 1953514583
Checking for bad blocks (read-only test): done                                                 
Pass completed, 0 bad blocks found. (0/0/0 errors)

所以像上面這棵 /dev/sdb 這樣的資訊,就表示這棵 hdd 是『健康』的?


netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17484
    • 檢視個人資料
    • http://www.study-area.org
Re: 關於 zfs zpool status read write cksum 的問題?
« 回覆 #1 於: 2015-03-05 14:42 »
沒玩過zfs呢~~ Orz

Aminzai (阿民)

  • 憂鬱的高中生
  • ***
  • 文章數: 98
  • 性別: 男
  • 無聊大學生= =
    • 檢視個人資料
Re: 關於 zfs zpool status read write cksum 的問題?
« 回覆 #2 於: 2015-04-29 10:10 »
如果是我...我蠻相信 ZFS的 Checksum的... 


BTW Smart看起來好像也快炸了....
« 上次編輯: 2015-04-29 10:13 由 Aminzai (阿民) »