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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:$ \3 K. X! N3 r
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    , k" A. x6 o) e. F4 G- J" B9 O9 k
  2. Raw_Read_Error_Rate
    ! `  L6 Y! O+ f7 q4 `, ?
  3. Spin_Up_Time+ X2 Z+ [0 @8 L  h5 q
  4. Start_Stop_Count4 M3 ]4 D" `6 ^) ~$ N+ o0 L% W% }
  5. Reallocated_Sector_Ct
    5 w* g0 Z4 }+ h; ]6 x/ p
  6. Seek_Error_Rate
    ) d; H- K1 E, d
  7. Power_On_Hours
    3 E6 f& c! q5 X, _* |2 m/ J) N
  8. Spin_Retry_Count
    / M6 T* Y  `+ O
  9. Calibration_Retry_Count
    / ]  ]! P' z  `& j' B7 |
  10. Power_Cycle_Count
    7 R, L( j; G, V7 w* K. C0 ^  I
  11. G-Sense_Error_RatePower-Off_Retract_Count
    + d0 y' g  ~; D3 n* N
  12. Load_Cycle_Count
    3 p0 k: L2 V4 B/ b5 _, d
  13. Temperature_Celsius  o8 y; T& A/ Y5 F6 T# ~
  14. Reallocated_Event_Count
    & _9 m7 G% `# P5 N" U. V
  15. Current_Pending_Sector9 u3 O( j) p, B5 c% ]4 B
  16. Offline_Uncorrectable
    6 ~9 D4 o* C" e$ T- Q, S* J6 b
  17. UDMA_CRC_Error_Count
    ( m; S- u1 U8 |. {( T9 d3 T1 V
  18. Multi_Zone_Error_Rate
    ' T3 O* W8 C, M# t
复制代码
  1. Power_On_Hours:是硬盘使用的总时间
    ) z3 Z" [0 a8 [4 `
  2. Load_Cycle_Count:是加载循环计数
    3 a( r! c( ?5 I" e8 T
  3. Temperature_Celsius:硬盘的英文温度
    & M4 z5 E  c& \5 r
  4. 直接输入下列命令,查询你所关心的:
    0 G4 q' Z0 k) Y# z
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

6 m1 ^6 t. b8 G& q; x& g" b9 P, C1 R. A. t* E
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-11-15 07:59 , Processed in 0.005858 second(s), 7 queries , Redis On.

Powered by Discuz!

© 2010-2023.

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