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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
* H3 X0 I& `# U: q* j5 p" GCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME/ i/ \2 \) I+ G9 t2 E
  2. Raw_Read_Error_Rate
    : O$ i  P- k" j$ K6 |( v4 i
  3. Spin_Up_Time
    0 n' S: c# ~8 R# S# s: G9 H( J
  4. Start_Stop_Count
      c' H; u. X4 L" Q2 [3 V
  5. Reallocated_Sector_Ct
    5 U  Q  |8 O, b# Q" M- U7 H
  6. Seek_Error_Rate
    - _2 [& ]1 b9 p+ J% j  o
  7. Power_On_Hours, p5 c0 m8 T, Q. E2 D; ]0 `/ r
  8. Spin_Retry_Count
    # `1 }: f+ r2 Z% T* e. L6 x
  9. Calibration_Retry_Count4 e) i  {8 `8 Y+ N
  10. Power_Cycle_Count
    + [3 @; v% r& C( a% C& }
  11. G-Sense_Error_RatePower-Off_Retract_Count
    # Z1 o0 t. h! S+ T% k/ |8 A
  12. Load_Cycle_Count+ s9 o& ~: m3 _  }3 s1 A0 u" k: L! z
  13. Temperature_Celsius
    $ p0 s2 i8 D6 K& ^2 ^5 d
  14. Reallocated_Event_Count6 B& e" F3 v( k; {
  15. Current_Pending_Sector8 C; |5 T0 W9 X4 [% t! @- G8 l
  16. Offline_Uncorrectable$ z* g6 K/ Z( L
  17. UDMA_CRC_Error_Count9 P6 i6 M/ o- I0 e0 B
  18. Multi_Zone_Error_Rate/ j3 n, d7 C$ W/ l2 M
复制代码
  1. Power_On_Hours:是硬盘使用的总时间4 U3 {. B8 b* t* Q9 P: S8 G3 X
  2. Load_Cycle_Count:是加载循环计数
    + _' b" q/ l0 y8 h) N3 b
  3. Temperature_Celsius:硬盘的英文温度4 x+ O, @) q2 r% u3 h  p* ^
  4. 直接输入下列命令,查询你所关心的:
    * U( _' z8 I/ D- d# }
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
6 @0 f! m3 ^; f! Q2 Y& K) E
( ?. l2 H3 a7 T& E- ]7 u1 C
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-8-14 00:24 , Processed in 0.010369 second(s), 6 queries , Redis On.

Powered by Discuz!

© 2010.

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