最小化安装的  主要查看硬盘使用时间

需要安装

smartmontools 这个 
[root@localhost ~]# yum install -y smartmontools
已加载插件:fastestmirror
base                                                     | 3.6 kB     00:00
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
(1/2): extras/7/x86_64/primary_db                          |  42 kB   00:00
(2/2): updates/7/x86_64/primary_db                         | 6.0 MB   00:02
Loading mirror speeds from cached hostfile* base: mirrors.yun-idc.com* extras: mirrors.yun-idc.com* updates: mirrors.yun-idc.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 smartmontools.x86_64.1.6.2-4.el7 将被 安装
--> 正在处理依赖关系 mailx,它被软件包 1:smartmontools-6.2-4.el7.x86_64 需要
--> 正在检查事务
---> 软件包 mailx.x86_64.0.12.5-12.el7_0 将被 安装
--> 解决依赖关系完成依赖关系解决================================================================================Package              架构          版本                   源              大小
================================================================================
正在安装:smartmontools        x86_64        1:6.2-4.el7            base           403 k
为依赖而安装:mailx                x86_64        12.5-12.el7_0          updates        244 k事务概要
================================================================================
安装  1 软件包 (+1 依赖软件包)总下载量:647 k
安装大小:1.9 M
Downloading packages:
(1/2): mailx-12.5-12.el7_0.x86_64.rpm                      | 244 kB   00:00
(2/2): smartmontools-6.2-4.el7.x86_64.rpm                  | 403 kB   00:00
--------------------------------------------------------------------------------
总计                                               780 kB/s | 647 kB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : mailx-12.5-12.el7_0.x86_64                                  1/2正在安装    : 1:smartmontools-6.2-4.el7.x86_64                            2/2验证中      : 1:smartmontools-6.2-4.el7.x86_64                            1/2验证中      : mailx-12.5-12.el7_0.x86_64                                  2/2已安装:smartmontools.x86_64 1:6.2-4.el7作为依赖被安装:mailx.x86_64 0:12.5-12.el7_0完毕!
[root@localhost ~]#

查看下硬盘

[root@localhost ~]# df
文件系统           1K-块   已用      可用 已用% 挂载点
/dev/sda3       51175000  52896  51122104    1% /
devtmpfs         1918536      0   1918536    0% /dev
tmpfs            1924208      0   1924208    0% /dev/shm
tmpfs            1924208  25016   1899192    2% /run
tmpfs            1924208      0   1924208    0% /sys/fs/cgroup
/dev/sda5       51175000 816060  50358940    2% /usr
/dev/sda8      102309060  32928 102276132    1% /home
/dev/sda6       30705000 198424  30506576    1% /var
/dev/sda2         508588  81632    426956   17% /boot

smartctl 帮助

