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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:+ I- V3 M! m. \9 @, X* K% u) `( t, F
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    8 E* ^' j# n- ~: \# ]/ r1 {& [) v2 P' ?
  2. Raw_Read_Error_Rate0 l  o, r1 x+ w. n# m2 f# y
  3. Spin_Up_Time6 I& |9 S' Y2 s& ]" B( ]% R9 \
  4. Start_Stop_Count; i, k1 _  @; ~
  5. Reallocated_Sector_Ct
    . d( N. n5 E' h/ I' E. }+ [! B% _
  6. Seek_Error_Rate
    9 x) e2 z( T6 e! R# E) y8 D
  7. Power_On_Hours
    1 m  ]. R3 Q. T
  8. Spin_Retry_Count
    . R/ u- c: d, W' k# V) O3 D+ }. L
  9. Calibration_Retry_Count0 l+ s- V% Q8 r( ~9 k2 r$ f6 U
  10. Power_Cycle_Count
    & v( K. Z8 @- \& t
  11. G-Sense_Error_RatePower-Off_Retract_Count- X. D" J. Q- l8 h  R, a
  12. Load_Cycle_Count% @' F, A7 M& x* }  E8 {, M5 i
  13. Temperature_Celsius
    * ?- W; e1 Y3 H
  14. Reallocated_Event_Count
    ; r9 p2 H7 {  }8 l& K  X# D
  15. Current_Pending_Sector
    * [3 M5 x# S6 u( z8 I1 Z' r) C
  16. Offline_Uncorrectable
    & o7 B+ N( \+ b6 d/ n  C
  17. UDMA_CRC_Error_Count
    6 m/ o9 |: I% E* v0 ]4 p6 K# H
  18. Multi_Zone_Error_Rate' u2 c) K6 |- H! L
复制代码
  1. Power_On_Hours:是硬盘使用的总时间) v$ @+ v0 h* L
  2. Load_Cycle_Count:是加载循环计数
    4 E& @9 L  h* I  g/ v  K/ K
  3. Temperature_Celsius:硬盘的英文温度
    0 z! G, J' ]/ D' U5 ~. }
  4. 直接输入下列命令,查询你所关心的:
    , y- Z7 S( C$ l4 r- z7 V
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

* J+ ~( ]1 l6 {$ o2 ~) t& I* O8 K
7 K8 G0 j2 ^* _3 t
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-8-16 08:08 , Processed in 0.010987 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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