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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
( J: @8 a+ l6 G4 C  F; yCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    2 _2 |0 y1 J, v2 T( a+ q' q* g% u
  2. Raw_Read_Error_Rate3 q9 W6 j2 r2 W
  3. Spin_Up_Time5 x+ }0 r$ y$ @
  4. Start_Stop_Count  Z3 I4 n+ }- |( \+ S
  5. Reallocated_Sector_Ct
    5 z* {4 b) Z* F4 d' P! x: T( L
  6. Seek_Error_Rate
    6 w" M3 d( _% j0 u
  7. Power_On_Hours6 q9 g( C( [+ z- D# o4 p! }: a
  8. Spin_Retry_Count6 ?, ~5 q" r5 M+ P& `1 c8 H
  9. Calibration_Retry_Count& M/ P' B$ q) T% }1 p
  10. Power_Cycle_Count
    - F, W# M0 p# a5 {. x
  11. G-Sense_Error_RatePower-Off_Retract_Count
    / I1 ]! Q: j$ k+ e. ~5 e) H
  12. Load_Cycle_Count5 K- m. G6 Z7 }4 I* K; h4 `) D
  13. Temperature_Celsius6 g7 J, W. x  A/ c" H1 W
  14. Reallocated_Event_Count$ x* o6 f+ `& `0 O: l& g2 D3 @
  15. Current_Pending_Sector) [3 ?4 }) C  N' X
  16. Offline_Uncorrectable
    7 O1 P+ l  j2 l: r. m, Q/ b. C7 c8 W
  17. UDMA_CRC_Error_Count5 R* R' I; s: ]" @. I
  18. Multi_Zone_Error_Rate
    ) r. l6 h8 P: i0 C' Y
复制代码
  1. Power_On_Hours:是硬盘使用的总时间
    . ?/ `, K4 T) Z7 s
  2. Load_Cycle_Count:是加载循环计数
    1 L  u1 C' X0 b( \7 x
  3. Temperature_Celsius:硬盘的英文温度0 k# M# _+ j$ Z; M' V( a
  4. 直接输入下列命令,查询你所关心的:* w' L* w/ n4 ?+ x, I3 l$ @
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
. ]/ F* ]( a% u  H6 _$ L

4 c2 w4 B: N. r  F) k1 O  `
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-9-7 10:07 , Processed in 0.023012 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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