V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Recommended Services
Amazon Web Services
LeanCloud
New Relic
ClearDB
pc10201
V2EX  ›  云计算

检查linux 独立服务器是否有坏道?

  •  
  •   pc10201 · 2014-01-23 15:25:17 +08:00 · 2977 次点击
    这是一个创建于 3955 天前的主题,其中的信息可能已经有所发展或是发生改变。
    怀疑硬盘有坏道
    smartctl -i /dev/sda

    smartctl 6.2 2013-07-26 r3841 [x86_64-linux-2.6.32-358.el6.x86_64] (local build)
    Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF INFORMATION SECTION ===
    Vendor: SEAGATE
    Product: ST3300657SS
    Revision: ES65
    User Capacity: 300,000,000,000 bytes [300 GB]
    Logical block size: 512 bytes
    Rotation Rate: 15000 rpm
    Form Factor: 3.5 inches
    Logical Unit id: 0x5000c50053fea3df
    Serial number: 6SJ5EC00
    Device type: disk
    Transport protocol: SAS
    Local Time is: Fri Jan 24 07:24:03 2014 CST
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    Temperature Warning: Disabled or Not Supported

    smartctl -A /dev/sda
    smartctl 6.2 2013-07-26 r3841 [x86_64-linux-2.6.32-358.el6.x86_64] (local build)
    Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF READ SMART DATA SECTION ===
    Current Drive Temperature: 44 C
    Drive Trip Temperature: 68 C

    Elements in grown defect list: 0

    Vendor (Seagate) cache information
    Blocks sent to initiator = 1480572787
    Blocks received from initiator = 173844165
    Blocks read from cache and sent to initiator = 567678030
    Number of read and write commands whose size <= segment size = 281573697
    Number of read and write commands whose size > segment size = 0

    Vendor (Seagate/Hitachi) factory information
    number of hours powered up = 13305.70
    number of minutes until next internal SMART test = 15

    [root@rdo smartmontools-6.2]# smartctl -l error /dev/sda
    smartctl 6.2 2013-07-26 r3841 [x86_64-linux-2.6.32-358.el6.x86_64] (local build)
    Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

    === START OF READ SMART DATA SECTION ===
    Error counter log:
    Errors Corrected by Total Correction Gigabytes Total
    ECC rereads/ errors algorithm processed uncorrected
    fast | delayed rewrites corrected invocations [10^9 bytes] errors
    read: 246107968 1 0 246107969 246107969 16012.097 0
    write: 0 0 0 0 0 4557.809 0
    verify: 38978 0 0 38978 38978 6.000 0

    Non-medium error count: 1

    有没有问题啊~
    2 条回复    1970-01-01 08:00:00 +08:00
    g0t3n
        1
    g0t3n  
       2014-01-23 15:51:32 +08:00
    话说我第一反应是用ext不会有磁盘碎片,然后我才留意到楼主说的是坏道 -。-
    roricon
        2
    roricon  
       2014-01-23 16:16:23 +08:00
    http://www.howtogeek.com/howto/37659/the-beginners-guide-to-linux-disk-utilities/
    查找 Bad block 这段

    这种问题google一下就有答案……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5449 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:26 · PVG 11:26 · LAX 19:26 · JFK 22:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.