硬碟每秒都會發出滴答聲

硬碟每秒都會發出滴答聲

我剛買了一個固態硬碟來替換硬碟在我的筆記型電腦(戴爾靈越 15 3521)。所以我遷移了視窗分割,Ubuntu的分割區,並製作一個bcache快取分割區,/home保留在硬碟上。這硬碟現在是在HDD盒裡面的DVD驅動器的地方。

所以問題是我的硬碟 (?) 有時會開始發出滴答聲(但不是喀喀聲),就像手錶一樣,但聲音稍大一點,每秒或半秒一次,重複且連續。

這不僅令人煩惱,而且我擔心人們的健康硬碟

鑑於我的新設置可以訪問硬碟是有限的。 HDD 上仍然有/var分區和交換區,但我有 8G 的 RAM。和後盾快取 /home分割。

我以為它可能是頭硬碟反覆停車。但在網路上找到的一個簡單腳本顯示沒有任何變化載入週期計數smartctl -a /dev/sdb輸出值

不斷增加的令人擔憂的值是原始讀取錯誤率據說變得毫無意義希捷硬碟(此處ST500LT012

即使我切換到控制台並停止光DM,那個聲音繼續。

但如果我運行簡短的自檢智慧控制,那聲音突然停止了。簡短的自我檢測通過,沒有錯誤。我跑壞塊/home支持上快取分區並沒有發現錯誤。

我不知道是什麼原因導致這種聲音。這似乎不是一個打擊硬碟的過程。我只運行 chromium 和一個終端

smartctl -a 的輸出:

$ smartctl -a /dev/sdb
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.16.0-31-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ST500LT012-1DG142
Serial Number:    XXXXXXXX
LU WWN Device Id: 5 000c50 xxxxxxxxxx
Firmware Version: 0001SDM1
User Capacity:    500 107 862 016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        Not in smartctl database [for details use: -P showall]
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:    Sat Mar 21 01:12:10 2015 CET
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:        (    0) 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:    ( 103) minutes.
Conveyance self-test routine
recommended polling time:    (   2) minutes.
SCT capabilities:          (0x1035) SCT Status supported.
                    SCT Feature Control supported.
                    SCT Data Table 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       -       226511072
  3 Spin_Up_Time            0x0003   100   099   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1883
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   076   060   030    Pre-fail  Always       -       47056689
  9 Power_On_Hours          0x0032   098   098   000    Old_age   Always       -       2357 (113 43 0)
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1582
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
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   079   048   045    Old_age   Always       -       21 (Min/Max 19/21)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       100
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       46
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       3935
194 Temperature_Celsius     0x0022   021   052   000    Old_age   Always       -       21 (0 11 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   098   098   000    Old_age   Offline      -       156817845913887
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       6713158176
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       8448037256
254 Free_Fall_Sensor        0x0032   100   100   000    Old_age   Always       -       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  Short offline       Completed without error       00%      2354         -
# 2  Short offline       Completed without error       00%      2342         -
# 3  Short offline       Completed without error       00%      2339         -
# 4  Short offline       Completed without error       00%      2334         -
# 5  Short offline       Completed without error       00%      2333         -
# 6  Short offline       Completed without error       00%      2307         -
# 7  Short offline       Completed without error       00%      2306         -
# 8  Short offline       Completed without error       00%      2295         -
# 9  Short offline       Completed without error       00%      2295         -
#10  Short offline       Completed without error       00%      2291         -
#11  Short offline       Completed without error       00%      2283         -
#12  Short offline       Completed without error       00%      1198         -
#13  Extended offline    Completed without error       00%       937         -
#14  Short offline       Completed without error       00%       935         -
#15  Short offline       Completed without error       00%       356         -
#16  Extended offline    Completed without error       00%       122         -
#17  Short offline       Completed without error       00%       120         -
#18  Short offline       Completed without error       00%        14         -
#19  Short offline       Completed without error       00%         0         -

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.

答案1

我有同樣的問題。 bcache 是否(曾經?)處於寫回模式?

在回寫模式下,bcache 在快取上保留所謂的髒資料緩衝區。預設情況下,這是快取大小的 10%。這樣做是為了收集順序資料寫入支援設備,因為 HDD 擅長順序 IO(請參閱 koverstreet 於 2012 年 5 月 15 日 3:43 UTC 發布的帖子,網址為這個連結)。

對我來說,當我停用此緩衝區時,點擊聲會停止,如下所示:

sudo -i
echo 0 > /sys/block/bcache0/bcache/writeback_percent

我問過一個關於為什麼這發生在超級用戶上這裡。如果沒有回复,我將提交錯誤報告!

相關內容