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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
1 J& l3 ]8 }) a, m% h: j2 D  eCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME$ `( P! d; B5 F; y" h1 X  q6 Z
  2. Raw_Read_Error_Rate
    0 u9 _# ?0 h* B% _- {  x9 m
  3. Spin_Up_Time$ s# H8 f5 b; A: C3 q4 }
  4. Start_Stop_Count( Q% H" D; V5 u. O8 ?5 P' x
  5. Reallocated_Sector_Ct( A) g! Q3 ^0 T( D2 I$ W
  6. Seek_Error_Rate% b; Z; e& _6 t) S
  7. Power_On_Hours: ?% Q9 Z7 _5 w& a
  8. Spin_Retry_Count9 r2 _8 p% R0 v, U$ V
  9. Calibration_Retry_Count
      w& K5 }% i1 K4 T' Z% ~0 E- ]
  10. Power_Cycle_Count: s  O* ~' D; P6 K2 S* {" X
  11. G-Sense_Error_RatePower-Off_Retract_Count
    7 I6 y* O: d( l% r/ X7 }+ w
  12. Load_Cycle_Count
    & l, }" p& y6 ]
  13. Temperature_Celsius
    - M" w5 m4 u& s9 r; ]
  14. Reallocated_Event_Count* g3 a7 a6 i5 T) J
  15. Current_Pending_Sector2 G% L: j) h) ]/ k
  16. Offline_Uncorrectable
    . @6 w& s% o' p, }! ]4 ~- k0 G  c/ G. N
  17. UDMA_CRC_Error_Count
    1 f1 I' D; U- `* [( r7 w- l
  18. Multi_Zone_Error_Rate8 ^: A) ]( Z/ K: H0 ]/ o3 N+ d
复制代码
  1. Power_On_Hours:是硬盘使用的总时间- D3 ]9 C  _0 v: f: v& b& `* I8 N
  2. Load_Cycle_Count:是加载循环计数
    / f5 }& z) O: m# l) e
  3. Temperature_Celsius:硬盘的英文温度' ]1 |# P/ E2 _# C* m2 U! N8 V
  4. 直接输入下列命令,查询你所关心的:
    " H; c2 t$ ]! X7 |. G6 @! W6 S6 b
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
) r: W! J; f" s: a% d
- q1 F  Q$ _8 Z" i1 x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-8-17 04:18 , Processed in 0.024358 second(s), 7 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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