[root@localhost ~]# smartctl -h
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-123.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.orgUsage: smartctl [options] device============================================ SHOW INFORMATION OPTIONS =====-h, --help, --usageDisplay this help and exit-V, --version, --copyright, --licensePrint license, copyright, and version information and exit-i, --infoShow identity information for device--identify[=[w][nvb]]Show words and bits from IDENTIFY DEVICE data                (ATA)-g NAME, --get=NAMEGet device setting: all, aam, apm, lookahead, security, wcache, rcache, wcreorder-a, --allShow all SMART information for device-x, --xallShow all information for device--scanScan for devices--scan-openScan for devices and try to open each device================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====-q TYPE, --quietmode=TYPE                                           (ATA)Set smartctl quiet mode to one of: errorsonly, silent, noserial-d TYPE, --device=TYPESpecify device type to one of: ata, scsi, sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbsunplus, marvell, areca,N/E, 3ware,N, hpt,L/M/N, megaraid,N, cciss,N, auto, test-T TYPE, --tolerance=TYPE                                           (ATA)Tolerance: normal, conservative, permissive, verypermissive-b TYPE, --badsum=TYPE                                              (ATA)Set action on bad checksum to one of: warn, exit, ignore-r TYPE, --report=TYPEReport transactions (see man page)-n MODE, --nocheck=MODE                                             (ATA)No check if: never, sleep, standby, idle (see man page)============================== DEVICE FEATURE ENABLE/DISABLE COMMANDS =====-s VALUE, --smart=VALUEEnable/disable SMART on device (on/off)-o VALUE, --offlineauto=VALUE                                       (ATA)Enable/disable automatic offline testing on device (on/off)-S VALUE, --saveauto=VALUE                                          (ATA)Enable/disable Attribute autosave on device (on/off)-s NAME[,VALUE], --set=NAME[,VALUE]Enable/disable/change device setting: aam,[N|off], apm,[N|off],lookahead,[on|off], security-freeze, standby,[N|off|now],wcache,[on|off], rcache,[on|off], wcreorder,[on|off]======================================= READ AND DISPLAY DATA OPTIONS =====-H, --healthShow device SMART health status-c, --capabilities                                                  (ATA)Show device SMART capabilities-A, --attributesShow device SMART vendor-specific Attributes and values-f FORMAT, --format=FORMAT                                          (ATA)Set output format for attributes: old, brief, hex[,id|val]-l TYPE, --log=TYPEShow device log. TYPE: error, selftest, selective, directory[,g|s],xerror[,N][,error], xselftest[,N][,selftest],background, sasphy[,reset], sataphy[,reset],scttemp[sts,hist], scttempint,N[,p],scterc[,N,M], devstat[,N], ssd,gplog,N[,RANGE], smartlog,N[,RANGE]-v N,OPTION , --vendorattribute=N,OPTION                            (ATA)Set display OPTION for vendor Attribute N (see man page)-F TYPE, --firmwarebug=TYPE                                         (ATA)Use firmware bug workaround:none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid-P TYPE, --presets=TYPE                                             (ATA)Drive-specific presets: use, ignore, show, showall-B [+]FILE, --drivedb=[+]FILE                                       (ATA)Read and replace [add] drive database from FILE[default is +/etc/smartmontools/smart_drivedb.hand then    /usr/share/smartmontools/drivedb.h]============================================ DEVICE SELF-TEST OPTIONS =====-t TEST, --test=TESTRun test. TEST: offline, short, long, conveyance, force, vendor,N,select,M-N, pending,N, afterselect,[on|off]-C, --captiveDo test in captive mode (along with -t)-X, --abortAbort any non-captive test on device=================================================== SMARTCTL EXAMPLES =====smartctl --all /dev/hda                    (Prints all SMART information)smartctl --smart=on --offlineauto=on --saveauto=on /dev/hda(Enables SMART on first disk)smartctl --test=long /dev/hda          (Executes extended disk self-test)smartctl --attributes --log=selftest --quietmode=errorsonly /dev/hda(Prints Self-Test & Attribute errors)smartctl --all --device=3ware,2 /dev/sdasmartctl --all --device=3ware,2 /dev/twe0smartctl --all --device=3ware,2 /dev/twa0smartctl --all --device=3ware,2 /dev/twl0(Prints all SMART info for 3rd ATA disk on 3ware RAID controller)smartctl --all --device=hpt,1/1/3 /dev/sda(Prints all SMART info for the SATA disk attached to the 3rd PMPortof the 1st channel on the 1st HighPoint RAID controller)smartctl --all --device=areca,3/1 /dev/sg2(Prints all SMART info for 3rd ATA disk of the 1st enclosureon Areca RAID controller)[root@localhost ~]#

先扫描一下

[root@localhost ~]# smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device

然后显示信息

