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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:6 Q# l, @  N* X" @, }. M7 y4 [# r* {
Centos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME+ f* f+ `3 h. I
  2. Raw_Read_Error_Rate; N+ L; w1 g* H) j, j; S9 z
  3. Spin_Up_Time
    " {% Z4 M/ k# A5 Y2 H* T
  4. Start_Stop_Count, N# K# n4 b3 B5 s$ T9 [7 u% D
  5. Reallocated_Sector_Ct
    : m- J' `+ _4 s" O* x
  6. Seek_Error_Rate
    ' G) R! C+ _, K! f: I
  7. Power_On_Hours
    2 \% u( T) n0 j6 @7 x
  8. Spin_Retry_Count
    6 O- |. Q: G0 M9 Y
  9. Calibration_Retry_Count
    / g5 ^6 V; T1 s: _8 Y9 f  s
  10. Power_Cycle_Count
    + n0 d# A2 W& V3 n0 Q
  11. G-Sense_Error_RatePower-Off_Retract_Count: c3 R% M5 I0 M! B! B
  12. Load_Cycle_Count
      u/ B0 G' j. n* `  y1 M
  13. Temperature_Celsius
    + U. y2 |  d. p0 _2 p0 e. W
  14. Reallocated_Event_Count" O" ^+ V6 p' r" ]- ~9 O
  15. Current_Pending_Sector9 A7 d* U# y$ \( s# t2 P
  16. Offline_Uncorrectable& J1 I& n. \& f) x2 ]. m  J# @+ R
  17. UDMA_CRC_Error_Count  q& e8 }' c5 `" h% y
  18. Multi_Zone_Error_Rate
    - t% ]7 t$ {/ R+ e' b/ R
复制代码
  1. Power_On_Hours:是硬盘使用的总时间& w' [0 x' B$ s. I
  2. Load_Cycle_Count:是加载循环计数
    0 C9 a# v) f( {) J! Y  Q  ^2 H
  3. Temperature_Celsius:硬盘的英文温度* i  ]7 L% g) k  I# W- b" F: z
  4. 直接输入下列命令,查询你所关心的:: b9 f$ ^! b# d! A6 p
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码
3 ~8 k8 x5 O8 G0 T3 N- E

- M* M' G4 K* m" p0 ?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-10-6 14:15 , Processed in 0.012966 second(s), 6 queries , Redis On.

Powered by Discuz!

© 2010-2023.

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