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

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

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

[复制链接]
发表于 2019-9-14 22:27:08 | 显示全部楼层 |阅读模式
linux系统查看硬盘的使用时间:
* a3 L0 S* f% m0 e& o7 E( W5 [: t! mCentos:
  1. yum -y install smartmontools
复制代码
Ubuntu/Debian:
  1. apt-get install smartmontools
复制代码
  1. smartctl -a /dev/sda
复制代码
  1. ATTRIBUTE_NAME) S4 `- {9 C+ M0 ~1 n
  2. Raw_Read_Error_Rate
    8 Q- ^* P% g# g
  3. Spin_Up_Time6 S9 ~4 M* j6 Y" X7 s# D$ K
  4. Start_Stop_Count
    1 S2 e3 S- V- j0 i4 b* M. Q
  5. Reallocated_Sector_Ct
    + @* ]* w; d  d" A- |% i+ X
  6. Seek_Error_Rate
    % ^8 F1 _' P% F/ P3 W( H9 ]
  7. Power_On_Hours
    1 N- f7 U' ^( ^  Z0 B5 \* K
  8. Spin_Retry_Count( j% w7 C+ V& h8 S# ]
  9. Calibration_Retry_Count  N, U: Z- h3 c) B: K. ]
  10. Power_Cycle_Count
    ; H! c) K% B" v$ ?5 ]7 H
  11. G-Sense_Error_RatePower-Off_Retract_Count; c; x3 e4 y5 M4 i" m
  12. Load_Cycle_Count
    " ^- {3 d! {$ F
  13. Temperature_Celsius. _3 z8 I: O( C# _, B
  14. Reallocated_Event_Count( J: o! D' n; c! q2 m9 t
  15. Current_Pending_Sector
    * w0 A4 P; x  N; f- ^
  16. Offline_Uncorrectable6 [, l$ ]  Z  ^/ f2 n
  17. UDMA_CRC_Error_Count7 |5 h% W4 y2 e& i2 g9 U. g
  18. Multi_Zone_Error_Rate
    ; ~9 L/ O/ V  i+ {* s. u& a
复制代码
  1. Power_On_Hours:是硬盘使用的总时间- c) d5 p  t8 c3 u3 s3 y& _& F& D
  2. Load_Cycle_Count:是加载循环计数" f, u5 C% Q) u6 Q1 o& E
  3. Temperature_Celsius:硬盘的英文温度
    - U# _0 y; G6 C8 G1 t. l
  4. 直接输入下列命令,查询你所关心的:
    / T" ]/ i! C  l7 k. {
  5. sudo smartctl -a /dev/sda |egrep 'Load_Cycle_Count|Power_On_Hours|Temperature_Celsius'
复制代码

+ _5 R1 p  j2 O9 p( b- }8 ^6 ]3 I
/ w8 x/ e) P3 ?% \/ b4 z2 K
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-10-1 06:25 , Processed in 0.026435 second(s), 6 queries , APCu On.

Powered by Discuz!

© 2010-2023.

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