硬盘管理命令smartctl
2016-03-04 17:08
399 查看
背景:同事在换硬盘到主机后,检查是否把硬盘放在正确的位置,用smartctl命令查看序列号;
命令:smartctl -a /dev/sda
以上是在gg0112节点上的使用情况;
用法:smartctl -a /dev/sda |grep Seri —直接查看硬盘序列号;
里面还可以查看硬盘生产厂家、接口类型、温度等参数;
不是所有系统默认安装了这个管理工具,可以查看一下:
gg0112:~ # rpm -qa |grep smart
smartmontools-5.38.0.20081027-2.14
若出现:Device does not support SMART,则说明硬盘不支持(这是在虚拟机里测试的,故不支持);
以后遇到新问题,再持续更新。
命令:smartctl -a /dev/sda
gg0112:~ # smartctl -a /dev/sda smartctl 5.39 2008-10-24 22:33 [x86_64-suse-linux-gnu] (openSUSE RPM) Copyright (C) 2002-8 by Bruce Allen, http://smartmontools.sourceforge.net Device: SEAGATE ST9146803SS Version: 0006 #硬件厂商 Serial number: 6SD2A3ZZ0000B127LJJM #硬盘序列号 Device type: disk Transport protocol: SAS #接口类型 Local Time is: Fri Mar 4 16:58:30 2016 CST Device supports SMART and is Enabled #是否支持smart管理,有的不支持 Temperature Warning Enabled SMART Health Status: OK #健康状态ok Current Drive Temperature: 21 C #当前温度 Drive Trip Temperature: 68 C #此温度是啥?有待考证 Elements in grown defect list: 0 Vendor (Seagate) cache information Blocks sent to initiator = 1044970503 Blocks received from initiator = 2476401867 Blocks read from cache and sent to initiator = 106869375 Number of read and write commands whose size <= segment size = 364621421 Number of read and write commands whose size > segment size = 0 Vendor (Seagate/Hitachi) factory information number of hours powered up = 37638.07 number of minutes until next internal SMART test = 54 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: 15099690 0 0 15099690 15099690 2734.048 0 write: 0 0 0 0 0 71719.613 0 verify: 10434 0 0 10434 10434 0.000 0 Non-medium error count: 0 [GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on'] No self-tests have been logged Long (extended) Self Test duration: 3600 seconds [60.0 minutes]
以上是在gg0112节点上的使用情况;
用法:smartctl -a /dev/sda |grep Seri —直接查看硬盘序列号;
里面还可以查看硬盘生产厂家、接口类型、温度等参数;
不是所有系统默认安装了这个管理工具,可以查看一下:
gg0112:~ # rpm -qa |grep smart
smartmontools-5.38.0.20081027-2.14
若出现:Device does not support SMART,则说明硬盘不支持(这是在虚拟机里测试的,故不支持);
以后遇到新问题,再持续更新。
相关文章推荐
- 【poj2396】Budget 有源汇上下界可行流
- huhx的android封神之路-------->ContentProvider的使用
- SQLServer数据库备份
- Java中通过jsch来连接远程服务器执行linux命令
- 【错误总结】makefile的编写问题:一定要注意不能有随随便便的tab、空格等
- 含有注释的SQL生成器升级
- android环境搭建
- java内存溢出和内存泄露
- iOS IQKeyBoardManager 引起的界面漂移bug 解决
- Android Studio 2.0 Beta 6 中配置强大的版本控制系统(Git篇)
- Spring Cache
- 百度地图经常崩溃的问题
- Cache缓存对象缓存对象
- 为什么你一直突破不了自己?
- 字符编码常识及问题解析
- 并发环境下mysql插入检查方案
- Android 5.0以上版本禁止锁屏与休眠
- 90、setStatusBarStyle无效问题 修改状态栏颜色 只有白色黑色可选UIStatusBarStyleLightContent
- jsonp跨域请求
- EventSource 对象用于接收服务器发送事件通知,是网页自动获取来自服务器的更新