[root@localhost ~]# smartctl -a /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-123.el7.x86_64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF INFORMATION SECTION ===
Model Family:     Seagate SV35.5
Device Model:     ST3250311SV
Serial Number:    9VY2FF0C
LU WWN Device Id: 5 000c50 009e091cd
Firmware Version: CV12
User Capacity:    250,059,350,016 bytes [250 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    7200 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Mon Dec 22 09:52:57 2014 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSEDGeneral SMART Values:
Offline data collection status:  (0x82) Offline data collection activitywas completed without error.Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completedwithout error or no self-test has everbeen run.
Total time to complete Offline
data collection:                (  592) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.Auto Offline data collection on/off support.Suspend Offline collection upon newcommand.Offline surface scan supported.Self-test supported.Conveyance Self-test supported.Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before enteringpower-saving mode.Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  42) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x10bb) SCT Status supported.SCT Error Recovery Control supported.SCT Feature Control supported.SCT Data Table supported.SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE1 Raw_Read_Error_Rate     0x000f   114   082   006    Pre-fail  Always       -       811848673 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       04 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       14545 Reallocated_Sector_Ct   0x0033   098   098   036    Pre-fail  Always       -       937 Seek_Error_Rate         0x000f   078   060   030    Pre-fail  Always       -       789057139 Power_On_Hours          0x0032   095   095   000    Old_age   Always       -       471610 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       012 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       760
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       6520
188 Command_Timeout         0x0032   100   092   000    Old_age   Always       -       111670855328
189 High_Fly_Writes         0x003a   051   051   000    Old_age   Always       -       49
190 Airflow_Temperature_Cel 0x0022   074   061   045    Old_age   Always       -       26 (Min/Max 15/34)
194 Temperature_Celsius     0x0022   026   040   000    Old_age   Always       -       26 (0 8 0 0 0)
195 Hardware_ECC_Recovered  0x001a   052   040   000    Old_age   Always       -       81184867
197 Current_Pending_Sector  0x0012   100   098   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   098   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       6SMART Error Log Version: 1
ATA Error Count: 6687 (device log contains only the most recent five errors)CR = Command Register [HEX]FR = Features Register [HEX]SC = Sector Count Register [HEX]SN = Sector Number Register [HEX]CL = Cylinder Low Register [HEX]CH = Cylinder High Register [HEX]DH = Device/Head Register [HEX]DC = Device Command Register [HEX]ER = Error register [HEX]ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.Error 6687 occurred at disk power-on lifetime: 4492 hours (187 days + 4 hours)When the command that caused the error occurred, the device was active or idle.After command completion occurred, registers were:ER ST SC SN CL CH DH-- -- -- -- -- -- --40 51 00 34 97 e8 00  Error: UNC at LBA = 0x00e89734 = 15243060Commands leading to the command that caused the error were:CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name-- -- -- -- -- -- -- --  ----------------  --------------------42 00 ff 80 96 e8 40 00      14:38:21.748  READ VERIFY SECTOR(S) EXT42 ff ff 01 1c e2 e0 00      14:38:19.940  READ VERIFY SECTOR(S) EXT42 00 ff 02 1b e2 40 00      14:38:19.890  READ VERIFY SECTOR(S) EXT42 ff ff 1c 01 e2 e0 00      14:38:19.866  READ VERIFY SECTOR(S) EXT42 00 ff 1d 00 e2 40 00      14:38:19.815  READ VERIFY SECTOR(S) EXTError 6686 occurred at disk power-on lifetime: 4453 hours (185 days + 13 hours)When the command that caused the error occurred, the device was active or idle.After command completion occurred, registers were:ER ST SC SN CL CH DH-- -- -- -- -- -- --40 51 00 ab 7a 94 0d  Error: UNC at LBA = 0x0d947aab = 227834539Commands leading to the command that caused the error were:CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name-- -- -- -- -- -- -- --  ----------------  --------------------60 00 00 ba 79 94 4d 00      01:45:18.075  READ FPDMA QUEUED00 00 00 00 00 00 00 04      01:45:17.543  NOP [Abort queued commands]60 00 00 ba 6d 94 4d 00      01:45:16.445  READ FPDMA QUEUED60 00 00 ba 6c 94 4d 00      01:45:16.435  READ FPDMA QUEUED60 00 00 ba 6b 94 4d 00      01:45:16.435  READ FPDMA QUEUEDError 6685 occurred at disk power-on lifetime: 4453 hours (185 days + 13 hours)When the command that caused the error occurred, the device was active or idle.After command completion occurred, registers were:ER ST SC SN CL CH DH-- -- -- -- -- -- --40 51 00 ab 7a 94 0d  Error: UNC at LBA = 0x0d947aab = 227834539Commands leading to the command that caused the error were:CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name-- -- -- -- -- -- -- --  ----------------  --------------------60 00 00 ba 6d 94 4d 00      01:45:16.445  READ FPDMA QUEUED60 00 00 ba 6c 94 4d 00      01:45:16.435  READ FPDMA QUEUED60 00 00 ba 6b 94 4d 00      01:45:16.435  READ FPDMA QUEUED60 00 00 ba 6a 94 4d 00      01:45:16.434  READ FPDMA QUEUED60 00 00 ba 69 94 4d 00      01:45:16.433  READ FPDMA QUEUEDError 6684 occurred at disk power-on lifetime: 4452 hours (185 days + 12 hours)When the command that caused the error occurred, the device was active or idle.After command completion occurred, registers were:ER ST SC SN CL CH DH-- -- -- -- -- -- --40 51 00 48 3a 1e 03  Error: UNC at LBA = 0x031e3a48 = 52312648Commands leading to the command that caused the error were:CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name-- -- -- -- -- -- -- --  ----------------  --------------------60 00 00 00 3a 1e 43 00      00:20:57.203  READ FPDMA QUEUED00 00 00 00 00 00 00 04      00:20:56.672  NOP [Abort queued commands]60 00 00 00 25 1e 43 00      00:20:55.533  READ FPDMA QUEUED60 00 00 00 24 1e 43 00      00:20:55.526  READ FPDMA QUEUED60 00 00 00 23 1e 43 00      00:20:55.526  READ FPDMA QUEUEDError 6683 occurred at disk power-on lifetime: 4452 hours (185 days + 12 hours)When the command that caused the error occurred, the device was active or idle.After command completion occurred, registers were:ER ST SC SN CL CH DH-- -- -- -- -- -- --40 51 00 48 3a 1e 03  Error: UNC at LBA = 0x031e3a48 = 52312648Commands leading to the command that caused the error were:CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name-- -- -- -- -- -- -- --  ----------------  --------------------60 00 00 00 25 1e 43 00      00:20:55.533  READ FPDMA QUEUED60 00 00 00 24 1e 43 00      00:20:55.526  READ FPDMA QUEUED60 00 00 00 23 1e 43 00      00:20:55.526  READ FPDMA QUEUED60 00 00 00 22 1e 43 00      00:20:55.525  READ FPDMA QUEUED60 00 00 00 21 1e 43 00      00:20:55.524  READ FPDMA QUEUEDSMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]SMART Selective self-test log data structure revision number 1SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS1        0        0  Not_testing2        0        0  Not_testing3        0        0  Not_testing4        0        0  Not_testing5        0        0  Not_testing
Selective self-test flags (0x0):After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

