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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:+ z7 t$ m) S, ?" K6 y9 U, X
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    # p& s! ?- n" o0 K3 W' g! b& M
  2. Raw_Read_Error_Rate" t0 v1 C6 Y* G7 B
  3. Spin_Up_Time8 T0 f5 h0 Z# n+ b' h* n5 M$ ]  i
  4. Start_Stop_Count
    ; I) f/ l7 _$ B4 \8 q
  5. Reallocated_Sector_Ct+ a8 d' _9 w; l0 ^; _8 A$ T  G% ~0 _
  6. Seek_Error_Rate
    1 c$ N, n' [& j$ x+ C3 j
  7. Power_On_Hours8 I# e. d7 c+ ?3 K1 l; L; q% n' V! t
  8. Spin_Retry_Count, }; R. j) v; U1 K3 G9 \' J9 d
  9. Calibration_Retry_Count3 j  C' o6 C7 ~4 b
  10. Power_Cycle_Count3 J, E% O* s, G( K. \  J' M
  11. G-Sense_Error_RatePower-Off_Retract_Count
    $ o% W% ]3 \+ k! N3 |5 G5 T$ H) Z
  12. Load_Cycle_Count
    * S. a5 `3 k. W: `. V4 E& r
  13. Temperature_Celsius* X9 V" S7 p- Z; ~8 d
  14. Reallocated_Event_Count
    * c8 ~+ X6 ^5 K5 R9 u: d
  15. Current_Pending_Sector
    5 K% g: h0 B8 R1 F  p$ r
  16. Offline_Uncorrectable
    , _2 u7 l2 }8 U* a* b
  17. UDMA_CRC_Error_Count
    8 @% `7 Y* b3 i! e5 w! I
  18. Multi_Zone_Error_Rate
    4 ~. a! c* s+ K/ I8 S
复制代码
  1. Power_On_Hours:是硬盘使用的总时间
    " s1 W( V6 D+ ^/ G# s
  2. Load_Cycle_Count:是加载循环计数
    $ k  ~. M+ F) {/ ^, E5 q
  3. Temperature_Celsius:硬盘的英文温度
    # m' \2 J$ J8 z9 B6 m3 X! N
  4. 直接输入下列命令,查询你所关心的:
    $ [, ?( }" l% Z4 T0 ^8 p
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
( T* R) R, W# H0 T3 a. }

6 Q" M. p. P& ~, }. s+ F
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-11-13 22:40 , Processed in 0.023911 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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