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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
5 Q% W6 t' {$ x- i$ mCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    : O, O- o4 g- N- C% c% g: u( ~; M
  2. Raw_Read_Error_Rate  c- r. d4 _6 |7 F5 Y. y! Y- l/ W
  3. Spin_Up_Time
    + B/ S' Q5 E9 z; b( {4 B
  4. Start_Stop_Count
    3 y# f9 p+ l" b" b5 F- {. K2 f+ u
  5. Reallocated_Sector_Ct
    1 A: Y7 ~% ]3 e. e' ]
  6. Seek_Error_Rate, i- a4 n0 S5 b! `
  7. Power_On_Hours
    ! q/ L" E& g7 @5 x+ l; O
  8. Spin_Retry_Count: x- i& J% r4 ]
  9. Calibration_Retry_Count! p! C+ h3 v8 N! |& h$ L9 q" V, s2 o) \
  10. Power_Cycle_Count- z. R- w8 e$ k1 l$ E
  11. G-Sense_Error_RatePower-Off_Retract_Count0 M; @5 Q2 }' q1 o
  12. Load_Cycle_Count
    $ M% q& u; l+ F, w
  13. Temperature_Celsius
    ; J, ~! g: P0 Z7 [
  14. Reallocated_Event_Count' j# |8 I6 {9 S1 Y8 `! w
  15. Current_Pending_Sector
    + z( ^, n  f5 b9 u! p. q; ?
  16. Offline_Uncorrectable
    : Z6 T# t4 |6 ]* N5 W% |
  17. UDMA_CRC_Error_Count
    2 t, O* M% K& A3 F. W( @& x4 m4 B8 A
  18. Multi_Zone_Error_Rate
    , i, J: Y- W+ M2 f' l
复制代码
  1. Power_On_Hours:是硬盘使用的总时间
    6 ?0 ~8 _+ c7 O+ _7 V
  2. Load_Cycle_Count:是加载循环计数
    % e7 N. ~8 g# ]& t8 B
  3. Temperature_Celsius:硬盘的英文温度, V) V3 `1 {* C) o$ U0 \3 q
  4. 直接输入下列命令,查询你所关心的:
    ( h  r8 }& P* S, B
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

* {# J* H' g' I. ]; f
, h8 Z2 M6 T0 E
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-7-2 00:23 , Processed in 0.012869 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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