ceph存储 smartctl硬盘状态监控
来源:互联网 发布:手机定位软件开发 编辑:程序博客网 时间:2024/04/30 08:53
smartctl [options] device
补充说明
系统需要安装smartmontools才可以使用smartctl命令。smartmontools 就是利用硬盘S.M.A.R.T. (Self-Monitoring_Analysis_and_Reporting) 特性特性监测硬盘的软件包,包含 smartctl 和 smartd 两个程序,前者是前台命令行工具、后者是后台运行程序。
# yum install kernel-utils
在 CentOS/Fedora 下安装smartmontools
# apt-get install smartmontools
在 Debian/Ubuntu 下安装
参数
smartctl -a <device> 显示硬盘所有SMART信息。
smartctl -i <device> 显示硬盘model number, serial number,是否开启SMART等信息。
smartctl -s on <device> 如果没有打开SMART技术,使用该命令打开SMART技术。
smartctl -t short <device> 后台检测硬盘,消耗时间短
smartctl -t long <device> 后台检测硬盘,消耗时间长
smartctl -C -t short <device> 前台检测硬盘,消耗时间短
smartctl -C -t long <device> 前台检测硬盘,消耗时间长
smartctl -X <device> 中断后台检测硬盘。
smartctl -l selftest <device> 显示硬盘检测日志。
smartctl -l error <device> 显示硬盘错误汇总。
相关命令
hdparm 、smartctl
实例
# smartctl -i /dev/sda
smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce AllenHome page is http://smartmontools.sourceforge.net/ START OF INFORMATION SECTIONModel Family: Western Digital Caviar Second Generation Serial ATA familyDevice Model: WDC WD3200JS-55PDB0Serial Number: WD-WCAPD1876075Firmware Version: 21.00M21User Capacity: 320,072,933,376 bytesDevice is: In smartctl database [for details use: -P show]ATA Version is: 7ATA Standard is: Exact ATA specification draft version not indicatedLocal Time is: Mon Dec 19 17:21:12 2011 CSTSMART support is: Available - device has SMART capability.SMART support is: Enabled
检查一下硬盘是否具有 SMART 特性
# smartctl -H /dev/sda
smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce AllenHome page is http://smartmontools.sourceforge.net/START OF READ SMART DATA SECTION SMART overall-health self-assessment test result: PASSED
查看硬盘健康状态
# smartctl -t short /dev/sda
smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce AllenHome page is http://smartmontools.sourceforge.net/ START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION Sending command: "Execute SMART Short self-test routine immediately in off-line mode".Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.Testing has begun.Please wait 2 minutes for test to complete.Test will complete after Mon Dec 19 17:33:51 2011Use smartctl -X to abort test.
快速检测硬盘。
# smartctl -l selftest /dev/sda
查看硬盘测试结果
#smartctl -l error /dev/sda
-a 显示设备所有的SMART信息。-l error 列出硬盘错误日志。如果显示没有错误最好,如果显示了大量的错误信息,那就该着手准备替换硬盘了。
-l selftest 列出自行测试结果。
- ceph存储 smartctl硬盘状态监控
- smartctl----硬盘状态监控
- smartctl----硬盘状态监控
- ceph存储 smartctl用法小结
- 硬盘监控和分析工具:Smartctl
- smartctl 使用smartmontools监控磁盘的健康状态
- smartctl 使用smartmontools监控磁盘的健康状态
- ceph集群状态持续监控
- Ceph 集群状态监控细化
- IOSTAT监控硬盘状态
- 硬盘检测 - smartctl
- 硬盘管理命令smartctl
- ceph存储 服务器硬盘故障预测实践
- CEPH中Monitor对OSD状态的监控
- linux自带硬盘检测命令smartctl
- Linux硬盘的检测--smartctl详细介绍
- Smartctl
- smartctl
- __FILE__,__LINE__,FUNCTION__ 作用
- C++面试题整理
- Mysql备份还原数据库之mysqldump实例及参数详细说明
- 专属于LES的女同交友APP《拉拉LaLa》
- android 面试题整理
- ceph存储 smartctl硬盘状态监控
- springMVC 返回类型选择 以及 SpringMVC中model,modelMap.request,session取值顺序
- c#设置成开机启动
- spring的BeanFactory 和ApplicationContext详解
- 修改 Ubuntu 和 WIN7 双系统的默认启动系统
- Longest Common Prefix
- MPEG-DASH on IIS Practice in Action
- PHP调试及性能分析工具Xdebug
- IOS中git简单实用