1台机器IO一直很高,之前先加了内存 然后开发那边也已经减少日志输出 仍然很高,最后使用smartctl命令查询了硬盘的相关状态,最后更换硬盘后,问题解决 一、基础环境 1、发行版本 cat /etc/debian_version 5.0.2 2、内核 uname -r 2.6.18-6-amd64 3、机型 dmidecode -s system-product-name PowerEdge R410 二、使用smartctl命令 1、查看当前整体健康状态 1)smartctl -H /dev/sda smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-4-amd64] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net SMART Health Status: OK 2)参数说明 -H, --health Check: Ask the device to report its SMART health status or pending TapeAlert messages. 2、打开或关闭/dev/sda的SMART功能 smartctl -s on/off /dev/sda 3、表示开启smart特性并查看硬盘全部信息 smartctl -s on -a /dev/sda smartctl version 5.38 [x86_64-unknown-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Device: SEAGATE ST9300603SS Version: FS62 Serial number: 3SE22PBD Device type: disk Transport protocol: SAS Local Time is: Fri Aug 14 12:48:36 2015 CST Device supports SMART and is Enabled Temperature Warning Enabled SMART Health Status: OK Current Drive Temperature: 31 C Drive Trip Temperature: 68 C Elements in grown defect list: 95 Vendor (Seagate) cache information Blocks sent to initiator = 719156962 Blocks received from initiator = 2801578489 Blocks read from cache and sent to initiator = 877477222 Number of read and write commands whose size <= segment size = 1623777706 Number of read and write commands whose size > segment size = 0 Vendor (Seagate/Hitachi) factory information number of hours powered up = 45424.20 number of minutes until next internal SMART test = 31 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: 824692357 0 0 824692357 824692357 24554.464 0 write: 0 0 94 94 94 23861.799 0 verify: 42585 0 0 42585 42585 3.000 0 Non-medium error count: 142795552 SMART Self-test log Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ] Description number (hours) # 1 Background short Completed 16 0 - [- - -] Long (extended) Self Test duration: 3180 seconds [53.0 minutes] PS: Elements in grown defect list: 95 Non-medium error count: 142795552 对比了其他机器硬盘的相关参数,这2个数值有些高了,可能影响到了IO性能,故最后决定更换硬盘
时间: 2024-10-24 02:20:35