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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:8 p5 g/ T9 {( s6 e5 U# e
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME
    , n5 T, k' u( O' A' ]* d7 T
  2. Raw_Read_Error_Rate2 j5 J& O7 |9 Y" o
  3. Spin_Up_Time& f! [" G$ b+ S, j2 Q; v9 K
  4. Start_Stop_Count
    . N9 K! m' x; s% y  G& J; k- D
  5. Reallocated_Sector_Ct5 U( W/ k/ Y+ O2 l
  6. Seek_Error_Rate
    + h8 P& r& X, r% Q/ v0 V
  7. Power_On_Hours
    9 V5 q* D5 Y" g2 C+ |
  8. Spin_Retry_Count& q5 H- q1 [# x+ B" d
  9. Calibration_Retry_Count
    % U" V: u% j9 l! a5 k: p
  10. Power_Cycle_Count5 E) A% F$ ]% d4 J3 r3 @! [8 V
  11. G-Sense_Error_RatePower-Off_Retract_Count
    & i3 c8 X# L2 a# t) N3 S5 k* S
  12. Load_Cycle_Count
    ' Z3 b4 t# S' S, K" n: a: X
  13. Temperature_Celsius
    , r1 S8 [8 J" a# j6 k$ i% `* z7 H
  14. Reallocated_Event_Count9 W$ b: Y+ ~; S
  15. Current_Pending_Sector3 `5 N  u1 s! n$ T: H' w0 f
  16. Offline_Uncorrectable) }  X; d% M0 E
  17. UDMA_CRC_Error_Count
    . {4 N+ i- {/ Y- `: z
  18. Multi_Zone_Error_Rate7 Z2 O) s, {; _, ~) \
复制代码
  1. Power_On_Hours:是硬盘使用的总时间! |* B; S: _1 O5 }  b
  2. Load_Cycle_Count:是加载循环计数
    ; N3 e3 o2 M4 r6 [6 K1 I% b
  3. Temperature_Celsius:硬盘的英文温度/ r) b/ S% w# t
  4. 直接输入下列命令,查询你所关心的:/ r$ I  w$ P: @) |
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
2 [$ I1 {" X* d
9 r$ ?# f) I$ {5 G
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-9-22 11:14 , Processed in 0.009163 second(s), 7 queries , Redis On.

Powered by Discuz!

© 2010-2023.

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