全球主机交流论坛

标题: Linux 下查看硬盘使用时间 [打印本页]

作者: hx    时间: 2010-3-12 18:53
标题: Linux 下查看硬盘使用时间
这贴里大家都在讨论硬盘使用时间:
http://d.168530.xyz/thread-12080-1-1.html
google下linux的查看方法,发现也很简单。

需要安装这个:
http://smartmontools.sourceforge.net/
如果是centos直接运行yum install smartmontools -y就可以了

然后输入这个:
smartctl -A /dev/sda
如果不行用df看看硬盘名称,把sda换了即可
=== START OF READ SMART DATA SECTION ===
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_VALUE
  1 Raw_Read_Error_Rate     0x000f   083   063   044    Pre-fail  Always       -       204269687
  3 Spin_Up_Time            0x0003   099   099   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       18
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   069   060   030    Pre-fail  Always       -       7825289
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1626
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   100   037   020    Old_age   Always       -       18
184 Unknown_Attribute       0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Unknown_Attribute       0x0032   100   099   000    Old_age   Always       -       12
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   072   069   045    Old_age   Always       -       28 (Lifetime Min/Max 25/31)
194 Temperature_Celsius     0x0022   028   040   000    Old_age   Always       -       28 (0 22 0 0)
195 Hardware_ECC_Recovered  0x001a   050   047   000    Old_age   Always       -       204269687
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0

其中Power_On_Hours就是硬盘使用小时了,如果是Power_On_Minutes就是硬盘使用分钟,例如:
  9 Power_On_Minutes        0x0032   201   201   000    Old_age   Always       -       649h+23m


另外,不支持vps的,用vps的就别试了……
作者: cpuer    时间: 2010-3-12 18:54
标题: 回复 1# 的帖子
碰到上万小时的心里就难受了。
作者: hx    时间: 2010-3-12 19:05
标题: 回复 2# 的帖子
可以找服务商换不?
作者: cpuer    时间: 2010-3-12 19:11
标题: 回复 4# 的帖子
看各公司了,不好说。
作者: wzwen    时间: 2010-3-12 20:01
不能看,看着难受
作者: 骑猪奔月    时间: 2010-3-12 21:19
别看了 伤心。
作者: hx    时间: 2010-4-10 23:32
顶上去吧。
作者: cscsf    时间: 2010-4-10 23:38
9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       140

这个啥意思,请解释
作者: cscsf    时间: 2010-4-10 23:38
140小时?
作者: cpuer    时间: 2010-4-10 23:41
标题: 回复 10# 的帖子
那算新硬盘啦
作者: cscsf    时间: 2010-4-10 23:44
达拉斯那台100tb的,虽然用不着他了,不过看着心情好很多
作者: cpuer    时间: 2010-4-10 23:44
标题: 回复 12# 的帖子
SL的硬盘都比较新点。
作者: andong    时间: 2010-4-10 23:44
标题: 回复 12# 的帖子
你真幸运!
作者: edmin    时间: 2010-4-10 23:45
  我运行不成功。
作者: edmin    时间: 2010-4-10 23:45
smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl open device: /dev/simfs failed: Permission denied
作者: cscsf    时间: 2010-4-10 23:45
原帖由 andong 于 2010-4-10 23:44 发表
你真幸运!


幸运个P,那台机器现在基本就是闲置,我在研究是不是挂点下载,耗耗他流量……
作者: andong    时间: 2010-4-10 23:46
幸亏我当时选择了西雅图。
作者: cpuer    时间: 2010-4-10 23:48
原帖由 cscsf 于 2010-4-10 23:45 发表


幸运个P,那台机器现在基本就是闲置,我在研究是不是挂点下载,耗耗他流量……

搞PT
作者: cscsf    时间: 2010-4-10 23:49
弱弱的问一句,啥叫PT……

祈祷12号tom不要给我一台30000小时的……
作者: cw723    时间: 2010-4-10 23:53
我的是2000+小时 还算OK了
作者: cw723    时间: 2010-4-10 23:53
已经用了4个月了
作者: andong    时间: 2010-4-10 23:54
都够幸运的。
作者: andong    时间: 2010-4-10 23:55
标题: 回复 20# 的帖子
我12号有台到期的。不续费的。哈哈。1.5W小时的。
作者: hx    时间: 2010-4-11 00:29
原帖由 edmin 于 2010-4-10 23:45 发表
smartctl version 5.38  Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl open device: /dev/simfs failed: Permission denied