转载于:https://www.cnblogs.com/xxx91hx/p/4178702.html

centos 7.0 安装相关推荐

  1. CentOS 6.0安装VNC Server

    2019独角兽企业重金招聘Python工程师标准>>> 环境 服务器:192.168.10.181 系统:CentOS 6.0 安装过程 1.切换至root用户 2.检测系统是否安装 ...

  2. CentOS 6.0安装RPMforge源

    跟centos5.0的安装类似需要的步骤 1.安装 yum-priorities 插件:  2.下载与安装相应 EPEL 的 rpm 文件包:  3.下载与安装相应 rpmforge 的 rpm 文件 ...

  3. CentOS 6.0安装ipvsadm 1.26错误笔录

    CentOS 6.0安装ipvsadm 1.26错误笔记 ipvsadm 1.26适用于kernel 2.6.28及之后的内核版本, 在安装ipvsadm 1.26之前先安装依赖包,不然会报错如下: ...

  4. CentOS 6.0安装JDK7

    CentOS 6.0安装JDK7 - Sea Wang - 博客园 CentOS 6.0安装JDK7 话说在CentOS下安装JDK7(下载地址:http://www.oracle.com/techn ...

  5. CentOS 7.0安装配置Vsftp服务器

    2019独角兽企业重金招聘Python工程师标准>>> 一.配置防火墙,开启FTP服务器需要的端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptable ...

  6. CentOS 8.0 安装docker 报错:Problem package docker-ce-3 19.03.4-3.el7.x86_64 require

    文章目录 CentOS 8.0 安装docker 报错:Problem: package docker-ce-3:19.03.4-3.el7.x86_64 requires containerd.io ...

  7. CentOS 7.0安装Nvidia驱动

    个人博客: alex-my.xyz CentOS 7.0 Nvidia显卡安装步骤: (请先看评论,再决定是否要按照这个来.我自己每次安装都是按照这个一步一步来的,都是成功的. 显卡: gtx970, ...

  8. zabbix安装php7.0,Centos 7.0安装Zabbix server详细步骤(示例代码)

    zabbix(音同 zbix)是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. zabbix由2部分构成,zabbix server与可选组件zabbix agent. ...

  9. Centos 7.0 安装Mono 3.4 和 Jexus 5.6

    2013-07-26 写过一篇<CentOS 6.3下 安装 Mono 3.2 和Jexus 5.4>,CentOS 7在CentOS 6的基础上有很大的调整,本文是这篇文章的更新,主要介 ...

  10. linux6.0 安装教程,CentOS 6.0安装步骤

    1.安装引导 选择安装或升级现有系统(Install or upgrade an existing system): 这个选项是默认的. 选择此选项,安装到您的计算机使用CentOS的图形安装程序的系 ...

最新文章

  1. Java第一天学习笔记整理
  2. 局部响应归一化LRN(Local Response Normalization)
  3. C++ STL : 模拟实现STL中的关联式容器unordered_map/unordered_set
  4. windows server 2012 初安装体验
  5. 部署Dotnet Core应用到Kubernetes(二)
  6. c++判断二叉树是否为二叉搜索树_原创 | 好端端的数据结构,为什么叫它SB树呢?...
  7. Android 入门(四) | Intent 实现 Activity 切换
  8. java hive查询,hive查询报错
  9. Snabbdom(虚拟dom-源码)
  10. 使用BaaS更快地构建Xamarin应用程序
  11. Eclipse安装插件支持jQuery智能提示
  12. 学校计算机的使用作文,电脑课上作文(3篇)
  13. Atititi ui之道 attilax著 v3 s11.docx 1. 概览 2 1.1. 软件设计可分为两个部分:编码设计与UI设计 2 2. 用户界面设计的三大原则是:置界面于用户的控制之下;
  14. 360浏览器+7654联盟
  15. 开源项目9GAG源码解析与Material改造(一)
  16. BZOJ 小约翰的游戏John 反尼姆博弈
  17. mybatis实战:一、mybatis入门(配置、一些问题的解决)
  18. html表格中文字上下左右居中对齐,word表格中文字如何设置左右和上下居中(水平和垂直居中)...
  19. 如何从T-SNE或Umap中找到你想要的点?
  20. 已知中序、后序,求先序

热门文章

  1. 计算机毕业设计Java虚拟银行业务培训游戏(源码+系统+mysql数据库+lw文档
  2. 战网买台湾服务器物品,台湾暴雪:将于5月3日隐藏双子峰等七台服务器
  3. java计算机毕业设计模拟考试系统源代码+数据库+系统+lw文档
  4. 埃洛普 微软 诺基亚 艾洛普
  5. ios含有支付_iOS 最新开发者账号续费流程~(含:更新协议、支付授权失败解决等)...
  6. ARM 程序计数器 R15(PC)
  7. 【精品】seata综合示例:订单-库存-扣款
  8. oracle 合并多个不同结构的表_视频演示| 如何将多个工作簿合并为一张工作表
  9. 按下葫芦又起瓢 新政催热北京周边楼市
  10. iOS动画之CAAnimationGroup