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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
& @7 q1 V) T+ E: A( z  X) T% lCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    6 i" j- _( m3 [& z8 z! J
  2. Raw_Read_Error_Rate
    1 W$ }  k0 f5 h# i- ^( c; ~
  3. Spin_Up_Time( |* W  t" w9 g6 u* l# D
  4. Start_Stop_Count
    3 \9 L2 a1 V2 s$ W6 V' X
  5. Reallocated_Sector_Ct" [: J/ Q+ }; j  D9 w: X
  6. Seek_Error_Rate
    % {$ |- E* k! G% U9 i
  7. Power_On_Hours$ `; d4 S9 s9 p' A
  8. Spin_Retry_Count& e6 |7 m9 s" t8 r
  9. Calibration_Retry_Count3 M& i+ f( y0 H
  10. Power_Cycle_Count/ c) `3 B- U$ R4 {+ Q  V# @, ?
  11. G-Sense_Error_RatePower-Off_Retract_Count5 ]3 [+ ?3 U, \, O
  12. Load_Cycle_Count9 r5 ~; X* ?4 e0 R9 k: r+ g$ O2 W
  13. Temperature_Celsius
    + j! P; X5 p  E" n8 O
  14. Reallocated_Event_Count1 {% ]) u& E1 ?$ r, T9 ?
  15. Current_Pending_Sector
    ) P3 i, y1 s* x4 P/ H$ }
  16. Offline_Uncorrectable! t9 P& |8 o* I: I3 z
  17. UDMA_CRC_Error_Count
    $ R2 z3 n$ g2 U1 u% `  L
  18. Multi_Zone_Error_Rate
    3 s) \, `9 X/ I' e# e0 W
复制代码
  1. Power_On_Hours:是硬盘使用的总时间
    ' X  k% X% J" D/ i
  2. Load_Cycle_Count:是加载循环计数
    , z& [6 B  P) N% v
  3. Temperature_Celsius:硬盘的英文温度
    & g, J9 [" ^# G$ C: N5 ?! B
  4. 直接输入下列命令,查询你所关心的:
    5 D8 J1 v* J# t% K+ g
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

: o( Y5 t8 h; O0 d, Q3 x; j- A8 _- x4 q
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-7-17 12:19 , Processed in 0.005107 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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