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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
/ f# B0 A8 U1 T' ~+ GCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME' {) H3 O* ]: }/ v
  2. Raw_Read_Error_Rate
    7 u/ n' O  ]7 ]4 v+ o% y. e- G8 R
  3. Spin_Up_Time; V8 r+ p$ [& n& a; i
  4. Start_Stop_Count
      ?2 y) A. g, u* m( q; s. j6 V
  5. Reallocated_Sector_Ct
    - ], Y+ v; m3 ?. J  R
  6. Seek_Error_Rate- V; i$ P  H+ W4 J
  7. Power_On_Hours0 V( e7 {+ t8 i2 k6 x' j* D
  8. Spin_Retry_Count; N! q  o7 s7 J0 [9 ~
  9. Calibration_Retry_Count
    8 ?! X# }: T& ?4 K, G
  10. Power_Cycle_Count
    5 j+ ]9 [0 e: Z% f# E* f
  11. G-Sense_Error_RatePower-Off_Retract_Count
    4 I$ I0 H, @5 v: M
  12. Load_Cycle_Count0 A2 G0 H- f4 ~8 i9 J
  13. Temperature_Celsius4 ~- q, Z1 C$ o; j7 C
  14. Reallocated_Event_Count- p  s) z( M& ?' m
  15. Current_Pending_Sector6 k% {4 q1 C7 r/ J# v& l' k
  16. Offline_Uncorrectable
      B# O" C0 B  W0 ]
  17. UDMA_CRC_Error_Count
    # j( H9 B# F; K) ~0 n. p# D
  18. Multi_Zone_Error_Rate+ w1 e, T5 ~7 u+ b* ^! @
复制代码
  1. Power_On_Hours:是硬盘使用的总时间+ w$ [: r9 v9 o% V
  2. Load_Cycle_Count:是加载循环计数
    7 q+ R6 Q$ s( N
  3. Temperature_Celsius:硬盘的英文温度/ x8 c/ v5 l# {. P
  4. 直接输入下列命令,查询你所关心的:% k8 I: I& _1 ~
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

) c) ]" P6 p1 k) e$ h5 V0 l& f7 m1 {
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-3-31 16:57 , Processed in 0.010412 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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