晕,vps不行的。
作者: cscsf    时间: 2010-4-11 00:31
原帖由 andong 于 2010-4-10 23:55 发表
我12号有台到期的。不续费的。哈哈。1.5W小时的。



不是吧,不会就是我那台吧……
e5200?
作者: hx    时间: 2010-4-11 00:36
标题: 回复 26# 的帖子
pr的硬盘貌似都是这样的,没办法了。
作者: cscsf    时间: 2010-4-11 00:38
基本确认就是这台,杯具
作者: andong    时间: 2010-4-11 00:40
认了吧。PR硬盘都这么老。你要WIN系统没?我还装了ghost了。
作者: 啊猪同学    时间: 2010-4-11 00:42
9 Power_On_Hours          0x0012   099   099   000    Old_age   Always       -                                    7126


我该难受么?
作者: cscsf    时间: 2010-4-11 00:42
我是装centos 5的
作者: andong    时间: 2010-4-11 00:43
标题: 回复 30# 的帖子
不该。很不错了。
作者: lihq123    时间: 2010-4-30 18:06
提示: 作者被禁止或删除 内容自动屏蔽
作者: cpuer    时间: 2010-4-30 20:31
标题: 回复 34# 的帖子
8K小时不算多
作者: 绝对冷血    时间: 2010-4-30 22:10
恭喜我吧
作者: GoTop    时间: 2010-4-30 22:32
原帖由 绝对冷血 于 2010-4-30 22:10 发表
恭喜我吧


2w小时?

中招了?
作者: 绝对冷血    时间: 2010-4-30 22:39
运气太好了
作者: deak17    时间: 2010-5-1 00:16
不支持VPS啊
作者: ccp    时间: 2010-5-1 21:30
不看没事。看了吓死。。
我的笔记本。。
  1. ccp@ccp-laptop:~$ sudo smartctl -A /dev/sda
  2. smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
  3. Home page is http://smartmontools.sourceforge.net/

  4. === START OF READ SMART DATA SECTION ===
  5. SMART Attributes Data Structure revision number: 16
  6. Vendor Specific SMART Attributes with Thresholds:
  7. ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  8.   1 Raw_Read_Error_Rate     0x000d   100   100   050    Pre-fail  Offline      -       0
  9.   2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  10.   3 Spin_Up_Time            0x0007   100   100   050    Pre-fail  Always       -       0
  11.   4 Start_Stop_Count        0x0032   098   098   000    Old_age   Always       -       2986
  12.   5 Reallocated_Sector_Ct   0x0033   096   096   010    Pre-fail  Always       -       92
  13.   7 Seek_Error_Rate         0x000f   100   100   050    Pre-fail  Always       -       231
  14.   8 Seek_Time_Performance   0x0005   100   100   050    Pre-fail  Offline      -       0
  15.   9 Power_On_Hours          0x0032   091   091   000    Old_age   Always       -       299726
  16. 10 Spin_Retry_Count        0x0013   100   100   050    Pre-fail  Always       -       0
  17. 12 Power_Cycle_Count       0x0032   098   098   000    Old_age   Always       -       2179
  18. 191 G-Sense_Error_Rate      0x000a   100   096   000    Old_age   Always       -       4286814463
  19. 192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       113
  20. 193 Load_Cycle_Count        0x0032   081   081   000    Old_age   Always       -       1988653862775
  21. 194 Temperature_Celsius     0x0022   100   070   000    Old_age   Always       -       39 (Lifetime Min/Max 8/55)
  22. 195 Hardware_ECC_Recovered  0x001a   100   001   000    Old_age   Always       -       2869
  23. 196 Reallocated_Event_Count 0x0032   091   091   000    Old_age   Always       -       92
  24. 197 Current_Pending_Sector  0x0032   100   093   000    Old_age   Always       -       0
  25. 198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
  26. 199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
  27. 200 Multi_Zone_Error_Rate   0x0013   100   100   050    Pre-fail  Always       -       0
  28. 201 Soft_Read_Error_Rate    0x0012   100   100   000    Old_age   Always       -       0
  29. 223 Load_Retry_Count        0x0012   100   100   000    Old_age   Always       -       8
  30. 230 Head_Amplitude          0x0032   093   093   000    Old_age   Always       -       214397
  31. 250 Read_Error_Retry_Rate   0x000a   100   001   000    Old_age   Always       -       65
复制代码
299726。。

最近还有坏道。。寿命到了。




欢迎光临 全球主机交流论坛 (https://d.168530.xyz/) Powered by Discuz! X3.4