我的博客已迁移到xdoujiang.com请去那边和我交流 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性能,故最后决定更换硬盘
smartctl的使用
原创
©著作权归作者所有:来自51CTO博客作者xdoujiang的原创作品,请联系作者获取转载授权,否则将追究法律责任
下一篇:openstack某节点空间不足
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
git的使用
git的学习记录
git 推送 远程库 -
springSecurity的使用
实现通过security实现 登录、注销、权限认证等功能
spring redis java security -
使用MegaCli和Smartctl获取普通磁盘信息
使用MegaCli和Smartctl获取普通磁盘信息
MegaCli 获取磁盘 信息