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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:' f: ?+ D2 a3 h" v1 C: d
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    4 l7 E, @5 ?7 q$ q4 S
  2. Raw_Read_Error_Rate
    2 ^1 {8 ^9 I: Z) z; G* ?
  3. Spin_Up_Time
    3 l0 B& r- n+ k. P1 F/ p* C
  4. Start_Stop_Count
    # P0 l% `7 N/ P. ?- P
  5. Reallocated_Sector_Ct# q; v8 V8 G& w  ?1 M. V
  6. Seek_Error_Rate
    ; [3 o. j. \, C& j* a4 d+ I/ H
  7. Power_On_Hours, G- l& l. C% q6 c9 H) \; Q
  8. Spin_Retry_Count9 j1 i, f% k3 ^' m
  9. Calibration_Retry_Count
    ' V# ]3 {: ^% Y! \6 g* h+ W2 w
  10. Power_Cycle_Count+ N2 U3 A" V" o! J4 W+ i
  11. G-Sense_Error_RatePower-Off_Retract_Count0 ^1 p% I1 A, g! s4 a/ y
  12. Load_Cycle_Count3 V' W0 j7 \% y& N! O
  13. Temperature_Celsius
    3 w! V* G2 Q, r( P3 ?7 W. ^
  14. Reallocated_Event_Count
    ! M8 z8 O/ i# y* S5 f+ ]4 X
  15. Current_Pending_Sector& f% [( L* c; }* l- B
  16. Offline_Uncorrectable
    $ N* ]0 c0 \  Q1 A$ q
  17. UDMA_CRC_Error_Count
    ; b& {5 H# m% {* u( ~" r! M% o! V- @
  18. Multi_Zone_Error_Rate) @' h! E' W% X2 {6 Z9 h
复制代码
  1. Power_On_Hours:是硬盘使用的总时间' L0 v: r2 Q! ^2 C/ u& x
  2. Load_Cycle_Count:是加载循环计数7 [: M- T4 i$ O$ _
  3. Temperature_Celsius:硬盘的英文温度5 j* `' l6 I) \8 m/ I+ K/ C
  4. 直接输入下列命令,查询你所关心的:- z0 W6 h; `8 S) t+ x2 A6 O$ v
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

9 c: F  }+ G$ Y+ C5 w* z$ Z' S
* \# K8 p3 j* ^% F1 R/ X9 B1 g( ^% z
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-6-27 09:01 , Processed in 0.022995 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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