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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
0 J) t% ~; u5 P4 M& N6 `  pCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    . y, H' L) s- b' B# l
  2. Raw_Read_Error_Rate7 _, ~1 S2 X1 y, Y7 x
  3. Spin_Up_Time+ ~: [9 t7 c/ j! M
  4. Start_Stop_Count, t5 A( {4 X2 C$ N. v0 K
  5. Reallocated_Sector_Ct
    7 r+ K; [2 |" e2 R& Y
  6. Seek_Error_Rate" j1 L! h" g  U& R/ B4 E/ n
  7. Power_On_Hours
    5 H/ y  }& m7 R' J% v
  8. Spin_Retry_Count% K; K# K: a- M! a! W. W2 b9 v& C
  9. Calibration_Retry_Count
    ! |) q# \8 P/ e, d6 |
  10. Power_Cycle_Count8 ]( M# Q; \: T; w' G) q
  11. G-Sense_Error_RatePower-Off_Retract_Count
    ; K6 \2 E9 ~. c+ Q- _! p- Z* Z
  12. Load_Cycle_Count
    ' o7 z- P# _9 x: m; ~7 K
  13. Temperature_Celsius
    $ e5 H( N  p- o6 }: G
  14. Reallocated_Event_Count8 y/ E8 e: p* ]4 d7 O' r& P. ?
  15. Current_Pending_Sector; @( Q4 S  G* P4 B' D* i+ K: P
  16. Offline_Uncorrectable% K* A) {1 G0 T6 e, S: ?- A
  17. UDMA_CRC_Error_Count0 R( v1 D( |' f4 s& a$ \& E
  18. Multi_Zone_Error_Rate$ A0 p* ]" p. C* S8 ^: P8 s8 ]" x4 a
复制代码
  1. Power_On_Hours:是硬盘使用的总时间7 X" J' G; \: i7 L. x$ P( [
  2. Load_Cycle_Count:是加载循环计数4 `* l$ T* E5 U7 Y, v. q
  3. Temperature_Celsius:硬盘的英文温度
    5 a1 c! ^* G. r' z2 `( A
  4. 直接输入下列命令,查询你所关心的:2 Y% L7 O9 m- m$ C# @
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

1 y" `9 W- r2 u) O0 e
/ Q: k* u7 t! U6 a+ A
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-5-18 00:48 , Processed in 0.008039 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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