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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
! w) |0 J) p6 a6 f6 pCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    / G' U2 M5 y3 \6 q6 Q
  2. Raw_Read_Error_Rate0 Z' r8 V* c- t6 A9 O: x: Z
  3. Spin_Up_Time, h- x8 I$ x2 \4 \( t) t
  4. Start_Stop_Count7 t% r( f9 c( I( Q
  5. Reallocated_Sector_Ct% C, a, N+ N7 k$ g5 S5 \( }
  6. Seek_Error_Rate
    , w( c/ Q4 T, z9 V! a
  7. Power_On_Hours
    ! e* g: X- P, {- r( x) N. y
  8. Spin_Retry_Count
    # S8 u3 y( L/ P7 X; {. `
  9. Calibration_Retry_Count
      _0 F( C5 I; D
  10. Power_Cycle_Count
    + W! \' m, h6 U9 C
  11. G-Sense_Error_RatePower-Off_Retract_Count
    ' Y# }- H4 o+ f
  12. Load_Cycle_Count
    0 J5 O- S3 Q% q' u; h: f) p
  13. Temperature_Celsius
    . w( Z8 ]( t* [+ @0 ?) y( c) w
  14. Reallocated_Event_Count, [  Z, o* H$ w% h
  15. Current_Pending_Sector
    2 D6 F5 X" ^' Z5 r4 N
  16. Offline_Uncorrectable
    5 J' @" F2 h* Z, q6 M8 C
  17. UDMA_CRC_Error_Count3 M& g7 W* [7 p) @7 A3 h) L) l
  18. Multi_Zone_Error_Rate' O8 m( k0 A. X. m
复制代码
  1. Power_On_Hours:是硬盘使用的总时间( I/ o) b' ?9 y2 s6 [* e: ]
  2. Load_Cycle_Count:是加载循环计数
    ) B9 X3 [9 N( m) n/ J' R
  3. Temperature_Celsius:硬盘的英文温度, S- t9 ?% i  N7 P4 Y, Y% ^
  4. 直接输入下列命令,查询你所关心的:
    : r6 ~1 v, E8 O
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

- t* U1 J5 ?3 j- m; p1 U
' [4 w$ |, S6 m* R
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-5 21:20 , Processed in 0.029264 second(s), 7 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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