稳定互联,中美互联,站长交流,虚拟主机,香港主机,美国主机,虚拟空间,免费空间,免费VPS,免费域名

 找回密码
 立即注册
查看: 2770|回复: 0

[经验] linux系统下查看独立服务器硬盘使用时间

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:% }+ ~' e6 i2 @- i: g' x2 a
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    : o% H% }( ~/ K  Q
  2. Raw_Read_Error_Rate
    7 Q& \8 S) F. h# P
  3. Spin_Up_Time# D  d" m; \: F. p
  4. Start_Stop_Count6 q# t: p$ C! _2 M$ [4 i
  5. Reallocated_Sector_Ct0 @" f4 i1 ^) }; e8 D/ [- C, a
  6. Seek_Error_Rate
    / L: H# H7 s% P* X
  7. Power_On_Hours+ D3 ~8 E/ p+ V$ N: g7 N; P: }
  8. Spin_Retry_Count2 P  E# q* C0 O/ X' l) c# A: I
  9. Calibration_Retry_Count
    8 C5 @. b) O, ?& w: c: k
  10. Power_Cycle_Count- k& b& C" y" N4 P
  11. G-Sense_Error_RatePower-Off_Retract_Count" \" z5 x- K/ o% a4 J2 Y" Z
  12. Load_Cycle_Count! g' I: J  W2 Z1 s' [; c5 m
  13. Temperature_Celsius
    : A9 ^7 B, w2 e
  14. Reallocated_Event_Count8 T- @3 _* f- K# f2 k9 y4 r+ o# k
  15. Current_Pending_Sector5 G: {6 f1 \7 \* w# e
  16. Offline_Uncorrectable1 J5 ^* h. d2 l7 w  Y" `0 u
  17. UDMA_CRC_Error_Count4 L* R! s2 z( b. b
  18. Multi_Zone_Error_Rate
    , o4 h' Z, L* S/ ~' I0 s- w; Q
复制代码
  1. Power_On_Hours:是硬盘使用的总时间! t! q& |  c* Q9 ?+ d7 k
  2. Load_Cycle_Count:是加载循环计数+ C& {! N) g! J6 ?
  3. Temperature_Celsius:硬盘的英文温度3 S5 y" w! I, a2 _! A8 _
  4. 直接输入下列命令,查询你所关心的:; J1 l+ G9 G/ Q, I
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

) R& v1 V* D3 Q/ D- z
8 P' l7 }4 O1 J+ _4 u
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|WdidcNet ( 苏ICP备17005075号-1 )

GMT+8, 2025-12-27 23:48 , Processed in 0.023191 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

快速回复 返回顶部 返回列表